-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathcountdown.html
More file actions
42 lines (38 loc) · 1.44 KB
/
countdown.html
File metadata and controls
42 lines (38 loc) · 1.44 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DoCTYPE html>
<html>
<head>
<title>naxacon</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<img src="images/full-logo.png" class="logo">
<div class="content">
<h3>Website Is Under Construction</h3>
<h1>We are <span>Launching</span> Soon</h1>
<p id="Calcu"></p>
<a href="https://www.facebook.com/naxacon">
<button type="button">Learn More</button>
</a>
</div>
</div>
<img src="images/rocket.png" class="rocket">
</body>
<script>
var countDownDate = new Date("Jan 1, 2023 00:00:00").getTime();
var x = setInterval(function() {
var now = new Date().getTime();
var distance = countDownDate - 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("Calcu").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
if (distance < 0){
clearInterval(x);
document.getElementById("Calcu").innerHTML = "Expired";
}
}, 1000);
</script>
</html>