mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-25 14:35:52 -05:00
Update js
This commit is contained in:
parent
e3053cee4f
commit
2ab2e30c27
@ -17,13 +17,12 @@
|
||||
document.querySelectorAll('pre code').forEach((block) => {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
|
||||
setMenuListener();
|
||||
});
|
||||
|
||||
function setMenuListener() {
|
||||
var menuToggle = document.querySelector('.menu-toggle');
|
||||
var body = document.querySelector('body');
|
||||
|
||||
menuToggle.addEventListener('click', function() {
|
||||
body.classList.toggle('no-scroll');
|
||||
}, false);
|
||||
|
Loading…
Reference in New Issue
Block a user