Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/custom_theme/assets/javascripts/custom_theme.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$( document ).ready(function() {
displayLatestWarning();
makeImagesZoomable();
});

$(window).on('hashchange', function(){
Expand All @@ -8,4 +9,10 @@ $(window).on('hashchange', function(){

function displayLatestWarning(){
$( ".latest-warning" ).css( "display", $(location).attr('href').includes(latestWarningTrigger)?"inherit":"none" );
}
}

function makeImagesZoomable(){
$('img').each(function (index, value){
$(this).zoomify();
});
}
3 changes: 3 additions & 0 deletions docs/custom_theme/assets/javascripts/zoomify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/custom_theme/assets/stylesheets/zoomify.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions docs/custom_theme/assets/zoomify_LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
LICENCE for included Javascript and CSS code from https://github.com/indrimuska/zoomify
See javascripts/zoomify.min.js and stylesheets/zoomify.min.css

The MIT License (MIT)

Copyright (c) 2015 Indri Muska

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 5 additions & 2 deletions docs/custom_theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<link rel="stylesheet" href="{{ 'assets/stylesheets/custom_theme.css' | url }}">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
<script
src="https://code.jquery.com/jquery-1.12.4.min.js"
integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script src="{{ 'assets/javascripts/custom_theme.js' | url }}"></script>
Expand All @@ -23,6 +23,9 @@
})(window,document,'script','dataLayer','{{config.extra.google.tag_manager}}');</script>
<!-- End Google Tag Manager -->
{% endif %}

<script src="{{ 'assets/javascripts/zoomify.min.js' | url }}"></script>
<link href="{{ 'assets/stylesheets/zoomify.min.css' | url }}" rel="stylesheet">
{% endblock %}

{% block analytics %}
Expand Down