-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
85 lines (67 loc) · 2.37 KB
/
example.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
83
84
85
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" crossorigin="anonymous">
<!-- jQuery JS -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<!-- PlayAlong.js -->
<script src="js/playalong.js"></script>
<!-- -->
<style type="text/css">
#globe {
position: absolute;
top: 18%;
left: 70%;
width: 18%;
height: 20%;
border-radius: 100%;
border: 2px solid magenta;
box-shadow: 0 0 2px rgba(0,0,0,.8);
}
#globe a {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 100%;
background: rgba(255,255,255,.2);
box-shadow: 0 0 2px rgba(0,0,0,.8) inset;
}
#globe a:hover {
background: rgba(255,127,255,.2);
}
</style>
<title>PlayAlong Example</title>
</head>
<body>
<div class="container">
<h1>Hello PlayAlong!</h1>
<div class="row">
<div class="col-md-8 col-lg-6 text-center">
<video id="my-video" controls class="img-fluid ">
<source src="https://upload.wikimedia.org/wikipedia/commons/a/a2/Le_Voyage_dans_la_Lune_%28Georges_M%C3%A9li%C3%A8s%2C_1902%29.ogv" type="video/ogg">
</video>
<button class="btn btn-success" video-play>Play or Pause</button>
</div>
<div class="col-md-4 col-lg-6">
<div class="alert alert-dark" video-id="my-video" video-end="00:07">
<h3>This text is visible from the start until 00:07</h3>
</div>
<div class="alert alert-warning m-2" role="alert" video-overlay video-start="00:03" video-end="00:10">
This overlay is visible from 00:03 to 00:10
</div>
<div class="alert alert-primary m-2" role="alert" video-overlay>
This overlay is always visible
</div>
<div video-overlay id="globe" video-start="00:08" video-end="02:32">
<a href="https://en.wikipedia.org/wiki/Armillary_sphere" target="_blank"></a>
</div>
</div>
</div>
</div>
</body>
</html>