forked from brianchirls/popcorn-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
words.html
46 lines (43 loc) · 1.14 KB
/
words.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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<!-- Set your own title here -->
<title>Popcorn.js</title>
<style type="text/css">
#video-container {
position: relative;
margin: 1em auto;
}
#target > div {
/* default position */
position: absolute;
top: 0;
left: 0;
font-size: 10em;
color: white;
}
</style>
</head>
<body>
<div id="video-container">
<video id="video" controls>
<source src="http://videos-origin.mozilla.org/serv/webmademovies/everything_is_a_remix_4.webm" type='video/webm; codecs="vp8, vorbis"'/>
</video>
<div id="target"></div>
</div>
</body>
<script type="text/javascript" src="js/popcorn.js"></script>
<script type="text/javascript" src="js/popcorn-base.js"></script>
<script type="text/javascript" src="js/plugins/popcorn.words.js"></script>
<script type="text/javascript" src="js/words-demo.js"></script>
<script type="text/javascript">
window.addEventListener('load', function() {
//skip first 7 seconds of video
var video = document.getElementById('video');
if (video && video.duration > 7) {
video.currentTime = 7;
}
});
</script>
</html>