Add anniversary year count for the release of A Summer's End
This commit is contained in:
parent
a1f44a609c
commit
7a47b1faa2
|
@ -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 Summer’s End — Hong Kong 1986</cite>!
|
||||
Today is the ${anniversary}-year anniversary of the release of <cite>A Summer’s End — Hong Kong 1986</cite>!
|
||||
`;
|
||||
break;
|
||||
case "Cecelia's Birthday":
|
||||
|
|
Loading…
Reference in New Issue