forked from Adhishree87/ITmeet-2023
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
111 lines (103 loc) · 3.44 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<title>IT MEET 2023</title>
</head>
<body>
<div class="contents">
<div class="logos">
<img src="img/kucc.png" alt="kucc logo" />
<img src="img/kulogo.png" alt="ku logo" />
</div>
<div class="title">
<img src="./img/modedark.svg" alt="it meet logo" height="120px" />
<h1>COMING SOON</h1>
</div>
<div class="countDown">
<div class="time">
<h1 id="day"></h1>
<p>DAYS</p>
</div>
<div class="time">
<h1 id="hour"></h1>
<p>HOURS</p>
</div>
<div class="time">
<h1 id="minute"></h1>
<p>MINUTES</p>
</div>
<div class="time">
<h1 id="second"></h1>
<p>SECONDS</p>
</div>
</div>
<div class="links">
<a href="https://discord.gg/Anq5mTdkZu" target="_blank">
<img class="icon" src="img/discord.png" alt="Discord" />
</a>
</a>
<a href="https://www.tiktok.com/@kuitmeet?" target="_blank">
<img class="icon" src="img/tiktok.png" alt="Tiktok" />
</a>
<a href="https://www.facebook.com/KUITMEET" target="_blank">
<img class="icon" src="img/facebook.png" alt="Facebook" />
</a>
<a href="https://www.instagram.com/kuitmeet/" target="_blank">
<img class="icon" src="img/instagram.png" alt="Instagram" />
</a>
<a href="https://twitter.com/kuitmeet" target="_blank">
<img class="icon" src="img/Twitter-Download-PNG.png" alt="Twitter" />
</a>
</div>
</div>
<script>
let day = document.getElementById("day");
let hour = document.getElementById("hour");
let minute = document.getElementById("minute");
let second = document.getElementById("second");
const targetDate = new Date("2023-11-08T00:00:00");
function pad(d) {
return d < 10 ? "0" + d.toString() : d.toString();
}
function updateCountdown() {
const currentDate = new Date();
const timeDifference = targetDate - currentDate;
day.textContent = pad(
Math.floor(
timeDifference / (1000 * 60 * 60 * 24)
// / (1000 * 60 * 60 * 24)
)
);
hour.textContent = pad(
Math.floor(
(timeDifference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)
)
);
minute.textContent = pad(
Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60))
);
second.textContent = pad(
Math.floor((timeDifference % (1000 * 60)) / 1000)
);
}
updateCountdown();
// Update the countdown every second
setInterval(updateCountdown, 1000);
</script>
</body>
</html>