Skip to content

Commit 8ac0938

Browse files
committed
Update cc page
1 parent 1fefd5b commit 8ac0938

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Diff for: 1.0.0/cc.html

+16-1
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,28 @@
1616
height: 100vh;
1717
box-sizing: border-box;
1818
}
19+
[data-mode="bottom"] iframe {
20+
height: 200px;
21+
position: absolute;
22+
bottom: 0;
23+
left: 0;
24+
}
1925
</style>
2026
</head>
2127
<body>
2228
<iframe
23-
src="https://www.streamtext.net/player?event=IHaveADream&ff=K2D,Verdana,sans-serif&fs=30&fgc=ffffff&bgc=transparent&header=false&controls=false&footer=false&chat=false"
29+
id="ccFrame"
2430
allowtransparency="true"
2531
frameborder="0"
2632
></iframe>
33+
<script>
34+
var eventName = location.search.match(/env=test/) ? 'IHaveADream' : 'JavaScriptBangkok'
35+
ccFrame.src = "https://www.streamtext.net/player?event=" + eventName + "&ff=K2D,Verdana,sans-serif&fs=64&fgc=ffffff&bgc=transparent&header=false&controls=false&footer=false&chat=false"
36+
</script>
37+
<script>
38+
if (location.search.match(/mode=bottom/)) {
39+
document.body.setAttribute('data-mode', 'bottom')
40+
}
41+
</script>
2742
</body>
2843
</html>

0 commit comments

Comments
 (0)