|
|
@ -107,8 +107,8 @@ var x = setInterval(function() {
|
|
|
|
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
|
|
|
|
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
|
|
|
|
|
|
|
|
|
|
|
|
// Display the result in the element with id="demo"
|
|
|
|
// Display the result in the element with id="demo"
|
|
|
|
document.getElementById("demo").innerHTML = days + "days " + hours + "hours "
|
|
|
|
document.getElementById("demo").innerHTML = days + " day" + hours + " hours "
|
|
|
|
+ minutes + "min. " + seconds + "sec. ";
|
|
|
|
+ minutes + " min. " + seconds + " sec. ";
|
|
|
|
|
|
|
|
|
|
|
|
// If the count down is finished, write some text
|
|
|
|
// If the count down is finished, write some text
|
|
|
|
if (distance < 0) {
|
|
|
|
if (distance < 0) {
|
|
|
|