From 1c909651f3856da16854af3654c2f764768d6894 Mon Sep 17 00:00:00 2001 From: lkarch Date: Thu, 22 May 2025 13:48:27 -0400 Subject: [PATCH] Fixed minor things --- assets/javascript/index.js | 18 +++++++++--------- index.html | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/assets/javascript/index.js b/assets/javascript/index.js index 3964ab1..a4735e9 100644 --- a/assets/javascript/index.js +++ b/assets/javascript/index.js @@ -53,15 +53,15 @@ function switchSection(sectionName, button) { } function loadRulersAndElectionCountdown() { - console.log(nnRuler); + console.log("Ruler found: \"" + nnRuler + "\""); document.getElementById("ruler").innerText = nnRuler; document.getElementById("rulerImage").src = "https://minotar.net/armor/body/" + nnRuler + "/100.png"; - console.log(nnCoRuler); + console.log("Co-ruler found: \"" + nnCoRuler + "\""); document.getElementById("coRuler").innerText = nnCoRuler; document.getElementById("coRulerImage").src = "https://minotar.net/armor/body/" + nnCoRuler + "/100.png"; - console.log(calculateCountdown(electionDate)); + console.log("Next election occurs in " + calculateCountdown(electionDate) + " days"); if (Math.ceil(calculateCountdown(electionDate)) <= 0) { @@ -82,17 +82,17 @@ function loadMemberList() { } function onPageLoad() { - loadRulersAndElectionCountdown() - loadMemberList() - if (url.searchParams.has("section")) { - console.log("URL parameter found, forcing section to " + url.searchParams.get("section") + "."); + console.log("URL parameter found, forcing section to \"" + url.searchParams.get("section") + "\""); document.getElementById(url.searchParams.get("section") + "Button").click(); } else if (getCookie("section") === "") { - console.log("A wild user appears! Defaulting to first section, \"" + sectionList[0].id + "\".") + console.log("A wild user appears! Defaulting to first section, \"" + sectionList[0].id + "\"") document.getElementById(sectionList[0].id + "Button").click(); } else { - console.log("Section cookie found, restoring section to \"" + getCookie("section") + "\"."); + console.log("Section cookie found, restoring section to \"" + getCookie("section") + "\""); document.getElementById(getCookie("section") + "Button").click(); } + + loadRulersAndElectionCountdown() + loadMemberList() } diff --git a/index.html b/index.html index bbcc129..8ffc48e 100755 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ New Nameful - +