forked from guptavaibhav159/HacktoberFest2020
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
79 lines (71 loc) · 2.06 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
<!DOCTYPE HTML>
<html>
<head>
<title> Hacktoberfest 2020 </title>
<link rel = "icon" href = "HF20_logo.png" type = "image/x-icon"/>
<meta name="viewport" content ="width=device-width,initial-scale=1,user-scalable=yes"/>
<style>
h1 {
property:Lucida Bright;
text-align: center;
font-size: 80px;
color:#da47cc;
}
p {
text-align: center;
font-size: 60px;
color:white;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
</style>
</head>
<body bgcolor=#003367>
<div>
<img src="hackfest20.svg" alt="logo" class="center" style="width:700px;height:250px;">
</div>
<div>
<p id="t1"> Time left before hacking starts..</p>
<p id="demo"></p>
<p id="p1">
<script>
// Set the date we're counting down to
var countDownDate = new Date("Oct 1, 2020 00:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get today's date and time
var now = new Date().getTime();
// Find the distance between now and the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo"
document.getElementById("demo").innerHTML = "<b>"+days+"</b>" + "d " + "<b>"+hours+"</b>" + "h "
+ "<b>"+minutes+"</b>" + "m " + "<b>"+seconds+"</b>" + "s ";
// If the count down is over, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</p>
</div>
<br>
<br>
<br>
<div style="text-align:center">
<a href="https://hacktoberfest.digitalocean.com/" style="color:#db70c5">Click here to visit Hacktoberfest 2020 Official Site</a>
<br>
<br>
<a href="https://github.com/rakshit234/HacktoberFest2020" style="color:#db70c5">Link to code.</a>
</div>
</body>
</html>