Fix drawer button

This commit is contained in:
Carson Ip
2017-02-20 21:45:37 +01:00
parent 59fb3beed6
commit 352e6fe4e1

View File

@@ -12,4 +12,14 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/contrib/auto-render.min.js" integrity="sha256-ExtbCSBuYA7kq1Pz362ibde9nnsHYPt6JxuxYeZbU+c=" crossorigin="anonymous"></script>
<script>renderMathInElement(document.body);</script>
{{ end }}
<script>
document.getElementById('main-nav-toggle').addEventListener('click', function () {
var header = document.getElementById('header');
if (header.classList.contains('mobile-on')) {
header.classList.remove('mobile-on');
} else {
header.classList.add('mobile-on');
}
});
</script>
</footer>