Fixes
This commit is contained in:
Vendored
+2
-5
@@ -9,14 +9,11 @@ require('./bootstrap');
|
||||
//Dependencies
|
||||
require('./date');
|
||||
|
||||
//Webapp hamburger menu
|
||||
require('./navmenu/menu');
|
||||
|
||||
//Sites
|
||||
require('./sites/menuplan');
|
||||
|
||||
//Initializer
|
||||
require('./init');
|
||||
//Webapp hamburger menu
|
||||
require('./navmenu/menu');
|
||||
|
||||
// window.Vue = require('vue');
|
||||
|
||||
|
||||
Vendored
-32
@@ -1,32 +0,0 @@
|
||||
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();
|
||||
}
|
||||
+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');
|
||||
|
||||
+9
-4
@@ -1,7 +1,12 @@
|
||||
function startMenuplan() {
|
||||
updateWeek();
|
||||
startMenu();
|
||||
}
|
||||
document.addEventListener("DOMContentLoaded", function(){
|
||||
// Handler when the DOM is fully loaded
|
||||
var path = window.location.pathname;
|
||||
|
||||
if(path === "/menuplan")
|
||||
{
|
||||
updateWeek();
|
||||
}
|
||||
});
|
||||
|
||||
function updateWeek() {
|
||||
var elm = document.getElementById('week');
|
||||
|
||||
Reference in New Issue
Block a user