Added admin sites

This commit is contained in:
Frederikmillingpytlick
2020-06-15 08:56:21 +02:00
parent 88b7012f69
commit e73e2aacdc
43 changed files with 674 additions and 151 deletions
+12 -2
View File
@@ -3,11 +3,21 @@
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
//Bootstrap
require('./bootstrap');
require('./navmenu/menu');
//Dependencies
require('./date');
//Webapp hamburger menu
require('./navmenu/menu');
//Sites
require('./sites/menuplan');
//Initializer
require('./init');
// window.Vue = require('vue');
/**
+32
View File
@@ -0,0 +1,32 @@
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();
}
+1 -6
View File
@@ -1,9 +1,4 @@
document.addEventListener("DOMContentLoaded", function(){
// Handler when the DOM is fully loaded
start();
});
function start() {
function startMenu() {
document.getElementById ('toggle').addEventListener ('click', toggleMenu, false);
}
@@ -1,10 +1,6 @@
document.addEventListener("DOMContentLoaded", function(){
// Handler when the DOM is fully loaded
start();
});
function start() {
function startMenuplan() {
updateWeek();
startMenu();
}
function updateWeek() {