126 lines
4.3 KiB
HTML
126 lines
4.3 KiB
HTML
{% load available_content static %}
|
|
<!doctype html>
|
|
<html class="no-js" lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
{% block head %}
|
|
<title>CAMP</title>
|
|
{% endblock %}
|
|
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans"/>
|
|
<link rel="stylesheet" type="text/css" href="{% static "css/foundation.css" %}">
|
|
<link rel="stylesheet" type="text/css" href="{% static "css/jquery.bxslider.css" %}">
|
|
<link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}">
|
|
<link rel="stylesheet" type="text/css" href="{% static "css/app.css" %}">
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<div class="off-canvas-wrapper-inner" data-off-canvas-wrapper>
|
|
|
|
<div class="off-canvas position-right" id="offCanvasRight" data-off-canvas data-position="right">
|
|
<ul class="vertical-menu">
|
|
<li><a href="/">HOME</a></li>
|
|
<li><a href="/about">ABOUT</a></li>
|
|
{% available_content as sections %}
|
|
{% for url, title in sections %}
|
|
<li><a href="{{url}}index/">{{title}}</a></li>
|
|
{% endfor %}
|
|
<li><a href="/contact">CONTACT</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="off-canvas-content" data-off-canvas-content>
|
|
<div class="title-bar-right">
|
|
<button class="menu-icon" type="button" data-toggle="offCanvasRight"></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<form method="get" action='/search/'>
|
|
<input type="search" name="q" class="search-form" value="{{query|default:""}}">
|
|
<input type="submit" style="visibility: hidden;" />
|
|
</form>
|
|
{% block content %}
|
|
{% endblock %}
|
|
|
|
|
|
{% load static %}
|
|
<script src="{% static "js/jquery.js" %}"></script>
|
|
<script src="{% static "js/foundation.js" %}"></script>
|
|
<script src="{% static "js/app.js" %}"></script>
|
|
<script src="{% static "js/what-input.js" %}"></script>
|
|
<script src="{% static "js/jquery.bxslider.js" %}?2"></script>
|
|
<script type="text/javascript">
|
|
var startSlide = 0;
|
|
if (document.querySelectorAll('.select-image').length && document.location.hash.length) {
|
|
startSlide = parseInt(document.location.hash.slice(1)) - 1
|
|
}
|
|
function loadSlideshow() {
|
|
$('a.original-link').bind('touchstart MSPointerDown pointerdown', function(event) {
|
|
event.stopPropagation()
|
|
});
|
|
$('a.original-link').on({
|
|
mousedown: function(event) {
|
|
event.stopPropagation()
|
|
},
|
|
})
|
|
slider = $('.slider1').show().bxSlider({
|
|
startSlide: startSlide,
|
|
preloadImages: 'all',
|
|
adaptiveHeight : true,
|
|
pager : false,
|
|
});
|
|
|
|
var images = $('.slider1 img'), count = images.length;
|
|
images.on({load: function(event) {
|
|
setTimeout(function() {
|
|
slider.resize()
|
|
slider.redrawSlider()
|
|
}, 100)
|
|
}})
|
|
|
|
document.querySelectorAll('.select-image').forEach(function(a) {
|
|
a.onclick = function(event) {
|
|
event.preventDefault();
|
|
slider.goToSlide(parseInt(this.dataset.id) - 1)
|
|
document.location.hash = '#' + this.dataset.id;
|
|
};
|
|
});
|
|
|
|
/*
|
|
if (document.querySelectorAll('.select-image').length && document.location.hash.length) {
|
|
var slide = parseInt(document.location.hash.slice(1))
|
|
if (slide) {
|
|
slider.goToSlide(slide - 1)
|
|
slider.resize()
|
|
slider.redrawSlider()
|
|
setTimeout(function() {
|
|
slider.resize()
|
|
slider.redrawSlider()
|
|
}, 2000)
|
|
}
|
|
}
|
|
*/
|
|
|
|
$(document).keydown(function(e){
|
|
if (e.keyCode == 39) // Right arrow
|
|
{
|
|
slider && slider.goToNextSlide();
|
|
return false;
|
|
}
|
|
else if (e.keyCode == 37) // left arrow
|
|
{
|
|
slider && slider.goToPrevSlide();
|
|
return false;
|
|
}
|
|
});
|
|
}
|
|
$(document).ready(loadSlideshow);
|
|
</script>
|
|
{% block end %}
|
|
{% endblock %}
|
|
|
|
</body>
|
|
</html>
|