Don't show 00
This commit is contained in:
parent
0cd1d502c7
commit
af9c347ff9
2
main.js
2
main.js
|
@ -31,7 +31,7 @@ function adjust() {
|
|||
let cec = document.querySelector("#countdownbox")
|
||||
let cet = document.querySelector("#countdowntext")
|
||||
|
||||
let time = (newYear - new Date()) / 1000
|
||||
let time = Math.ceil((newYear - new Date()) / 1000)
|
||||
if (time <= 0) {
|
||||
clearInterval(intervalID)
|
||||
cet.innerHTML = "HAPPY NEW YEAR"
|
||||
|
|
Loading…
Reference in New Issue
Block a user