-
Notifications
You must be signed in to change notification settings - Fork 0
/
video.html
77 lines (76 loc) · 2.5 KB
/
video.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
<!DOCTYPE html>
<html>
<head>
<style>
* {
color: #E7FF6E;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
margin: 0;
width: 100%;
height: 100%;
}
#title {
position: absolute;
left: 3vw;
bottom: 88vh;
width: 90vw;
height: 8vh;
font-size: 5em;
overflow-wrap: break-word;
}
#video {
position: absolute;
left: 3vw;
bottom: 3vw;
width: 78vw;
height: 78vh;
border-radius: calc(min(1vh, 1vw));
box-shadow: 0 0 0 3vw #2A2E31;
z-index: -999;
}
#speakercam {
position: absolute;
right: 3vw;
bottom: 3vw;
width: 13vw;
height: 13vw;
border-radius: calc(min(1vh, 1vw));
box-shadow: 0 0 0 3vw #2A2E31;
z-index: -999;
}
#speaker {
position: absolute;
right: 3vw;
bottom: calc(13vw + 1.25em + 1em);
max-width: 13vw;
font-size: 2.25em;
text-align: right;
overflow-wrap: break-word;
font-weight: bold;
vertical-align:text-bottom;
}
#background {
position: absolute;
background-color: #2A2E31;
z-index: -999;
}
</style>
<script>
window.onload = function(){
document.getElementById("title").innerText = new URL(window.location.href).searchParams.get("title");
document.getElementById("speaker").innerText = "@" + new URL(window.location.href).searchParams.get("speaker");
}
</script>
</head>
<body>
<div id="title">titleNotFound</div>
<div id="speakercam"></div>
<div id="speaker">@</div>
<div id="video"></div>
<div id="background" style="top: 0; left:0; width: 100vw; height: 16vh;"></div>
<div id="background" style="top: 0; right:0; width: 17vw; height: calc(100vh - 16vw)"></div>
<div id="background" style="bottom: 0; right:0; width: 100vw; height: 3vw;"></div>
</body>
</html>