mirror of
https://github.com/carsonip/hugo-theme-minos
synced 2025-12-30 03:19:49 -08:00
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 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>
|
<script>renderMathInElement(document.body);</script>
|
||||||
{{ end }}
|
{{ 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>
|
</footer>
|
||||||
Reference in New Issue
Block a user