Skip to content

Commit 5575e20

Browse files
committed
Set Halloween theme to only show during last week of October
1 parent eca3af7 commit 5575e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function playAudio(img) {
99

1010
function checkSeasonal() {
1111
const d = new Date();
12-
//if (d.getMonth() == 9 && d.getDate() > 24 && d.getDate() < 32) { // check if month is october (getMonth starts at 0) and its the week leading to halloween
12+
if (d.getMonth() == 9 && d.getDate() > 24 && d.getDate() < 32) { // check if month is october (getMonth starts at 0) and its the week leading to halloween
1313
document.body.style.setProperty("--bg-image", 'url("images/SteampunkAirshipHalloween.gif")');
1414
document.body.style.color = "#d72700";
1515
document.querySelectorAll('h1, h2').forEach(tag => {
@@ -23,7 +23,7 @@ function checkSeasonal() {
2323
tag.style.backgroundColor = "#160025";
2424
});
2525
document.querySelector('footer').style.backgroundColor = "#000000";
26-
//}
26+
}
2727
}
2828

2929
checkSeasonal();

0 commit comments

Comments
 (0)