Clean up JS a little before the D.I.E. date
This commit is contained in:
parent
202094b660
commit
d142a26e1f
@ -38,7 +38,8 @@ var x = setInterval(function () {
|
||||
|
||||
// Time calculations for days, hours, minutes and seconds
|
||||
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 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 (distance < 0) {
|
||||
clearInterval(x);
|
||||
document.getElementById("dethKlok").innerHTML = "DONE. Rest in pieces";
|
||||
document.getElementById("dethKlok").innerHTML =
|
||||
"DONE. Deprecated as of Aug 17, 2021 💀";
|
||||
}
|
||||
}, 1000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user