This commit is contained in:
Frederikmillingpytlick
2020-06-15 15:09:13 +02:00
parent eb2ce43928
commit 5ce1e69d65
11 changed files with 75 additions and 88 deletions
+9 -4
View File
@@ -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');