Fixes
This commit is contained in:
+9
-3
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user