Ekapp/skolehjem/resources/js/sites/menuplan.js

17 lines
359 B
JavaScript
Raw Normal View History

2020-06-15 13:09:13 +00:00
document.addEventListener("DOMContentLoaded", function(){
// Handler when the DOM is fully loaded
var path = window.location.pathname;
2020-06-22 12:53:00 +00:00
if(path === "/menuplans")
2020-06-15 13:09:13 +00:00
{
updateWeek();
}
});
function updateWeek() {
var elm = document.getElementById('week');
var date = new Date();
elm.innerHTML = "Uge " + date.getWeek();
}