mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-10 12:02:41 +00:00
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) {
|
function getBlurbHtml(day) {
|
||||||
|
const releaseDate = new Date("2020-04-23").getFullYear();
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const anniversary = currentYear - releaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "Michelle's Birthday":
|
case "Michelle's Birthday":
|
||||||
return `
|
return `
|
||||||
@ -39,7 +43,7 @@
|
|||||||
break;
|
break;
|
||||||
case "ASE Anniversary":
|
case "ASE Anniversary":
|
||||||
return `
|
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;
|
break;
|
||||||
case "Cecelia's Birthday":
|
case "Cecelia's Birthday":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user