function menuFunction() { var x = document.getElementByID("menu-hidden"); if x.style.display === "block") { x.style.display = "none"; } else { x.style.display = "block"; } }