parent
10ed0eef1c
commit
4f05f739e0
|
@ -49,8 +49,7 @@
|
||||||
// Set the date we're counting down to
|
// Set the date we're counting down to
|
||||||
var countDownDate = new Date("Jan 30, 2021 14:00:00").getTime();
|
var countDownDate = new Date("Jan 30, 2021 14:00:00").getTime();
|
||||||
|
|
||||||
// Update the count down every 1 second
|
function updateClock() {
|
||||||
var x = setInterval(function() {
|
|
||||||
// Get today's date and time
|
// Get today's date and time
|
||||||
var now = new Date().getTime();
|
var now = new Date().getTime();
|
||||||
|
|
||||||
|
@ -86,6 +85,10 @@
|
||||||
clearInterval(x);
|
clearInterval(x);
|
||||||
document.getElementById("clock").innerHTML = "Le mariage commence maintenant !";
|
document.getElementById("clock").innerHTML = "Le mariage commence maintenant !";
|
||||||
}
|
}
|
||||||
}, 1000);
|
}
|
||||||
|
|
||||||
|
// Update the count down every 1 second
|
||||||
|
updateClock();
|
||||||
|
setInterval(updateClock, 1000);
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -48,8 +48,7 @@
|
||||||
// Set the date we're counting down to
|
// Set the date we're counting down to
|
||||||
var countDownDate = new Date("Jan 30, 2021 14:00:00").getTime();
|
var countDownDate = new Date("Jan 30, 2021 14:00:00").getTime();
|
||||||
|
|
||||||
// Update the count down every 1 second
|
function updateClock() {
|
||||||
var x = setInterval(function() {
|
|
||||||
// Get today's date and time
|
// Get today's date and time
|
||||||
var now = new Date().getTime();
|
var now = new Date().getTime();
|
||||||
|
|
||||||
|
@ -73,6 +72,10 @@
|
||||||
clearInterval(x);
|
clearInterval(x);
|
||||||
document.getElementById("clock").innerHTML = "The wedding will start ASAP!";
|
document.getElementById("clock").innerHTML = "The wedding will start ASAP!";
|
||||||
}
|
}
|
||||||
}, 1000);
|
}
|
||||||
|
|
||||||
|
// Update the count down every 1 second
|
||||||
|
updateClock();
|
||||||
|
setInterval(updateClock, 1000);
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue