Use strict qual operator for event dates
This commit is contained in:
parent
cbb5b8d8ac
commit
c83da017ff
|
@ -4,7 +4,7 @@
|
||||||
<subtitle>Leilukin's personal website.</subtitle>
|
<subtitle>Leilukin'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>
|
||||||
|
|
|
@ -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 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>!
|
||||||
`;
|
`;
|
||||||
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!
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -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 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>!
|
||||||
`;
|
`;
|
||||||
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!
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -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 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>!
|
||||||
`;
|
`;
|
||||||
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!
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -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 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>!
|
||||||
`;
|
`;
|
||||||
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!
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -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 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>!
|
||||||
`;
|
`;
|
||||||
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!
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue