-
Notifications
You must be signed in to change notification settings - Fork 0
/
2023.html
119 lines (105 loc) · 2.57 KB
/
2023.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
107
108
109
110
111
112
113
114
115
116
117
118
<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="2023-quals.html">2023 DEF CON Quals</a></li>
<li><a href="2022.html">2022 DEF CON Finals</a></li>
</ul>
</div>
<div id="space">
<h2>Stream Links:</h2>
<div id="links">
<p>
<a href="https://youtube.com/live/VxDnpShqloA">Day 3 Casted Stream</a>
</p>
<p>
<a href="https://www.youtube.com/watch?v=UtKuM2SWnNE">Day 2 Casted Stream</a>
<a href="https://multistream.me/yt:dthkJvZcoeM/yt:fzxch3C1c0w">Day 2 Uncasted Screens</a>
</p>
<p>
<a href="https://www.youtube.com/watch?v=-dAVKkMoagM">Day 1 Casted Stream</a>
<a href="https://multistream.me/yt:MbuUtpLc6mk/yt:Md_TeXWGl_8">Day 1 Uncasted Screens</a>
</p>
</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>