Don't show 00

This commit is contained in:
Samuel Sloniker 2022-12-31 19:35:06 -08:00
parent 0cd1d502c7
commit af9c347ff9
Signed by: kj7rrv
GPG Key ID: 1BB4029E66285A62

View File

@ -31,7 +31,7 @@ function adjust() {
let cec = document.querySelector("#countdownbox") let cec = document.querySelector("#countdownbox")
let cet = document.querySelector("#countdowntext") let cet = document.querySelector("#countdowntext")
let time = (newYear - new Date()) / 1000 let time = Math.ceil((newYear - new Date()) / 1000)
if (time <= 0) { if (time <= 0) {
clearInterval(intervalID) clearInterval(intervalID)
cet.innerHTML = "HAPPY NEW YEAR" cet.innerHTML = "HAPPY NEW YEAR"