Use strict qual operator for event dates

This commit is contained in:
Helen Chong 2024-04-29 11:41:17 +08:00
parent cbb5b8d8ac
commit c83da017ff
6 changed files with 21 additions and 21 deletions

View File

@ -4,7 +4,7 @@
<subtitle>Leilukin&#39;s personal website.</subtitle> <subtitle>Leilukin&#39;s personal website.</subtitle>
<link href="https://leilukin.neocities.org/feed.xml" rel="self"/> <link href="https://leilukin.neocities.org/feed.xml" rel="self"/>
<link href="https://leilukin.neocities.org"/> <link href="https://leilukin.neocities.org"/>
<updated>2024-04-29T03:40:18Z</updated> <updated>2024-04-29T03:40:57Z</updated>
<id>https://leilukin.neocities.org</id> <id>https://leilukin.neocities.org</id>
<author> <author>
<name>Leilukin</name> <name>Leilukin</name>

View File

@ -117,19 +117,19 @@
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const anniversary = currentYear - releaseDate; const anniversary = currentYear - releaseDate;
if (month == 2 && day == 16) if (month === 2 && day === 16)
return ` return `
Today is Michelle Cheung's birthday. Happy Birthday Michelle! Today is Michelle Cheung's birthday. Happy Birthday Michelle!
`; `;
else if (month == 4 && day == 23) else if (month === 4 && day === 23)
return ` return `
Today is the ${anniversary}-year 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>!
`; `;
else if (month == 8 && day == 9) else if (month === 8 && day === 9)
return ` return `
Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
`; `;
else if (month == 12 && day == 28) else if (month === 12 && day === 28)
return ` return `
Today is Sam Wong's birthday. Happy Birthday Sam! Today is Sam Wong's birthday. Happy Birthday Sam!
`; `;

View File

@ -117,19 +117,19 @@
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const anniversary = currentYear - releaseDate; const anniversary = currentYear - releaseDate;
if (month == 2 && day == 16) if (month === 2 && day === 16)
return ` return `
Today is Michelle Cheung's birthday. Happy Birthday Michelle! Today is Michelle Cheung's birthday. Happy Birthday Michelle!
`; `;
else if (month == 4 && day == 23) else if (month === 4 && day === 23)
return ` return `
Today is the ${anniversary}-year 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>!
`; `;
else if (month == 8 && day == 9) else if (month === 8 && day === 9)
return ` return `
Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
`; `;
else if (month == 12 && day == 28) else if (month === 12 && day === 28)
return ` return `
Today is Sam Wong's birthday. Happy Birthday Sam! Today is Sam Wong's birthday. Happy Birthday Sam!
`; `;

View File

@ -117,19 +117,19 @@
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const anniversary = currentYear - releaseDate; const anniversary = currentYear - releaseDate;
if (month == 2 && day == 16) if (month === 2 && day === 16)
return ` return `
Today is Michelle Cheung's birthday. Happy Birthday Michelle! Today is Michelle Cheung's birthday. Happy Birthday Michelle!
`; `;
else if (month == 4 && day == 23) else if (month === 4 && day === 23)
return ` return `
Today is the ${anniversary}-year 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>!
`; `;
else if (month == 8 && day == 9) else if (month === 8 && day === 9)
return ` return `
Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
`; `;
else if (month == 12 && day == 28) else if (month === 12 && day === 28)
return ` return `
Today is Sam Wong's birthday. Happy Birthday Sam! Today is Sam Wong's birthday. Happy Birthday Sam!
`; `;

View File

@ -117,19 +117,19 @@
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const anniversary = currentYear - releaseDate; const anniversary = currentYear - releaseDate;
if (month == 2 && day == 16) if (month === 2 && day === 16)
return ` return `
Today is Michelle Cheung's birthday. Happy Birthday Michelle! Today is Michelle Cheung's birthday. Happy Birthday Michelle!
`; `;
else if (month == 4 && day == 23) else if (month === 4 && day === 23)
return ` return `
Today is the ${anniversary}-year 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>!
`; `;
else if (month == 8 && day == 9) else if (month === 8 && day === 9)
return ` return `
Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
`; `;
else if (month == 12 && day == 28) else if (month === 12 && day === 28)
return ` return `
Today is Sam Wong's birthday. Happy Birthday Sam! Today is Sam Wong's birthday. Happy Birthday Sam!
`; `;

View File

@ -24,19 +24,19 @@
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const anniversary = currentYear - releaseDate; const anniversary = currentYear - releaseDate;
if (month == 2 && day == 16) if (month === 2 && day === 16)
return ` return `
Today is Michelle Cheung's birthday. Happy Birthday Michelle! Today is Michelle Cheung's birthday. Happy Birthday Michelle!
`; `;
else if (month == 4 && day == 23) else if (month === 4 && day === 23)
return ` return `
Today is the ${anniversary}-year 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>!
`; `;
else if (month == 8 && day == 9) else if (month === 8 && day === 9)
return ` return `
Today is Cecelia Cortes' birthday. Happy Birthday Cecelia! Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
`; `;
else if (month == 12 && day == 28) else if (month === 12 && day === 28)
return ` return `
Today is Sam Wong's birthday. Happy Birthday Sam! Today is Sam Wong's birthday. Happy Birthday Sam!
`; `;