-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (69 loc) · 2.22 KB
/
index.html
File metadata and controls
71 lines (69 loc) · 2.22 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="FunCards Project">
<title>FunCards</title>
<link rel="stylesheet" href="/assets/css/index.css">
</head>
<body>
<section>
<img src="/assets/img/curve.png" class="wave" alt="wave"/>
<div class="contentBx">
<h2>Coming Soon</h2>
<div class="countdown">
<div class="time">
<div id="day"></div>
<span>Days</span>
</div>
<div class="time">
<div id="hour"></div>
<span>Hours</span>
</div>
<div class="time">
<div id="minute"></div>
<span>Minutes</span>
</div>
<div class="time">
<div id="second"></div>
<span>Seconds</span>
</div>
</div>
</div>
<div class="imgBx">
<img src="/assets/img/man.png" alt="man"/>
</div>
<ul class="sci">
<li>
<a href="https://github.com/funcards" target="_blank">
<img src="/assets/img/GitHub.png" alt="GitHub"/>
</a>
</li>
</ul>
</section>
<script type="text/javascript">
const countDate = new Date(new Date().getFullYear() + 1, new Date().getMonth()).getTime();
function cd() {
const now = new Date().getTime();
const gap = countDate - now;
const second = 1000;
const minute = second * 60;
const hour = minute * 60;
const day = hour * 24;
const d = Math.floor(gap / day);
const h = Math.floor((gap % (day)) / (hour));
const m = Math.floor((gap % (hour)) / (minute));
const s = Math.floor((gap % (minute)) / second);
document.getElementById('day').innerText = d.toString();
document.getElementById('hour').innerText = h.toString();
document.getElementById('minute').innerText = m.toString();
document.getElementById('second').innerText = s.toString();
}
setInterval(function () {
cd();
}, 1000)
</script>
</body>
</html>