forked from thiagopnts/kaleidoscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (51 loc) · 1.46 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>index</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta id="extViewportMeta" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<style>
html,body, center {
height: 100%;
}
body, html {
margin: 0 auto;
}
#wrapper {
position: relative;
width: 60%;
height: 50%;
background: black;
}
button {
height: 7%;
width: 60%;
margin-top: 30px;
font-size: 2em;
}
@media (max-width: 1000px) {
#wrapper {
width: 100%;
}
}
</style>
</head>
<body>
<center>
<!-- <div id="wrapper"></div> -->
<div id="target"></div>
</center>
<script type="text/javascript" charset="utf-8" src="dist/kaleidoscope.min.js"> </script>
<script type="text/javascript" charset="utf-8">
this.viewer = new Kaleidoscope.Video({autoplay: true, muted: false, height: 360, width: 640, source: 'http://thiago.me/demo-360/cool.mp4', containerId: '#target'});
this.viewer.render();
document.body.addEventListener('click', function() {
this.viewer.play();
}.bind(this));
</script>
</body>
</html>