Skip to content

Commit 2e36d7c

Browse files
committed
Add noscroll flag
1 parent 8ac0938 commit 2e36d7c

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

1.0.0/cc.html

+22-3
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,23 @@
1717
box-sizing: border-box;
1818
}
1919
[data-mode="bottom"] iframe {
20-
height: 200px;
21-
position: absolute;
20+
height: 264px;
21+
position: fixed;
2222
bottom: 0;
2323
left: 0;
2424
}
25+
[data-chroma="on"] {
26+
background: #0f0;
27+
}
28+
[data-chroma="on"] iframe {
29+
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));
30+
}
31+
[data-noscroll="on"] {
32+
overflow: hidden;
33+
}
34+
[data-noscroll="on"] iframe {
35+
overflow: hidden;
36+
}
2537
</style>
2638
</head>
2739
<body>
@@ -32,12 +44,19 @@
3244
></iframe>
3345
<script>
3446
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"
47+
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"
3648
</script>
3749
<script>
3850
if (location.search.match(/mode=bottom/)) {
3951
document.body.setAttribute('data-mode', 'bottom')
4052
}
53+
if (location.search.match(/chroma/)) {
54+
document.body.setAttribute('data-chroma', 'on')
55+
}
56+
if (location.search.match(/noscroll/)) {
57+
document.body.setAttribute('data-noscroll', 'on')
58+
ccFrame.setAttribute('scrolling', 'no')
59+
}
4160
</script>
4261
</body>
4362
</html>

0 commit comments

Comments
 (0)