forked from johnpolacek/BigVideo.js
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
29 lines (26 loc) · 885 Bytes
/
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
<html>
<body>
<div class="video" data-video="http://vjs.zencdn.net/v/oceans.mp4"></div>
<div class="video" data-video="http://vjs.zencdn.net/v/oceans.mp4"></div>
<script src="bower_components/requirejs/require.js"></script>
<script>
require.config({
paths: {
"BigVideo": "lib/bigvideo",
"jquery": "bower_components/jquery/dist/jquery",
"jquery-ui": "bower_components/jquery-ui/ui/jquery-ui",
"videojs": "bower_components/video.js/dist/video-js/video",
"imagesloaded": "bower_components/imagesloaded/imagesloaded",
"eventEmitter/EventEmitter": "bower_components/eventEmitter/EventEmitter",
"eventie/eventie": "bower_components/eventie/eventie"
},
shim: {
"videojs": {exports: 'videojs'}
}
});
require(['BigVideo'], function(bigvideo) {
$('.video').bigvideo().bigvideo('init').bigvideo('show');
});
</script>
</body>
</html>