-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex.html
59 lines (56 loc) · 1.62 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
<!DOCTYPE html>
<html>
<head>
<title>Lc Doom Day</title>
<style>
/* Add some style to the page */
body {
text-align: center;
padding: 200px;
font-family: 'Roboto', sans-serif;
background: url('background.png') no-repeat center center fixed;
background-size: cover;
}
h1 {
font-size: 3em;
color: white;
margin: 0;
text-shadow: 2px 2px 0 black;
}
#days {
font-size: 2em;
color: white;
text-shadow: 2px 2px 0 black;
}
#seemore-btn {
font-family: 'Roboto', sans-serif;
font-size: 1.5em;
padding: 10px 20px;
background-color: transparent;
color: white;
border: none;
border-radius: 5px;
margin-top: 100;
cursor: pointer;
text-decoration: none;
</style>
<script>
function updateDays() {
// Get the current date and time
var now = new Date();
// Set the target date to June 7th of the next year if the current date is after June 7th
var target = new Date(now.getFullYear() + (now.getMonth() > 5 || (now.getMonth() == 5 && now.getDate() >= 7) ? 1 : 0), 5, 7);
// Calculate the number of days between now and the target date
var days = Math.floor((target - now) / (1000 * 60 * 60 * 24));
// Display the number of days on the page
document.getElementById('days').innerHTML = days + ' days';
}
window.addEventListener('load', updateDays);
</script>
</head>
<body>
<h1>Days Until The Day Of Reckoning</h1>
<p id="days">Loading...</p>
<a id="seemore-btn" href="https://www.examinations.ie/" target="_blank">See more</a>
</body>
</html>