camp/content/templates/base.html

91 lines
3.2 KiB
HTML
Raw Normal View History

2018-02-21 15:22:33 +00:00
{% load available_content%}
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" />
<title>Studio CAMP</title>
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans"/>
{% load static %}
<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-02-21 15:26:55 +00:00
<li><a href="{url}}">{{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>
2017-07-03 08:14:07 +00:00
<script src="{% static "js/jquery.bxslider.js" %}"></script>
<script type="text/javascript">
$(document).ready(function(){
2017-12-23 12:19:35 +00:00
slider = $('.slider1').bxSlider({
2017-07-03 08:14:07 +00:00
adaptiveHeight : true,
pager : false,
});
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
};
});
if (document.querySelectorAll('.select-image').length && document.location.hash.length) {
var slide = parseInt(document.location.hash.slice(1))
if (slide) {
slider.goToSlide(slide - 1)
}
}
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;
}
});
2017-07-03 08:14:07 +00:00
});
</script>
2017-06-10 09:59:00 +00:00
</body>
2017-12-18 12:54:04 +00:00
</html>