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

17 lines
358 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;
if(path === "/menuplan")
{
updateWeek();
}
});
function updateWeek() {
var elm = document.getElementById('week');
var date = new Date();
elm.innerHTML = "Uge " + date.getWeek();
}