forked from mayaakmal/mayaakmal.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_2.html
29 lines (22 loc) · 1.02 KB
/
index_2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<script>
var countDownTime = new Date("Oct 10, 2021 10:00").getTime()
var x = setInterval(function(){
var now = new Date().getTime()
var distance = countDownTime - now
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("time").innerHTML = days + " hari <br>" + hours + ": "+ minutes + ": " + seconds + " ";
})
</script>
</head>
<body>
<p style="text-align: center;"> </p>
<h1 style="text-align: center;"><strong>Stay tune for <span style="color: #ff0000;">October, 10 </span></strong></h1>
<p style="text-align: center;"><strong><span style="color: #000000;">Akmal & Maya</span></strong></p>
<h1 style="text-align: center; margin-top: 120px;" id="time"></h1>
</body>
</html>