camp/content/templates/base.html

126 lines
4.3 KiB
HTML
Raw Normal View History

2023-08-09 09:45:13 +00:00
{% load available_content static %}
2017-06-10 09:59:00 +00:00
<!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" />
2023-08-09 09:45:13 +00:00
{% block head %}
2017-06-10 09:59:00 +00:00
<title>Studio CAMP</title>
2023-08-09 09:45:13 +00:00
{% endblock %}
2017-06-10 09:59:00 +00:00
<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" %}">
2017-07-03 08:14:07 +00:00
<link rel="stylesheet" type="text/css" href="{% static "css/jquery.bxslider.css" %}">
2017-12-20 00:06:32 +00:00
<link rel="stylesheet" type="text/css" href="{% static "css/main.css" %}">
<link rel="stylesheet" type="text/css" href="{% static "css/app.css" %}">
2017-06-10 09:59:00 +00:00
</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">
2017-12-18 12:54:04 +00:00
<li><a href="/">HOME</a></li>
<li><a href="/about">ABOUT</a></li>
2018-02-21 15:22:33 +00:00
{% available_content as sections %}
{% for url, title in sections %}
2018-08-21 12:23:09 +00:00
<li><a href="{{url}}index/">{{title}}</a></li>
2018-02-21 15:22:33 +00:00
{% endfor %}
2017-12-18 12:54:04 +00:00
<li><a href="/contact">CONTACT</a></li>
2017-06-10 09:59:00 +00:00
</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>
2017-12-22 21:20:19 +00:00
<form method="get" action='/search/'>
2017-12-22 22:22:14 +00:00
<input type="search" name="q" class="search-form" value="{{query|default:""}}">
<input type="submit" style="visibility: hidden;" />
2017-12-22 21:20:19 +00:00
</form>
2017-06-10 09:59:00 +00:00
{% block content %}
{% endblock %}
{% load static %}
<script src="{% static "js/jquery.js" %}"></script>
<script src="{% static "js/foundation.js" %}"></script>
2017-12-18 12:54:04 +00:00
<script src="{% static "js/app.js" %}"></script>
2017-06-10 09:59:00 +00:00
<script src="{% static "js/what-input.js" %}"></script>
2023-08-09 09:45:13 +00:00
<script src="{% static "js/jquery.bxslider.js" %}?2"></script>
2017-07-03 08:14:07 +00:00
<script type="text/javascript">
2023-08-09 09:45:13 +00:00
var startSlide = 0;
if (document.querySelectorAll('.select-image').length && document.location.hash.length) {
startSlide = parseInt(document.location.hash.slice(1)) - 1
}
2019-07-29 11:09:50 +00:00
function loadSlideshow() {
2023-08-09 09:45:13 +00:00
$('a.original-link').bind('touchstart MSPointerDown pointerdown', function(event) {
event.stopPropagation()
});
$('a.original-link').on({
mousedown: function(event) {
event.stopPropagation()
},
})
2019-07-29 11:09:50 +00:00
slider = $('.slider1').show().bxSlider({
2023-08-09 09:45:13 +00:00
startSlide: startSlide,
preloadImages: 'all',
2017-07-03 08:14:07 +00:00
adaptiveHeight : true,
pager : false,
});
2023-08-09 09:45:13 +00:00
var images = $('.slider1 img'), count = images.length;
images.on({load: function(event) {
setTimeout(function() {
slider.resize()
slider.redrawSlider()
}, 100)
}})
2017-12-23 12:19:35 +00:00
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;
2017-12-23 12:19:35 +00:00
};
});
2023-08-09 09:45:13 +00:00
/*
if (document.querySelectorAll('.select-image').length && document.location.hash.length) {
var slide = parseInt(document.location.hash.slice(1))
if (slide) {
slider.goToSlide(slide - 1)
2023-08-09 09:45:13 +00:00
slider.resize()
slider.redrawSlider()
setTimeout(function() {
slider.resize()
slider.redrawSlider()
}, 2000)
}
}
2023-08-09 09:45:13 +00:00
*/
2017-07-03 08:14:07 +00:00
2017-12-23 12:19:35 +00:00
$(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;
}
2019-07-29 11:09:50 +00:00
});
}
$(document).ready(loadSlideshow);
2017-07-03 08:14:07 +00:00
</script>
2018-03-07 16:25:55 +00:00
{% block end %}
{% endblock %}
2017-06-10 09:59:00 +00:00
</body>
2017-12-18 12:54:04 +00:00
</html>