-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
152 lines (128 loc) · 3.83 KB
/
index.html
File metadata and controls
152 lines (128 loc) · 3.83 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Seriously.js</title>
<style type="text/css">
#main {
margin: 20px auto;
height: 540px;
position: relative;
}
#main #video {
display: none;
position: absolute;
}
#canvas {
border: black solid 1px;
z-index: 10;
width: 960px;
height: 540px;
}
#iframe-container, #iframe-container > iframe {
position: absolute;
height: 100%;
width: 100%;
z-index: -1;
overflow: hidden;
}
#iframe-container > iframe {
visibility: hidden;
/* display: none; */
}
#main .vjs-big-play-button, #main .vjs-controls, #main .vjs-styles-check {
z-index: 202;
}
#main .vjs-spinner {
z-index: 201;
}
#main .vjs-fullscreen-control {
display: none;
}
#buttons {
position: absolute;
width: 100%;
bottom: 30px;
text-align: center;
}
h1, h2 {
text-align: center;
font-family: 'Courier New', courier;
}
a, a:visited {
color: #222;
}
p {
text-align: center;
}
.error {
position: absolute;
width: 60%;
top: 15%;
height: 14%;
left: 20%;
padding: 4px;
background-color: #aaa;
border: black solid 2px;
line-height: normal;
display: none;
}
.quick-links {
list-style: none outside none;
margin: 36px 0;
min-height: 30px;
overflow: hidden;
padding: 5px 20px;
text-align: center;
}
.quick-links li {
display: inline;
margin: 0 5px;
}
iframe {
border: none;
}
</style>
<link rel="stylesheet" href="css/video-js.css" type="text/css" media="screen" title="Video JS">
</head>
<body>
<!-- Begin VideoJS -->
<h1>Are you Seriously?</h1>
<div class="video-js-box" id="main" style="width: 960px; height: 540px;">
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
<!--
todo: add poster image
todo: if webgl fails, play pre-rendered version and clear out all the extra stuff
-->
<canvas width="960" height="540" id="canvas"></canvas>
<video class="video-js" width="960" height="540" controls preload id="video"><!--
<source src="video/wtf_greenscreen_sm.webm" type="video/webm" />
<source src="video/wtf_greenscreen_sm.mp4" type="video/mp4" />
--></video>
<div id="error-webgl" class="error">Sadly, your browser does not support WebGL and therefore cannot see the full glory of Seriously.js. We proudly recommend <a href="http://getfirefox.com">Firefox</a> or <a href="http://google.com/chrome">Chrome</a>, for they are lovely browsers indeed. More information is <a href="http://get.webgl.org/">here</a>.</div>
<div id="error-context" class="error">Sadly, we are unable to get Seriously.js to work on your computer. Sometimes WebGL gets a bit weird with certain graphics hardware and drivers. Please have a look <a href="http://get.webgl.org/">here</a> for more information.</div>
<div id="buttons">
<button id="button1">By the Sea</button>
<button id="button2">Modern Warfare</button>
<button id="button3">Spirit</button>
<button id="button4">British Invasion</button>
<button id="button5">Raw</button>
</div>
</div>
<!--
CREDITS:
Thanks to Ok Go for letting me "borrow" their video.
http://okgo.net
images (creative commons):
http://www.flickr.com/photos/28556257@N00/441814998/
http://www.flickr.com/photos/rgallant/4122555751/
-->
<h2>Seriously.</h2>
<p><a href="https://github.com/brianchirls/Seriously.js">code</a></p>
<p>Created by <a href="http://chirls.com">Brian Chirls</a> with support from:</p>
<p><a href="http://mozillapopcorn.org"><img src="images/mozilla.png" alt="mozilla"/></a></p>
<script src="js/require.js" type="text/javascript"></script>
<script src="js/script.js" type="text/javascript"></script>
<script src="js/camera.js" type="text/javascript"></script>
</body>
</html>