Ekapp/skolehjem/resources/js/init.js

33 lines
562 B
JavaScript
Raw Normal View History

2020-06-15 06:56:21 +00:00
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();
}