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

18 lines
364 B
JavaScript
Raw Normal View History

2020-06-25 13:11:59 +00:00
/*document.addEventListener("DOMContentLoaded", function(){
2020-06-15 13:09:13 +00:00
// 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();
}
2020-06-25 13:11:59 +00:00
*/