website/themes/datacoop2020/layouts/_default/baseof.html

39 lines
1.3 KiB
HTML
Raw Permalink Normal View History

<!doctype html>
<html lang="en">
2022-11-10 13:48:26 +00:00
{{ partial "head.html" . }}
<body>
<aside>
<header>
<a href="index.html"><img src="{{ printf "/static/img/logo_%s.svg" .Site.Language.Lang | absURL }}" alt="data coop logo" width="240" height="140"></a>
<div class="nav-toggle" id="nav-toggle-header">
<span id="nav-toggle-a"></span>
<span id="nav-toggle-b"></span>
<span id="nav-toggle-c"></span>
</div>
</header>
{{ partial "nav.html" . }}
</aside>
<main>
<article>
{{ block "main" . }}{{ end }}
</article>
</main>
2022-11-09 11:16:43 +00:00
<script>
var menu = document.getElementById("nav-toggle-header")
2022-11-10 13:48:26 +00:00
var nav = document.getElementsByTagName('nav')[0]
2022-11-09 11:16:43 +00:00
function toggleMenu() {
if ( menu.classList.contains("display") ) {
menu.classList.remove("display")
2022-11-10 13:48:26 +00:00
nav.classList.remove("display")
2022-11-09 11:16:43 +00:00
} else {
menu.classList.add("display")
2022-11-10 13:48:26 +00:00
nav.classList.add("display")
2022-11-09 11:16:43 +00:00
}
}
menu.addEventListener( "click", toggleMenu )
</script>
2022-11-10 13:48:26 +00:00
</body>
</html>