17 lines
358 B
JavaScript
17 lines
358 B
JavaScript
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');
|
|
var date = new Date();
|
|
|
|
elm.innerHTML = "Uge " + date.getWeek();
|
|
}
|