This commit is contained in:
Frederikmillingpytlick
2020-06-15 15:09:13 +02:00
parent eb2ce43928
commit 5ce1e69d65
11 changed files with 75 additions and 88 deletions
+9 -3
View File
@@ -1,6 +1,12 @@
function startMenu() {
document.getElementById ('toggle').addEventListener ('click', toggleMenu, false);
}
document.addEventListener("DOMContentLoaded", function(){
// Handler when the DOM is fully loaded
var path = window.location.pathname;
if(path === "/menuplan" || path === "/vagttelefon" || path === "/")
{
document.getElementById ('toggle').addEventListener ('click', toggleMenu, false);
}
});
function toggleMenu() {
var buttonElement = document.getElementById('menuIcon');