-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (38 loc) 路 1.17 KB
/
Copy pathindex.html
File metadata and controls
43 lines (38 loc) 路 1.17 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Countdown</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQA_ySadLXHpcKt-R_vYZK4M0H8dVHIvRQc8A&s">
<style>
#container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
#h1_number {
margin: 0;
font-size: 10em;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
#subtext {
font-size: 2em;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
</style>
</head>
<body>
<div id="container">
<h1 id="h1_number"></h1>
<p id="subtext">Make it happen! Go go gorilla!馃敟</p>
</div>
<script defer>
let h1_number = document.getElementById("h1_number");
let number = Math.ceil((new Date("July 11 2025") - new Date()) / (1000 * 3600 * 24));
h1_number.innerHTML = (number < 0) ? 0 : number;
</script>
</body>
</html>