diff --git a/index.html b/index.html index 150e6c1..3c86542 100644 --- a/index.html +++ b/index.html @@ -69,14 +69,14 @@

Advent of GIS 2023

(function() { let y = new Date().getFullYear(); let m = new Date().getMonth(); - var d = new Date().getDate(); - d = String(d).padStart(2, '0'); + let d = new Date().getDate(); + let ds = String(d).padStart(2, '0'); var txt = "Første luke åpnes 1. desember"; if(m != 12 || d > 24) { return; } - let link = '' - document.getElementById("luke").innerHTML = link + "Luke " + d + " er åpnet!"; + let link = '' + document.getElementById("luke").innerHTML = link + "Luke " + ds + " er åpnet!"; })()