-
Notifications
You must be signed in to change notification settings - Fork 0
/
2022.html
82 lines (73 loc) · 1.96 KB
/
2022.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
<html>
<head>
<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;
}
</style>
</head>
<body>
<video poster="./logo.png" autoplay playsinline muted loop>
<source src="./title.mp4" type="video/mp4">
</video>
<div id="space">
<h2>Live from DEF CON CTF 2022 Finals</h2>
<h2>
Day1 (<a class="broadcast" href="https://www.youtube.com/watch?v=DCFlJWVBfkk">1</a>, <a class="broadcast" href="https://www.youtube.com/watch?v=52HZo51CZ8Q">2</a>)
<a class="broadcast" href="https://youtu.be/8QAGLdY6bDw">Day 2</a>
<a class="broadcast" href="https://www.youtube.com/watch?v=qA3eIyl0L8s">Day 3</a>
<a class="broadcast" href="https://github.com/Live-CTF/LiveCTF-DEFCON30">Challenges / Infra</a>
</h2>
<h2>In partnership with:<h2>
<img src="./ni-white.png" width="15%" />
</div>
<script>
const deadline = 'August 12 2022 13:30:00 GMT-0700';
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>