Added Birthday

This commit is contained in:
Mattia Mascarello 2024-11-19 23:24:00 +01:00
parent 2ea934924e
commit ee3a8babb2
3 changed files with 7 additions and 0 deletions

BIN
images/birthday.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB

BIN
images/birthday.xcf Normal file

Binary file not shown.

View File

@ -133,6 +133,13 @@ function specialDates() {
document.getElementById("janS").style.display = "inline"; document.getElementById("janS").style.display = "inline";
body.classList.add("greyFilter"); body.classList.add("greyFilter");
} }
else if ((force == null && date.getMonth() + 1 == 11 && date.getDate() == 19) || force == "birthday"){
portrait.src = "images/birthday.png";
portraitLink.href = "images/birthday.png";
document.getElementById("regularS").style.display = "inline";
baseColorClass = "baseColor";
selectedColorClass = "redColor";
}
else { else {
document.getElementById("regularS").style.display = "inline"; document.getElementById("regularS").style.display = "inline";
baseColorClass = "baseColor"; baseColorClass = "baseColor";