Compare commits
No commits in common. "2dc68e3fdc6ff916304ab3b7c51b4c87d65bfc47" and "06741f5f31bce25b07866e0e1fa48955cba4e246" have entirely different histories.
2dc68e3fdc
...
06741f5f31
Binary file not shown.
@ -1,30 +0,0 @@
|
|||||||
const nnRuler = "cool_tellow";
|
|
||||||
const nnCoRuler = "ColoradoCrusade";
|
|
||||||
const electionDate = "2025-6-30";
|
|
||||||
|
|
||||||
function calculateCountdown(endingDate) {
|
|
||||||
let current = new Date();
|
|
||||||
let end = new Date(endingDate);
|
|
||||||
let timeDifference = end - current;
|
|
||||||
let daysDifference = timeDifference / (1000 * 3600 * 24);
|
|
||||||
return daysDifference;
|
|
||||||
}
|
|
||||||
|
|
||||||
function onPageLoad() {
|
|
||||||
console.log(nnRuler);
|
|
||||||
document.getElementById("ruler").innerText = nnRuler;
|
|
||||||
document.getElementById("rulerImage").src = "https://minotar.net/armor/body/" + nnRuler + "/100.png";
|
|
||||||
|
|
||||||
console.log(nnCoRuler);
|
|
||||||
document.getElementById("coRuler").innerText = nnCoRuler;
|
|
||||||
document.getElementById("coRulerImage").src = "https://minotar.net/armor/body/" + nnCoRuler + "/100.png";
|
|
||||||
|
|
||||||
console.log(calculateCountdown(electionDate));
|
|
||||||
|
|
||||||
|
|
||||||
if (Math.ceil(calculateCountdown(electionDate)) <= 0) {
|
|
||||||
document.getElementById("electionCountdown").innerText = "The next election is RIGHT NOW!!!";
|
|
||||||
} else {
|
|
||||||
document.getElementById("electionCountdown").innerText = "The next election is in " + Math.ceil(calculateCountdown(electionDate)) + " days!";
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,66 +0,0 @@
|
|||||||
@font-face {
|
|
||||||
font-family: 'minecraft';
|
|
||||||
src: url('/assets/fonts/MinecraftRegular.otf') format('opentype');
|
|
||||||
}
|
|
||||||
|
|
||||||
* {box-sizing: border-box}
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
margin: 0;
|
|
||||||
height: 100%;
|
|
||||||
font-family: 'minecraft';
|
|
||||||
background-color: #1a1a1a;
|
|
||||||
color: #eee;
|
|
||||||
padding: 10px;
|
|
||||||
text-align: center;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
margin: auto;
|
|
||||||
border-left: 6px solid #eee;
|
|
||||||
background-color: #222;
|
|
||||||
padding: 15px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
|
|
||||||
width: 370px;
|
|
||||||
height: 322px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card p {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card img {
|
|
||||||
display: block;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#splash {
|
|
||||||
color: #FFFF00;
|
|
||||||
font-size: 1.5em;
|
|
||||||
text-shadow: 3px 3px #3F3F00;
|
|
||||||
padding: 40px;
|
|
||||||
position: relative;
|
|
||||||
left: 150px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tilt {
|
|
||||||
transform: rotate(-25deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.pop {
|
|
||||||
animation: pop 0.58s infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes pop {
|
|
||||||
from {
|
|
||||||
transform:scale(0.95)
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
transform:scale(1)
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
transform:scale(0.95)
|
|
||||||
}
|
|
||||||
}
|
|
31
index.html
31
index.html
@ -1,31 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>New Nameful Election Info</title>
|
|
||||||
<meta charset="UTF-8" />
|
|
||||||
<meta name="description" content="Tellow approves!!!!!" />
|
|
||||||
<meta name="keywords" content="lkarch, website, new nameful, election" />
|
|
||||||
<meta author="lkarch" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<link rel="stylesheet" href="/assets/stylesheets/index.css" />
|
|
||||||
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico" />
|
|
||||||
</head>
|
|
||||||
<body onload="onPageLoad()">
|
|
||||||
<div class="card">
|
|
||||||
<p>Ruler<hr></p>
|
|
||||||
<p id="ruler">Something Broke</p>
|
|
||||||
<img id="rulerImage" src="https://minotar.net/body/MHF_Steve/100.png" alt="Something Broke">
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
|
||||||
<p>Co-Ruler<hr></p>
|
|
||||||
<p id="coRuler">Something Broke</p>
|
|
||||||
<img id="coRulerImage" src="https://minotar.net/body/MHF_Steve/100.png" alt="Something Broke">
|
|
||||||
<div class="tilt">
|
|
||||||
<div id="splash" class="pop">Totally not rigged</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<p id="electionCountdown">Something Broke</p>
|
|
||||||
<script src="assets/javascript/index.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
x
Reference in New Issue
Block a user