Fix drawer button
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user