Add anniversary year count for the release of A Summer's End

This commit is contained in:
Helen Chong 2024-04-23 15:59:00 +08:00
parent a1f44a609c
commit 7a47b1faa2
1 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,10 @@
}
function getBlurbHtml(day) {
const releaseDate = new Date("2020-04-23").getFullYear();
const currentYear = new Date().getFullYear();
const anniversary = currentYear - releaseDate;
switch (day) {
case "Michelle's Birthday":
return `
@ -39,7 +43,7 @@
break;
case "ASE Anniversary":
return `
Today is the anniversary of the release of <cite>A Summers End — Hong Kong 1986</cite>!
Today is the ${anniversary}-year anniversary of the release of <cite>A Summers End — Hong Kong 1986</cite>!
`;
break;
case "Cecelia's Birthday":