diff --git a/assets/javascript/index.js b/assets/javascript/index.js index 5058836..3bb8f3e 100644 --- a/assets/javascript/index.js +++ b/assets/javascript/index.js @@ -4,7 +4,7 @@ const pageList = document.getElementsByClassName("page"); const loaded = []; var currentPage; -let splashes = ["Totally not rigged!!!", "New Lameful", "What's Uptown?", */"♫I've been workin' on the railroad♫", "Also visit CalvinTown", "Also visit IkeaLand", "Also visit Matsunoki", "Also visit MillField", "Also visit Jurcgrad", "Also visit Spawn 2025", "Brought to you by the NNNNNNNNNN", "Dig the Cube", "Urban Sprawl!", "Invest in WormzyCoin!", "New and Improved!", "Omtegu!", "do /pay new_nameful 20 for good luck", "my asshole hurts", "The most extravagant group project", "That damn cube…", "what the nameful", "Vote Karma!", "Cobble ceiling has been removed.", "railroad fetish", "ColoradoCrusade!", "MississipiMuslim!!", "PennsylvaniaPacifist!", "Haiiiii Lkarchhhh :3", "23% approved!", "67% approved!", "71% approved!", "Now updated to 1.21.5", "hardly know her", "Praise be thine", "Beware the NBP", "/lmk NewNameful", "Coded by Lkarch", "Just one more rail line…", "I think I get why they call it Minecraft", "Why isn't there a New Nameful 2?", "The townsfolk get a little quirky at night.", "/pay keyboardan 100", "Cube 3 coming soon!", "\"Mildly funny splash text here\"", "Also try Old Nameful"]; +let splashes = ["Totally not rigged!!!", "New Lameful", "What's Uptown?", "♫I've been workin' on the railroad♫", "Also visit CalvinTown", "Also visit IkeaLand", "Also visit Matsunoki", "Also visit MillField", "Also visit Jurcgrad", "Also visit Spawn 2025", "Brought to you by the NNNNNNNNNN", "Dig the Cube", "Urban Sprawl!", "Invest in WormzyCoin!", "New and Improved!", "Omtegu!", "do /pay new_nameful 20 for good luck", "my asshole hurts", "The most extravagant group project", "That damn cube…", "what the nameful", "Vote Karma!", "Cobble ceiling has been removed.", "railroad fetish", "ColoradoCrusade!", "MississipiMuslim!!", "PennsylvaniaPacifist!", "Haiiiii Lkarchhhh :3", "23% approved!", "67% approved!", "71% approved!", "Now updated to 1.21.5", "hardly know her", "Praise be thine", "Beware the NBP", "/lmk NewNameful", "Coded by Lkarch", "Just one more rail line…", "I think I get why they call it Minecraft", "Why isn't there a New Nameful 2?", "The townsfolk get a little quirky at night.", "/pay keyboardan 100", "Cube 3 coming soon!", "\"Mildly funny splash text here\"", "Also try Old Nameful"]; function getCookie(cookieName) { let name = cookieName + "="; diff --git a/assets/javascript/load-data.js b/assets/javascript/load-data.js index 57808e9..5b8596d 100644 --- a/assets/javascript/load-data.js +++ b/assets/javascript/load-data.js @@ -37,13 +37,13 @@ async function electionLoad() { let countdown = document.createElement("p") - if (Math.ceil(calculateCountdown(electionDate)) <= 0) { + if (Math.ceil(calculateCountdown(election.electionDate)) <= 0) { countdown.innerText = "The next election is RIGHT NOW!!!"; } else { countdown.innerText = "The next election is in " + Math.ceil(calculateCountdown(election.electionDate)) + " days!"; } - console.log("Next election occurs in " + calculateCountdown(electionDate) + " days"); + console.log("Next election occurs in " + calculateCountdown(election.electionDate) + " days"); document.getElementById("election").append(countdown); }