-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcc.html
More file actions
62 lines (61 loc) · 1.71 KB
/
Copy pathcc.html
File metadata and controls
62 lines (61 loc) · 1.71 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
body {
background: #000;
margin: 0;
padding: 0;
}
iframe {
width: 100vw;
height: 100vh;
box-sizing: border-box;
}
[data-mode="bottom"] iframe {
height: 264px;
position: fixed;
bottom: 0;
left: 0;
}
[data-chroma="on"] {
background: #0f0;
}
[data-chroma="on"] iframe {
filter: drop-shadow(0 0 1px black) drop-shadow(0 0 1px black) drop-shadow(0 0 1px black) drop-shadow(0 4px 5px rgba(0,0,0,0.5));
}
[data-noscroll="on"] {
overflow: hidden;
}
[data-noscroll="on"] iframe {
overflow: hidden;
}
</style>
</head>
<body>
<iframe
id="ccFrame"
allowtransparency="true"
frameborder="0"
></iframe>
<script>
var eventName = location.search.match(/env=test/) ? 'IHaveADream' : 'JavaScriptBangkok'
ccFrame.src = "https://www.streamtext.net/player?event=" + eventName + "&ff=K2D,Verdana,sans-serif&fs=80&fgc=ffffff&bgc=transparent&header=false&controls=false&footer=false&chat=false"
</script>
<script>
if (location.search.match(/mode=bottom/)) {
document.body.setAttribute('data-mode', 'bottom')
}
if (location.search.match(/chroma/)) {
document.body.setAttribute('data-chroma', 'on')
}
if (location.search.match(/noscroll/)) {
document.body.setAttribute('data-noscroll', 'on')
ccFrame.setAttribute('scrolling', 'no')
}
</script>
</body>
</html>