33 lines
562 B
JavaScript
33 lines
562 B
JavaScript
document.addEventListener("DOMContentLoaded", function(){
|
|
// Handler when the DOM is fully loaded
|
|
start();
|
|
});
|
|
|
|
function start() {
|
|
var path = window.location.pathname;
|
|
|
|
switch (path) {
|
|
//Webapp
|
|
default:
|
|
break;
|
|
case "/menuplan":
|
|
menuplan();
|
|
break;
|
|
case "/vagttelefon":
|
|
vagttelefon();
|
|
break;
|
|
|
|
//Admin Panel
|
|
case "/admin":
|
|
break;
|
|
}
|
|
}
|
|
|
|
function menuplan() {
|
|
startMenuplan();
|
|
}
|
|
|
|
function vagttelefon() {
|
|
startMenu();
|
|
}
|