Display anniversary year count of Cassette Beasts releases on tht hero top bar
This commit is contained in:
parent
7a47b1faa2
commit
8c26c844e1
|
@ -30,6 +30,10 @@
|
||||||
--clr-main-footer-bg: #9b59b6;
|
--clr-main-footer-bg: #9b59b6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero__top-bar {
|
||||||
|
color: var(--clr-navbar-link);
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
color: var(--clr-navbar-link);
|
color: var(--clr-navbar-link);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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-23T07:56:04Z</updated>
|
<updated>2024-04-23T08:12:34Z</updated>
|
||||||
<id>https://leilukin.neocities.org</id>
|
<id>https://leilukin.neocities.org</id>
|
||||||
<author>
|
<author>
|
||||||
<name>Leilukin</name>
|
<name>Leilukin</name>
|
||||||
|
|
|
@ -114,22 +114,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -114,22 +114,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -114,22 +114,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -114,22 +114,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -114,22 +114,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -114,22 +114,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -114,22 +114,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -20,22 +20,28 @@
|
||||||
|
|
||||||
if (month == 4 && day == 26)
|
if (month == 4 && day == 26)
|
||||||
return "CB Anniversary";
|
return "CB Anniversary";
|
||||||
else if (month == 9 && day == 12)
|
else if (month == 10 && day == 4)
|
||||||
return "Pier Anniversary";
|
return "Pier Anniversary";
|
||||||
else
|
else
|
||||||
return "No event";
|
return "No event";
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const cbReleaseDate = new Date("2023-04-26").getFullYear();
|
||||||
|
const pierReleaseDate = new Date("2023-10-04").getFullYear();
|
||||||
|
const cbAnniversary = currentYear - cbReleaseDate;
|
||||||
|
const pierAnniversary = currentYear - pierReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "CB Anniversary":
|
case "CB Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Cassette Beasts</cite>!
|
Today is the ${cbAnniversary}-year anniversary of the release of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "Pier Anniversary":
|
case "Pier Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
Today is the ${pierAnniversary}-year anniversary of the release of <cite>Pier of the Unknown</cite>, the first DLC expansion of <cite>Cassette Beasts</cite>!
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
--clr-main-footer-bg: #9b59b6;
|
--clr-main-footer-bg: #9b59b6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero__top-bar {
|
||||||
|
color: var(--clr-navbar-link);
|
||||||
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
color: var(--clr-navbar-link);
|
color: var(--clr-navbar-link);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue