ulovliglogning.dk/assets/js/main.js
2018-02-05 23:17:52 +01:00

12 lines
379 B
JavaScript

document.documentElement.classList.remove("no-js");
document.documentElement.classList.add("js");
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);
}