Display anniversary year count of KotOR releases on the top bar
This commit is contained in:
parent
47cc380ca0
commit
2eb7b33112
|
@ -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-23T08:13:45Z</updated>
|
<updated>2024-04-23T08:42:08Z</updated>
|
||||||
<id>https://leilukin.neocities.org</id>
|
<id>https://leilukin.neocities.org</id>
|
||||||
<author>
|
<author>
|
||||||
<name>Leilukin</name>
|
<name>Leilukin</name>
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -121,15 +121,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
|
|
||||||
if (month == 7 && day == 16)
|
if (month == 7 && day == 15)
|
||||||
return "KotOR 1 Anniversary";
|
return "KotOR 1 Anniversary";
|
||||||
else if (month == 12 && day == 6)
|
else if (month == 12 && day == 6)
|
||||||
return "KotOR 2 Anniversary";
|
return "KotOR 2 Anniversary";
|
||||||
|
@ -27,15 +27,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getBlurbHtml(day) {
|
function getBlurbHtml(day) {
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const kotor1ReleaseDate = new Date("2003-07-15").getFullYear();
|
||||||
|
const kotor2ReleaseDate = new Date("2004-12-06").getFullYear();
|
||||||
|
const kotor1Anniversary = currentYear - kotor1ReleaseDate;
|
||||||
|
const kotor2Anniversary = currentYear - kotor2ReleaseDate;
|
||||||
|
|
||||||
switch (day) {
|
switch (day) {
|
||||||
case "KotOR 1 Anniversary":
|
case "KotOR 1 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
Today is the ${kotor1Anniversary}-year anniversary of the release of <cite>Star Wars: Knihgts of the Old Republic</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
case "KotOR 2 Anniversary":
|
case "KotOR 2 Anniversary":
|
||||||
return `
|
return `
|
||||||
Today is the anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
Today is the ${kotor2Anniversary}-year anniversary of the release of <cite>Star Wars: Knights of the Old Republic II — The Sith Lords</cite>
|
||||||
`;
|
`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue