-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (72 loc) · 2.33 KB
/
index.html
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="An example of using RxJS to show/hide video controls">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<link rel="stylesheet" href="./main.css" />
<title>RxJS UI</title>
</head>
<body>
<!-- video credit: https://videos.pexels.com/videos/coffee-at-the-morning-466 -->
<h3>RxJS video controls example</h3>
<div class="video-wrapper">
<video
id="rx-coffee-video"
class="coffee-video"
width="650"
loop
poster="./video/coffee-with-message.png"
>
<source src="./video/coffee.webm" type="video/webm">
<source src="./video/coffee.mp4" type="video/mp4">
<source src="./video/coffee.ogv" type="video/ogg">
Your browser doesn't support HTML5 video tag.
</video>
<button
id="rx-play"
class="video-controls-base-styles video-controls-play"
>
>
</button>
<button
id="rx-pause"
class="video-controls-base-styles video-controls-pause"
>
ii
</button>
</div>
<!-- video credit: https://videos.pexels.com/videos/coffee-at-the-morning-466 -->
<h3>JS video controls example</h3>
<div class="video-wrapper">
<video
id="js-coffee-video"
class="coffee-video"
width="650"
loop
poster="./video/coffee-with-message.png"
>
<source src="./video/coffee.webm" type="video/webm">
<source src="./video/coffee.mp4" type="video/mp4">
<source src="./video/coffee.ogv" type="video/ogg">
Your browser doesn't support HTML5 video tag.
</video>
<button
id="js-play"
class="video-controls-base-styles video-controls-play"
>
>
</button>
<button
id="js-pause"
class="video-controls-base-styles video-controls-pause"
>
ii
</button>
</div>
<script src="./bundle.js"></script>
</body>
</html>