Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
yhshu committed Sep 23, 2023
1 parent a004e9d commit 9309eb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ <h4>` + data.session_list[i].speaker.name + ` <span class="span-block">` + data.
const now = new Date().getTime(),
distance = countDown - now;

document.getElementById("days").innerText = Math.floor(distance / (day)),
document.getElementById("hours").innerText = Math.floor((distance % (day)) / (hour)),
document.getElementById("minutes").innerText = Math.floor((distance % (hour)) / (minute)),
document.getElementById("seconds").innerText = Math.floor((distance % (minute)) / second);
// document.getElementById("days").innerText = Math.floor(distance / (day)),
// document.getElementById("hours").innerText = Math.floor((distance % (day)) / (hour)),
// document.getElementById("minutes").innerText = Math.floor((distance % (hour)) / (minute)),
// document.getElementById("seconds").innerText = Math.floor((distance % (minute)) / second);

//do something later when date is reached
if (distance < 0) {
Expand Down

0 comments on commit 9309eb2

Please sign in to comment.