Clean up JS a little before the D.I.E. date

This commit is contained in:
swaggboi 2021-08-12 11:56:42 -04:00
parent 202094b660
commit d142a26e1f

View File

@ -38,7 +38,8 @@ var x = setInterval(function () {
// Time calculations for days, hours, minutes and seconds // Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) /
(1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000); var seconds = Math.floor((distance % (1000 * 60)) / 1000);
@ -49,6 +50,7 @@ var x = setInterval(function () {
// If the count down is finished, write some text // If the count down is finished, write some text
if (distance < 0) { if (distance < 0) {
clearInterval(x); clearInterval(x);
document.getElementById("dethKlok").innerHTML = "DONE. Rest in pieces"; document.getElementById("dethKlok").innerHTML =
"DONE. Deprecated as of Aug 17, 2021 💀";
} }
}, 1000); }, 1000);