-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (56 loc) · 2.32 KB
/
index.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<title>Kems | Home</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body class="bg-light">
<div class="container-fluid">
<div class="flex text-center text-success mt-2 mb-3">
<h2>Kems</h2>
<h6>Coming Soon</h6>
</div>
<div class="container d-flex align-items-center justify-content-center mb-0">
<!--The card Start-->
<div class="card" style="width:400px">
<div class="card-body">
<h5 class="card-title text-center text-warning"><strong>Days Remaining</strong></h5>
<div><span id="days"></span>days</div><br>
<div><span id="hours"></span>Hours</div><br>
<div></div><br>
<div><span id="minutes"></span>Minutes</div><br>
<div><span id="seconds"></span>Seconds</div>
</div>
</div>
<!--Card Ends-->
<!--Footer-->
<nav class="navbar navbar-expand justify-content-center fixed-bottom">
<ul class="navbar-nav">
<li class="nav-item d-flex">
<p>© 2023 ercms · Powered By iChris Technologies</p>
</li>
</ul>
</nav>
<!--Footer End-->
</div>
</div>
<script>
const second = 1000,
minute = second * 60,
hour = minute * 60,
day = hour * 24;
let countDown = new Date('January 01, 2024 00:00:00').getTime(),
x = setInterval(function() {
let now = new Date().getTime(),
distance = countDown - now;
document.getElementById('days').innerText = Math.floor(distance / (day)),
document.getElementById('hours').innerText = Math.floor((distance % (day)) / (hour)),
document.getElementById('minutes').innerText = Math.floor((distance % (hour)) / (minute)),
document.getElementById('seconds').innerText = Math.floor((distance % (minute)) / second);
}, second)
</script>
</body>
</html>