diff --git a/_site/feed.xml b/_site/feed.xml
index e0e71009..cef18f09 100644
--- a/_site/feed.xml
+++ b/_site/feed.xml
@@ -4,7 +4,7 @@
Leilukin's personal website.
- 2024-04-29T03:36:24Z
+ 2024-04-29T03:38:43Z
https://leilukin.neocities.org
Leilukin
diff --git a/_site/shrines/asummersend/gallery/index.html b/_site/shrines/asummersend/gallery/index.html
index 049c523b..6a7c6dec 100644
--- a/_site/shrines/asummersend/gallery/index.html
+++ b/_site/shrines/asummersend/gallery/index.html
@@ -103,9 +103,9 @@
const todayEvent = getTodayEvent();
- if (todayEvent != "No event") {
+ if (todayEvent) {
heroTopBarEl.classList.remove('hidden');
- heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);
+ heroTopBarEl.innerHTML = todayEvent;
}
function getTodayEvent() {
@@ -113,47 +113,28 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 2 && day == 16)
- return "Michelle's Birthday";
- else if (month == 4 && day == 23)
- return "ASE Anniversary";
- else if (month == 8 && day == 9)
- return "Cecelia's Birthday";
- else if (month == 12 && day == 28)
- return "Sam's Birthday";
- else
- return "No event";
- }
-
- 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 `
- Today is Michelle Cheung's birthday. Happy Birthday Michelle!
- `;
- break;
- case "ASE Anniversary":
- return `
- Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
- `;
- break;
- case "Cecelia's Birthday":
- return `
- Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
- `;
- break;
- case "Sam's Birthday":
- return `
- Today is Sam Wong's birthday. Happy Birthday Sam!
- `;
- break;
- default:
- return ``;
- }
+ if (month == 2 && day == 16)
+ return `
+ Today is Michelle Cheung's birthday. Happy Birthday Michelle!
+ `;
+ else if (month == 4 && day == 23)
+ return `
+ Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
+ `;
+ else if (month == 8 && day == 9)
+ return `
+ Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
+ `;
+ else if (month == 12 && day == 28)
+ return `
+ Today is Sam Wong's birthday. Happy Birthday Sam!
+ `;
+ else
+ return null;
}
diff --git a/_site/shrines/asummersend/index.html b/_site/shrines/asummersend/index.html
index 68538b2d..16359e44 100644
--- a/_site/shrines/asummersend/index.html
+++ b/_site/shrines/asummersend/index.html
@@ -103,9 +103,9 @@
const todayEvent = getTodayEvent();
- if (todayEvent != "No event") {
+ if (todayEvent) {
heroTopBarEl.classList.remove('hidden');
- heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);
+ heroTopBarEl.innerHTML = todayEvent;
}
function getTodayEvent() {
@@ -113,47 +113,28 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 2 && day == 16)
- return "Michelle's Birthday";
- else if (month == 4 && day == 23)
- return "ASE Anniversary";
- else if (month == 8 && day == 9)
- return "Cecelia's Birthday";
- else if (month == 12 && day == 28)
- return "Sam's Birthday";
- else
- return "No event";
- }
-
- 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 `
- Today is Michelle Cheung's birthday. Happy Birthday Michelle!
- `;
- break;
- case "ASE Anniversary":
- return `
- Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
- `;
- break;
- case "Cecelia's Birthday":
- return `
- Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
- `;
- break;
- case "Sam's Birthday":
- return `
- Today is Sam Wong's birthday. Happy Birthday Sam!
- `;
- break;
- default:
- return ``;
- }
+ if (month == 2 && day == 16)
+ return `
+ Today is Michelle Cheung's birthday. Happy Birthday Michelle!
+ `;
+ else if (month == 4 && day == 23)
+ return `
+ Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
+ `;
+ else if (month == 8 && day == 9)
+ return `
+ Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
+ `;
+ else if (month == 12 && day == 28)
+ return `
+ Today is Sam Wong's birthday. Happy Birthday Sam!
+ `;
+ else
+ return null;
}
diff --git a/_site/shrines/asummersend/playlists/index.html b/_site/shrines/asummersend/playlists/index.html
index 56256e7f..46824dc2 100644
--- a/_site/shrines/asummersend/playlists/index.html
+++ b/_site/shrines/asummersend/playlists/index.html
@@ -103,9 +103,9 @@
const todayEvent = getTodayEvent();
- if (todayEvent != "No event") {
+ if (todayEvent) {
heroTopBarEl.classList.remove('hidden');
- heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);
+ heroTopBarEl.innerHTML = todayEvent;
}
function getTodayEvent() {
@@ -113,47 +113,28 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 2 && day == 16)
- return "Michelle's Birthday";
- else if (month == 4 && day == 23)
- return "ASE Anniversary";
- else if (month == 8 && day == 9)
- return "Cecelia's Birthday";
- else if (month == 12 && day == 28)
- return "Sam's Birthday";
- else
- return "No event";
- }
-
- 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 `
- Today is Michelle Cheung's birthday. Happy Birthday Michelle!
- `;
- break;
- case "ASE Anniversary":
- return `
- Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
- `;
- break;
- case "Cecelia's Birthday":
- return `
- Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
- `;
- break;
- case "Sam's Birthday":
- return `
- Today is Sam Wong's birthday. Happy Birthday Sam!
- `;
- break;
- default:
- return ``;
- }
+ if (month == 2 && day == 16)
+ return `
+ Today is Michelle Cheung's birthday. Happy Birthday Michelle!
+ `;
+ else if (month == 4 && day == 23)
+ return `
+ Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
+ `;
+ else if (month == 8 && day == 9)
+ return `
+ Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
+ `;
+ else if (month == 12 && day == 28)
+ return `
+ Today is Sam Wong's birthday. Happy Birthday Sam!
+ `;
+ else
+ return null;
}
diff --git a/_site/shrines/asummersend/trivia/index.html b/_site/shrines/asummersend/trivia/index.html
index cfb3d9a4..ec87e1f3 100644
--- a/_site/shrines/asummersend/trivia/index.html
+++ b/_site/shrines/asummersend/trivia/index.html
@@ -103,9 +103,9 @@
const todayEvent = getTodayEvent();
- if (todayEvent != "No event") {
+ if (todayEvent) {
heroTopBarEl.classList.remove('hidden');
- heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);
+ heroTopBarEl.innerHTML = todayEvent;
}
function getTodayEvent() {
@@ -113,47 +113,28 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 2 && day == 16)
- return "Michelle's Birthday";
- else if (month == 4 && day == 23)
- return "ASE Anniversary";
- else if (month == 8 && day == 9)
- return "Cecelia's Birthday";
- else if (month == 12 && day == 28)
- return "Sam's Birthday";
- else
- return "No event";
- }
-
- 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 `
- Today is Michelle Cheung's birthday. Happy Birthday Michelle!
- `;
- break;
- case "ASE Anniversary":
- return `
- Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
- `;
- break;
- case "Cecelia's Birthday":
- return `
- Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
- `;
- break;
- case "Sam's Birthday":
- return `
- Today is Sam Wong's birthday. Happy Birthday Sam!
- `;
- break;
- default:
- return ``;
- }
+ if (month == 2 && day == 16)
+ return `
+ Today is Michelle Cheung's birthday. Happy Birthday Michelle!
+ `;
+ else if (month == 4 && day == 23)
+ return `
+ Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
+ `;
+ else if (month == 8 && day == 9)
+ return `
+ Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
+ `;
+ else if (month == 12 && day == 28)
+ return `
+ Today is Sam Wong's birthday. Happy Birthday Sam!
+ `;
+ else
+ return null;
}
diff --git a/src/_includes/asummersend/hero.njk b/src/_includes/asummersend/hero.njk
index 14e842ad..97d95f6c 100644
--- a/src/_includes/asummersend/hero.njk
+++ b/src/_includes/asummersend/hero.njk
@@ -10,9 +10,9 @@
{% block eventScript %}
const todayEvent = getTodayEvent();
- if (todayEvent != "No event") {
+ if (todayEvent) {
heroTopBarEl.classList.remove('hidden');
- heroTopBarEl.innerHTML = getBlurbHtml(todayEvent);
+ heroTopBarEl.innerHTML = todayEvent;
}
function getTodayEvent() {
@@ -20,46 +20,27 @@
const month = date.getMonth() + 1;
const day = date.getDate();
- if (month == 2 && day == 16)
- return "Michelle's Birthday";
- else if (month == 4 && day == 23)
- return "ASE Anniversary";
- else if (month == 8 && day == 9)
- return "Cecelia's Birthday";
- else if (month == 12 && day == 28)
- return "Sam's Birthday";
- else
- return "No event";
- }
-
- 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 `
- Today is Michelle Cheung's birthday. Happy Birthday Michelle!
- `;
- break;
- case "ASE Anniversary":
- return `
- Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
- `;
- break;
- case "Cecelia's Birthday":
- return `
- Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
- `;
- break;
- case "Sam's Birthday":
- return `
- Today is Sam Wong's birthday. Happy Birthday Sam!
- `;
- break;
- default:
- return ``;
- }
+ if (month == 2 && day == 16)
+ return `
+ Today is Michelle Cheung's birthday. Happy Birthday Michelle!
+ `;
+ else if (month == 4 && day == 23)
+ return `
+ Today is the ${anniversary}-year anniversary of the release of A Summer’s End — Hong Kong 1986!
+ `;
+ else if (month == 8 && day == 9)
+ return `
+ Today is Cecelia Cortes' birthday. Happy Birthday Cecelia!
+ `;
+ else if (month == 12 && day == 28)
+ return `
+ Today is Sam Wong's birthday. Happy Birthday Sam!
+ `;
+ else
+ return null;
}
{% endblock %}
\ No newline at end of file