File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 16
16
height : 100vh ;
17
17
box-sizing : border-box;
18
18
}
19
+ [data-mode = "bottom" ] iframe {
20
+ height : 200px ;
21
+ position : absolute;
22
+ bottom : 0 ;
23
+ left : 0 ;
24
+ }
19
25
</ style >
20
26
</ head >
21
27
< body >
22
28
< 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 "
24
30
allowtransparency ="true "
25
31
frameborder ="0 "
26
32
> </ iframe >
33
+ < script >
34
+ var eventName = location . search . match ( / e n v = t e s t / ) ? '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 ( / m o d e = b o t t o m / ) ) {
39
+ document . body . setAttribute ( 'data-mode' , 'bottom' )
40
+ }
41
+ </ script >
27
42
</ body >
28
43
</ html >
You can’t perform that action at this time.
0 commit comments