Compare commits
No commits in common. "db1a10a2832119765a58c3eb3ea19515ba56aba4" and "1c909651f3856da16854af3654c2f764768d6894" have entirely different histories.
db1a10a283
...
1c909651f3
@ -5,15 +5,13 @@ const nnRuler = "cool_tellow";
|
||||
const nnCoRuler = "ColoradoCrusade";
|
||||
const electionDate = "2025-6-30";
|
||||
|
||||
const splashes = ["Totally not rigged!!!"];
|
||||
|
||||
const memberList = ["Omtegu", "pupik923", "cool_tellow", "JoeTheDauntless", "black_frieza", "Jinx64_", "eldiego", "Gero06", "Spencer1019", "mrcreeperg4", "TiredToonz", "idan1503", "Wormzy333", "ColoradoCrusade", "spenten", "Geogaddiiii", "Austcd30", "MyNameIsRasheed", "MrSteam84", "TwoGoodFiveme", "ara2009", "Ransterr", "ItzFriez6312", "ArzoAblaze", "jssjsjjssj", "toiletteeth", "B8arn", "FredDerp", "Georgequank", "hunterg2i", "KarmaIsDepressed", "Mini", "ChilliChillt", "ServerLite", "proper_cat", "Master__Kief", "ItzBiblcle", "MrAss_asd", "Burningskull562", "se2p", "mindlord", "ItIsYeFish", "pivozavr2004", "latcyy", "LuckKir", "oggghrkwneh", "MiHoub", "David", "lkarch", "MegaByteX", "ScaryCowCow4", "Glanthrial", "Deskfan45", "nielubiecie321", "BoomFox_Official", "DrDews", "DrNubXP", "hagluciak19", "SavageUser", "Fireballiceball", "JakeRedstone", "kaiookk1", "My_ChairSlipped", "j63k", "jurckurc", "workingontrying", "KevinDurantgoat", "Creeperpaste", "Islando_Commando", "Migzotic", "Teasoup", "F8fnir", "JorgenMister", "isnikoda", "TrustedHawk1855", "Revivey", "BleonIlazi", "AgentTammy", "Losangelesquest", "jeorm", "CrafterSteve98", "ilikemacandcheez", "NotRawZach", "herrydicc", "Hendway", "Pugino", "TeeDoesStuff", "TomAndBon", "SJET_Inc", "Urogalo", "arrochista", "JakePaulcraft", "WetBed43", "grammarissue", "pappoy76", "BurgerMan_27", "ilhanerdem2015", "BashurverseMC", "Batteryacids", "freddyw", "Acid0verl0ad", "CerealBoiz", "Q_QIndustries", "minerkat2011", "Capital3", "Assult_penguin", "NexSol", "DrWild", "nnnnn", "Jerry_juju", "hanxing", "Juasonxd", "Mikey_herobrine", "FluffyFoxFae", "Karmatical0", "ItsMxt", "Yen45", "Olat", "FredMCGamer", "capitanatomico", "DanielRobert15", "Hefeng_Song", "Leozero_", "MyGmail", "SkyNotBlue", "eldiegoat", "huntermkk", "ItsVollx", "sonictank1", "Miyazaki", "Beanzo0", "VolxyzMC", "tvoreal", "sushi_king86", "KAMILE33", "pascal_machet", "barton1357TF2", "Yungyoungin1", "kleeorg", "SnailRibs", "yourstruly71", "Csorroflegma", "ahhhhhhhh1587", "Lofeee", "mmakart", "adebuilder", "Jetteriter", "mud4dum", "Jesper2011", "GREENAPPLE", "guinea_pig_doody", "CreeperX200", "AudemusJura", "cutekttn", "bartur4", "Feruxia", "Kurzov", "MONKEYMAN346776", "breadcool", "Zaku1626", "keyboardan", "tetunnel", "ItTommy22Toad", "FulgencioBatista", "inoxisane", "q0iat", "Levinder", "aidenjamesmcl"];
|
||||
|
||||
function getCookie(cookieName) {
|
||||
let name = cookieName + "=";
|
||||
let decodedCookie = decodeURIComponent(document.cookie);
|
||||
let splitCookies = decodedCookie.split(';');
|
||||
for(let i = 0; i < splitCookies.length; i++) {
|
||||
var name = cookieName + "=";
|
||||
var decodedCookie = decodeURIComponent(document.cookie);
|
||||
var splitCookies = decodedCookie.split(';');
|
||||
for(var i = 0; i < splitCookies.length; i++) {
|
||||
let cookie = splitCookies[i];
|
||||
while (cookie.charAt(0) == ' ') {
|
||||
cookie = cookie.substring(1);
|
||||
@ -34,17 +32,18 @@ function calculateCountdown(endingDate) {
|
||||
}
|
||||
|
||||
function switchSection(sectionName, button) {
|
||||
for (let i = 0; i < sectionList.length; i++) {
|
||||
var i, navButton;
|
||||
for (i = 0; i < sectionList.length; i++) {
|
||||
sectionList[i].style.display = "none";
|
||||
}
|
||||
|
||||
let navButton = document.getElementsByClassName("navButton");
|
||||
navButton = document.getElementsByClassName("navButton");
|
||||
for (i = 0; i < navButton.length; i++) {
|
||||
navButton[i].style.backgroundColor = "black";
|
||||
navButton[i].style.color = "white";
|
||||
}
|
||||
|
||||
document.title = button.innerText;
|
||||
document.title = button.innerHTML;
|
||||
document.cookie = "section=" + sectionName;
|
||||
|
||||
document.getElementById(sectionName).style.display = "block";
|
||||
@ -72,19 +71,12 @@ function loadRulersAndElectionCountdown() {
|
||||
}
|
||||
}
|
||||
|
||||
function randomizeSplash() {
|
||||
let randomSplash = splashes[Math.floor(Math.random() * splashes.length)];
|
||||
console.log("Splash randomized to \"" + randomSplash +"\"");
|
||||
|
||||
document.getElementById("splash").innerText = randomSplash;
|
||||
}
|
||||
|
||||
function loadMemberList() {
|
||||
for (let member = 0; member < memberList.length; member++) {
|
||||
let memberListItem = document.createElement("p");
|
||||
memberListItem.innerText = memberList[member];
|
||||
const memberListItem = document.createElement("p");
|
||||
memberListItem.innerHTML = memberList[member];
|
||||
|
||||
document.getElementById("memberCount").innerText = "Member List: " + memberList.length;
|
||||
document.getElementById("memberCount").innerHTML = "Member List: " + memberList.length
|
||||
document.getElementById("memberList").appendChild(memberListItem);
|
||||
}
|
||||
}
|
||||
@ -94,14 +86,13 @@ function onPageLoad() {
|
||||
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") + "\"");
|
||||
document.getElementById(getCookie("section") + "Button").click();
|
||||
}
|
||||
|
||||
loadRulersAndElectionCountdown();
|
||||
randomizeSplash();
|
||||
loadMemberList();
|
||||
loadRulersAndElectionCountdown()
|
||||
loadMemberList()
|
||||
}
|
||||
|
@ -97,13 +97,3 @@ body {
|
||||
background-color: white !important;
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
#footer {
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
left: 10px;
|
||||
}
|
||||
|
||||
#footer a {
|
||||
color: white;
|
||||
}
|
||||
|
@ -18,7 +18,6 @@
|
||||
<button class="navButton" id="membersButton" onclick="switchSection('members', this)">Members</button>
|
||||
<button class="navButton" id="newsButton" onclick="switchSection('news', this)">News Notice</button>
|
||||
<button class="navButton" id="historyButton" onclick="switchSection('history', this)">History</button>
|
||||
<button class="navButton" id="discordButton" onclick="window.location.href = 'https://discord.newnameful.com'">Discord</button>
|
||||
</div>
|
||||
<div class="section" id="info">
|
||||
<p>Info</p>
|
||||
@ -34,7 +33,7 @@
|
||||
<p id="coRuler">Steve</p>
|
||||
<img id="coRulerImage" src="https://minotar.net/body/MHF_Steve/100.png" alt="Player Render">
|
||||
<div class="tilt">
|
||||
<div id="splash" class="pop">Error</div>
|
||||
<div id="splash" class="pop">Totally not rigged</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
@ -56,9 +55,6 @@
|
||||
<div class="section" id="history">
|
||||
<p>History</p>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<a href="https://git.lkarch.org/lkarch/newnameful.com">Source</a><br>
|
||||
</div>
|
||||
<script src="assets/javascript/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user