Added admin sites
This commit is contained in:
Vendored
+12
-2
@@ -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');
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+32
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+2
-6
@@ -1,10 +1,6 @@
|
||||
document.addEventListener("DOMContentLoaded", function(){
|
||||
// Handler when the DOM is fully loaded
|
||||
start();
|
||||
});
|
||||
|
||||
function start() {
|
||||
function startMenuplan() {
|
||||
updateWeek();
|
||||
startMenu();
|
||||
}
|
||||
|
||||
function updateWeek() {
|
||||
Reference in New Issue
Block a user