Skip to content

Commit

Permalink
Fix date bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanno authored Nov 30, 2023
1 parent cefb276 commit 4dccee1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ <h1 class="w3-jumbo w3-animate-top">Advent of GIS 2023</h1>
(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 = '<a href="https://github.com/Norkart/AdventOfGIS/tree/'+y+'/'+d+'">'
document.getElementById("luke").innerHTML = link + "Luke " + d + " er åpnet!</a>";
let link = '<a href="https://github.com/Norkart/AdventOfGIS/tree/'+y+'/'+ds+'">'
document.getElementById("luke").innerHTML = link + "Luke " + ds + " er åpnet!</a>";
})()
</script>

Expand Down

0 comments on commit 4dccee1

Please sign in to comment.