4
4
< title > MDN Web Docs Example: Toggling full-screen mode</ title >
5
5
< meta charset ="utf-8 ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
-
8
- <!-- import the webpage's stylesheet -->
9
- < link rel ="stylesheet " href ="style.css ">
7
+ < link rel ="stylesheet " href ="styles.css ">
8
+ < style class ="editable ">
9
+ video ::backdrop {
10
+ background-color : # 448 ;
11
+ }
12
+ </ style >
10
13
11
14
<!-- import the webpage's javascript file -->
12
15
< script src ="script.js " defer > </ script >
13
16
</ head >
14
17
< body >
15
- < h1 > Example: Toggling full-screen presentation of a video</ h1 >
16
-
17
- < p > In this example, we see a video element showing a movie ("Big Buck Bunny").
18
- you can toggle full screen mode on and off by pressing the Return or Enter key.</ p >
19
-
20
- <!-- Simple video example -->
21
- <!-- 'Big Buck Bunny' licensed under CC 3.0 by the Blender foundation. Hosted by archive.org -->
22
- <!-- Poster from peach.blender.org -->
23
- < video controls
18
+ < section class ="preview ">
19
+ < video controls
24
20
src ="https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4 "
25
21
poster ="https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217 "
26
22
width ="620 ">
27
23
28
- Sorry, your browser doesn't support embedded videos. Time to upgrade!
24
+ Sorry, your browser doesn't support embedded videos. Time to upgrade!
25
+
26
+ </ video >
27
+ </ section >
28
+
29
+ < textarea class ="playable playable-css " style ="height: 100px; ">
30
+ video::backdrop {
31
+ background-color: #448;
32
+ }
33
+ </ textarea >
34
+
35
+ < textarea class ="playable playable-html " style ="height: 200px; ">
36
+ < video controls
37
+ src ="https://archive.org/download/BigBuckBunny_124/Content/big_buck_bunny_720p_surround.mp4 "
38
+ poster ="https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217 "
39
+ width ="620 ">
40
+ Sorry, your browser doesn't support embedded videos. Time to upgrade!
41
+ </ video >
42
+ </ textarea >
29
43
30
- </ video >
44
+ < div class ="playable-buttons ">
45
+ < input id ="reset " type ="button " value ="Reset " />
46
+ </ div >
47
+ </ body >
48
+ < script src ="playable.js "> </ script >
31
49
</ body >
32
50
</ html >
0 commit comments