ulovliglogning.dk/assets/js/main.js

12 lines
379 B
JavaScript
Raw Permalink Normal View History

document.documentElement.classList.remove("no-js");
document.documentElement.classList.add("js");
2018-02-05 22:17:52 +00:00
function closeMobileMenu(){
var menu = document.getElementById("show-menu");
menu.checked = false;
}
var mobileLinks = document.getElementsByClassName("mobileLink");
for (var i = 0; i < mobileLinks.length; i++) {
mobileLinks[i].addEventListener('click', closeMobileMenu);
}