mirror of
https://github.com/hexahigh/080609.git
synced 2025-12-11 19:55:06 +01:00
fix
This commit is contained in:
parent
735f1685ea
commit
368f4fad37
4
index.js
4
index.js
@ -24,6 +24,10 @@ function countdownTimer() {
|
||||
}
|
||||
|
||||
function countdown() {
|
||||
const now = new Date().getTime();
|
||||
const nextYear = new Date(theDate).getTime();
|
||||
const timeRemaining = nextYear - now;
|
||||
|
||||
const days = Math.floor(timeRemaining / (1000 * 60 * 60 * 24));
|
||||
const hours = Math.floor((timeRemaining % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
|
||||
const minutes = Math.floor((timeRemaining % (1000 * 60 * 60)) / (1000 * 60));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user