-
Notifications
You must be signed in to change notification settings - Fork 0
/
2023-quals.html
107 lines (93 loc) · 2.57 KB
/
2023-quals.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
<html>
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<title>LiveCTF</title>
<style>
body {
font-family: sans-serif;
color: #fff;
}
video {
width: 100vw;
height: 100vh;
object-fit: cover;
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
.broadcast {
color: #6699ff;
}
#space {
text-align: center;
margin-top: 50vh;
}
a.broadcast, a, a.broadcast:visited {
color: #9932CC;
}
#previous {
position: fixed;
left: 50%;
bottom: 0;
padding: 10px;
width: 400px;
transform: translate(-50%, -50%);
border: 1px solid rgb(223,60,220);
}
#previous a {
color: white;
}
#previous ul li {
list-style-type: none;
}
</style>
</head>
<body>
<video poster="./logo.png" autoplay playsinline muted loop>
<source src="./title.mp4" type="video/mp4">
</video>
<div id="previous">
<p>Past events:</p>
<ul>
<li><a href="2022.html">2022 DEF CON Finals</a></li>
</ul>
</div>
<div id="space">
<h2>Live at <a href="https://quals.2023.nautilus.institute/">DEF CON 31 Quals</a></h2>
<h2>Stream Links:</h2>
<div><a href="https://www.youtube.com/watch?v=UNyZkkGPGC8">Kickoff</a>, <a href="https://www.youtube.com/watch?v=Tuyjgm2hx58">Chal 1</a>, <a href="https://www.youtube.com/watch?v=PNLWUCGYHrs">Chal 2</a>, <a href="https://www.youtube.com/watch?v=1Ig22yERUvI">Chal 3</a>, <a href="https://www.youtube.com/watch?v=4rI1XhMd6YQ">Chal 4</a> (Redux), <a href="https://www.youtube.com/watch?v=MKnCIDP5iWA">Chal 5</a>, <a href="https://www.youtube.com/watch?v=-XSoLIvn0S8">Final</a></div>
<div style="font-size: 20pt;" id="clockdiv" hidden> </div>
<h2>In partnership with:<h2>
<img src="./ni-white.png" width="15%" />
</div>
<script>
const deadline = 'May 27 2023 00:00:00 GMT-0000';
function getTimeRemaining(endtime){
const total = Date.parse(endtime) - Date.parse(new Date());
const seconds = Math.floor( (total/1000) % 60 );
const minutes = Math.floor( (total/1000/60) % 60 );
const hours = Math.floor( (total/(1000*60*60)) % 24 );
const days = Math.floor( total/(1000*60*60*24) );
return {
total,
days,
hours,
minutes,
seconds
};
}
function initializeClock(id, endtime) {
const clock = document.getElementById(id);
const timeinterval = setInterval(() => {
const t = getTimeRemaining(endtime);
clock.innerHTML = t.days + 'd ' + t.hours + 'h ' + t.minutes + 'm ' + t.seconds + 's ';
if (t.total <= 0) {
clearInterval(timeinterval);
}
},1000);
}
initializeClock('clockdiv', deadline);
</script>
</body>
</html>