16 lines
306 B
JavaScript
16 lines
306 B
JavaScript
|
document.addEventListener("DOMContentLoaded", function(){
|
||
|
// Handler when the DOM is fully loaded
|
||
|
start();
|
||
|
});
|
||
|
|
||
|
function start() {
|
||
|
updateWeek();
|
||
|
}
|
||
|
|
||
|
function updateWeek() {
|
||
|
var elm = document.getElementById('week');
|
||
|
var date = new Date();
|
||
|
|
||
|
elm.innerHTML = "Uge " + date.getWeek();
|
||
|
}
|