forked from basekit-templates/quest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.twig
More file actions
41 lines (33 loc) · 1.08 KB
/
Copy pathlayout.twig
File metadata and controls
41 lines (33 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<html lang="{{ page.seoLang }}">
<head>
{% include 'includes/head.twig' %}
{% include basekit.headScript %}
</head>
<body class="{{ page.backgroundClass }} {{ site.colorSwatch }}">
{% block content %}
{% endblock %}
{% include 'includes/footer.twig' %}
{% include basekit.bodyScript %}
<script type="text/javascript">
!function() {
function supportsSVG() {
return !!document.createElementNS && !! document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect
}
if (supportsSVG()) document.documentElement.className += ' svg'
}()
</script>
<script>
(function() {
var $body = document.getElementById("wrap");
$menu_trigger = document.getElementsByClassName('pull')[0];
if ( typeof $menu_trigger !== 'undefined' ) {
$menu_trigger.addEventListener('click', function() {
$body.className = ( $body.className == 'menu-active' )? '' : 'menu-active';
bk$(this).addClass('menu-active').removeClass('menu-active');
});
}
}).call(this);
</script>
</body>
</html>