-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (39 loc) · 999 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lobster">
<title>EBC Trek Countdown</title>
<style>
body {
background-image: url('bg.jpg');
background-color: rgba(255,255,255,0.2);
background-blend-mode: lighten;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
background-position: center;
font-family: 'Lobster', serif;
}
h1 {
font-weight: bold;
font-size: 80px;
text-align: center;
}
#div1 h1 {
margin: 200px 0 0 0;
}
</style>
</head>
<body>
<div id="div1">
<h1 id="countdown"></h1>
</div>
<script>
var countDownDate = new Date("Oct 4, 2024 00:00:00").getTime();
var now = new Date().getTime();
var distance = countDownDate - now;
document.getElementById("countdown").innerHTML =
Math.floor(distance / (1000 * 60 * 60 * 24)) + " days to go!"
</script>
</body>
</html>