|
|
@ -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 + " D " + hours + " H "
|
|
|
|
document.getElementById("demo").innerHTML = days + " days " + hours + " hours "
|
|
|
|
+ minutes + " M " + seconds + " S ";
|
|
|
|
+ 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) {
|
|
|
|