2015-12-08 08:40:34 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2016-11-04 12:55:02 +01:00
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<link type="text/css" rel="stylesheet" href="../static/css/fonts.css" media="screen,projection"/>
|
2020-02-05 23:37:32 +01:00
|
|
|
<link type="text/css" rel="stylesheet" href="../static/css/style.css" media="screen,projection"/>
|
2016-11-04 12:55:02 +01:00
|
|
|
<link type="text/css" rel="stylesheet" href="../static/css/style-page.css" media="screen,projection"/>
|
|
|
|
<link type="text/css" rel="stylesheet" href="../static/css/baguetteBox.min.css" media="screen,projection"/>
|
2017-05-15 13:02:53 +02:00
|
|
|
{% if gallery.panorama_enabled %}
|
2016-11-04 12:55:02 +01:00
|
|
|
<link type="text/css" rel="stylesheet" href="../static/css/panorama_viewer.css" media="screen,projection"/>
|
2017-05-15 13:02:53 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if gallery.audio_enabled %}
|
2017-03-03 17:13:49 +01:00
|
|
|
<link type="text/css" rel="stylesheet" href="../static/css/mediaelementplayer.css" media="screen,projection"/>
|
2017-05-15 13:02:53 +02:00
|
|
|
{% endif %}
|
2017-07-03 13:37:38 +02:00
|
|
|
{% if settings.custom_css %}
|
|
|
|
<link type="text/css" rel="stylesheet" href="../static/css/custom.css" media="screen,projection"/>
|
|
|
|
{% endif %}
|
2016-11-04 12:55:02 +01:00
|
|
|
<!--Let browser know website is optimized for mobile-->
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
|
|
{% if gallery.description %}
|
|
|
|
<meta name="description" content="{{ gallery.description }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% if gallery.lang %}
|
|
|
|
<meta name="language" content="{{ gallery.lang }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% if settings.settings.og %}
|
|
|
|
{% include "opengraph.html" %}
|
|
|
|
{% endif %}
|
|
|
|
<title>{{ gallery.title }} · {{ settings.title }}</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2018-02-27 13:53:48 +01:00
|
|
|
{% if settings.settings.night_mode %}
|
|
|
|
<div class="floating-menu">
|
|
|
|
<label class="switch">
|
|
|
|
<input type="checkbox" id="toggle-box-checkbox">
|
|
|
|
<span class="slider round"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-11-04 12:55:02 +01:00
|
|
|
{% for section in gallery.sections %}
|
|
|
|
{% include "sections/" + section.type + ".html" %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if settings.share %}
|
|
|
|
{% include "share.html" %}
|
|
|
|
{% endif %}
|
|
|
|
<div class="back-to-home">
|
|
|
|
<hr>
|
|
|
|
<a href="../">
|
|
|
|
<div id="logo" src="./../static/img/logo.svg">
|
|
|
|
HOME
|
2016-04-06 20:34:05 +02:00
|
|
|
</div>
|
2016-11-04 12:55:02 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript" src="../static/js/jquery-2.1.4.min.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript" src="../static/js/baguetteBox.min.js" charset="utf-8"></script>
|
2017-05-15 13:02:53 +02:00
|
|
|
{% if gallery.panorama_enabled %}
|
2016-11-04 12:55:02 +01:00
|
|
|
<script type="text/javascript" src="../static/js/jquery.panorama_viewer.min.js" charset="utf-8"></script>
|
2017-05-15 13:02:53 +02:00
|
|
|
{% endif %}
|
2016-11-04 12:55:02 +01:00
|
|
|
<script type="text/javascript" src="../static/js/jquery.lazyload.min.js" charset="utf-8"></script>
|
|
|
|
<script type="text/javascript" src="../static/js/picturefill.min.js" charset="utf-8"></script>
|
2017-05-15 13:02:53 +02:00
|
|
|
{% if gallery.audio_enabled %}
|
2017-05-14 21:33:39 +02:00
|
|
|
<script type="text/javascript" src="../static/js/mediaelement-and-player.min.js" charset="utf-8"></script>
|
2017-05-15 13:02:53 +02:00
|
|
|
{% endif %}
|
2016-11-04 12:55:02 +01:00
|
|
|
<script type="text/javascript">
|
2018-02-27 13:53:48 +01:00
|
|
|
{% if settings.settings.night_mode %}
|
|
|
|
if (localStorage.getItem("mode_night") == "true") {
|
|
|
|
$('body').addClass('night');
|
|
|
|
document.getElementById("toggle-box-checkbox").checked = true;
|
|
|
|
}
|
2016-11-01 11:41:32 +01:00
|
|
|
|
2018-02-27 13:53:48 +01:00
|
|
|
$('#toggle-box-checkbox').on('change', function(){
|
|
|
|
if(this.checked){
|
|
|
|
$('body').addClass('night');
|
|
|
|
localStorage.setItem("mode_night", true);
|
|
|
|
}else{
|
|
|
|
$('body').removeClass('night');
|
|
|
|
localStorage.setItem("mode_night", false);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
{% endif %}
|
|
|
|
$(function() {
|
2016-11-04 12:55:02 +01:00
|
|
|
baguetteBox.run(".baguette", {});
|
2016-11-01 11:41:32 +01:00
|
|
|
|
2017-05-15 13:02:53 +02:00
|
|
|
{% if gallery.panorama_enabled %}
|
2016-11-04 12:55:02 +01:00
|
|
|
$(".panorama").panorama_viewer({
|
|
|
|
repeat: true,
|
|
|
|
direction: "horizontal",
|
|
|
|
animationTime: 150,
|
|
|
|
easing: "linear",
|
|
|
|
overlay: true
|
|
|
|
});
|
2017-05-15 13:02:53 +02:00
|
|
|
{% endif %}
|
2016-04-06 20:34:05 +02:00
|
|
|
});
|
2016-04-29 12:40:34 +02:00
|
|
|
|
2017-05-15 13:02:53 +02:00
|
|
|
{% if gallery.audio_enabled %}
|
2017-03-03 17:13:49 +01:00
|
|
|
$('audio').mediaelementplayer({
|
|
|
|
alwaysShowControls: true,
|
|
|
|
features: ['playpause','progress','volume'],
|
|
|
|
audioVolume: 'horizontal',
|
|
|
|
audioWidth: 450,
|
|
|
|
audioHeight: 30,
|
|
|
|
iPadUseNativeControls: true,
|
|
|
|
iPhoneUseNativeControls: true,
|
|
|
|
AndroidUseNativeControls: true
|
|
|
|
});
|
2017-05-15 13:02:53 +02:00
|
|
|
{% endif %}
|
2017-03-03 17:13:49 +01:00
|
|
|
|
2017-06-04 21:54:04 +02:00
|
|
|
function goFullscreen(id) {
|
|
|
|
var element = document.getElementById(id);
|
|
|
|
if (element.requestFullscreen) {
|
|
|
|
element.requestFullscreen();
|
|
|
|
} else if (element.mozRequestFullScreen) {
|
|
|
|
element.mozRequestFullScreen();
|
|
|
|
} else if (element.webkitRequestFullScreen) {
|
|
|
|
element.webkitRequestFullScreen();
|
|
|
|
}
|
|
|
|
}
|
2016-04-29 12:40:34 +02:00
|
|
|
|
|
|
|
$(function() {
|
2016-11-04 12:55:02 +01:00
|
|
|
$("img.lazy").lazyload({
|
2017-04-25 16:24:41 +02:00
|
|
|
threshold : 400,
|
2016-11-04 12:55:02 +01:00
|
|
|
effect : "fadeIn"
|
|
|
|
});
|
|
|
|
$("video.lazy").lazyload({
|
2017-04-25 16:24:41 +02:00
|
|
|
threshold : 400,
|
2016-11-04 12:55:02 +01:00
|
|
|
effect : "fadeIn"
|
|
|
|
});
|
|
|
|
$("section.lazy").lazyload({
|
2017-04-25 16:24:41 +02:00
|
|
|
threshold : 400,
|
2016-11-04 12:55:02 +01:00
|
|
|
effect : "fadeIn"
|
|
|
|
});
|
2016-04-29 12:40:34 +02:00
|
|
|
});
|
2016-05-27 11:57:03 +02:00
|
|
|
|
2016-05-27 12:06:46 +02:00
|
|
|
{% if settings.settings.light_mode %}
|
2016-05-27 11:57:03 +02:00
|
|
|
var slowLoad = window.setTimeout( function() {
|
2016-11-04 12:55:02 +01:00
|
|
|
var html_node = document.getElementsByTagName('html')[0];
|
|
|
|
var div = document.createElement('div');
|
|
|
|
div.setAttribute('id', 'slow-notice');
|
|
|
|
var t1 = document.createTextNode("The website is taking a long time to load.");
|
|
|
|
var br = document.createElement('br');
|
|
|
|
var t2 = document.createTextNode("You can switch to the ");
|
|
|
|
var a = document.createElement('a');
|
|
|
|
a.setAttribute('href', './light');
|
|
|
|
a.innerHTML = 'Light Weight Site';
|
|
|
|
|
|
|
|
var dismiss = document.createElement('span');
|
|
|
|
dismiss.innerHTML = '[x] dismiss';
|
|
|
|
dismiss.setAttribute('class', 'dismiss');
|
|
|
|
dismiss.onclick = function() {
|
|
|
|
html_node.removeChild(div);
|
|
|
|
}
|
|
|
|
|
|
|
|
var dismiss_container = document.createElement('div');
|
|
|
|
dismiss_container.appendChild(dismiss);
|
|
|
|
dismiss_container.setAttribute('class', 'dismiss-container');
|
|
|
|
|
|
|
|
div.appendChild(t1);
|
|
|
|
div.appendChild(br);
|
|
|
|
div.appendChild(t2);
|
|
|
|
div.appendChild(a);
|
|
|
|
div.appendChild(dismiss_container);
|
|
|
|
|
|
|
|
html_node.appendChild(div);
|
2017-04-25 16:24:41 +02:00
|
|
|
}, 10000 );
|
2016-05-27 11:57:03 +02:00
|
|
|
|
|
|
|
window.addEventListener( 'load', function() {
|
2016-11-04 12:55:02 +01:00
|
|
|
try {
|
|
|
|
window.clearTimeout( slowLoad );
|
|
|
|
html_node.removeChild(div);
|
|
|
|
} catch (e){
|
|
|
|
// that's okay.
|
|
|
|
}
|
2016-05-27 11:57:03 +02:00
|
|
|
|
|
|
|
});
|
2016-05-27 12:06:46 +02:00
|
|
|
{% endif %}
|
2016-11-04 12:55:02 +01:00
|
|
|
</script>
|
|
|
|
{% include "footer.html" %}
|
|
|
|
</body>
|
2015-12-08 08:40:34 +01:00
|
|
|
</html>
|