-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
195 lines (169 loc) · 5.28 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
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<head>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<div id="preloader">
<div class="fontLoadA">SUP</div>
<div class="fontLoadB">SUP</div>
<img src="assets/thick-asterisk-alone.svg" alt="" />
<img src="assets/p5js-rect.svg" alt="" />
</div>
<div id="errorContainer">
<div id="error">
<div class="panelHeader"><h2>Sorry!</h2></div>
<div class="panelBody">
<p id="errorWebGL">
Your browser doesn't appear to support WebGL or it isn't enabled.
Visit
<a href="http://get.webgl.org/">get.webgl.org</a>
to learn more or try the latest version of
<a href="http://google.com/chrome/">Chrome</a>
.
</p>
<p id="errorFeature">
Your browser doesn't support all of the features required for this
demo. Please consider using the latest version of
<a href="http://google.com/chrome/">Chrome</a>
.
</p>
<p>
Don't worry, you can still learn all about p5.js at
<a href="http://p5js.org/">p5js.org</a>
.
</p>
</div>
</div>
</div>
<div id="main">
<div id="progressBar">
<div id="gutter"></div>
<div id="progress"></div>
</div>
<div id="p5">
<a href="http://p5js.org/" target="_blank">
<img src="assets/p5-sq-reverse.svg" width="48" height="48" />
</a>
</div>
<div id="pause"><i id="pauseButton" class="fa fa-pause">pause</i></div>
<div id="welcome">
<img src="assets/p5-sq-reverse.svg" width="128" height="128" />
<br />
<br />
<button
id="begin"
class="btn btn-default"
data-loading-text='<i class="fa fa-spinner fa-spin"></i> Loading'
>
Click to Begin
</button>
</div>
<div id="videoClip"></div>
<div id="sketchCanvas"></div>
<div id="sketchOverlay"></div>
<canvas id="videoCanvas" width="960" height="720"></canvas>
<div id="cta">
<div class="panelHeader">
<h2>Thanks for Watching</h2>
<span>Use the links below to find out more about p5.js.</span>
</div>
<div class="panelBody">
<div>
<a
class="btn btn-primary"
target="_blank"
href="http://p5js.org/download/"
>
<i class="fa fa-download fa-2x"></i>
<br />
Download p5.js
</a>
<a
class="btn btn-primary"
target="_blank"
href="http://p5js.org/get-started/"
>
<i class="fa fa-mortar-board fa-2x"></i>
<br />
Get Started
</a>
<a
class="btn btn-primary"
target="_blank"
href="https://github.com/processing/p5.js/wiki/Processing-transition"
>
<i class="fa fa-laptop fa-2x"></i>
<br />
Transition Guide
</a>
<a
class="btn btn-primary"
target="_blank"
href="http://p5js.org/contribute"
>
<i class="fa fa-comment fa-2x"></i>
<br />
Contribute
</a>
<a
class="btn btn-primary"
target="_blank"
href="http://p5js.org/examples/#demos"
>
<i class="fa fa-magic fa-2x"></i>
<br />
View Examples
</a>
<a
class="btn btn-primary"
target="_blank"
href="http://github.com/scottgarner/p5.js-video/#hello-p5"
>
<i class="fa fa-video-camera fa-2x"></i>
<br />
About this Video
</a>
</div>
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
window.jQuery ||
document.write('<script src="js/vendor/jquery-1.11.0.min.js"><\/script>');
</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/vendor/p5.min.js"></script>
<script src="js/vendor/addons/p5.dom.min.js"></script>
<script src="js/vendor/addons/p5.sound.min.js"></script>
<script src="js/vendor/popcorn.min.js"></script>
<script src="js/vendor/seriously.js"></script>
<script src="js/vendor/effects/seriously.chroma.js"></script>
<script src="js/vendor/modernizr.min.js"></script>
<script src="js/script.js"></script>
<script src="js/main.js"></script>
<script src="demos/intro/sketch.js"></script>
<script src="demos/circle/sketch.js"></script>
<script src="demos/flocking/sketch.js"></script>
<script src="demos/song/sketch.js"></script>
<script src="demos/painting/sketch.js"></script>
<script src="demos/webgl/sketch.js"></script>
<script src="demos/accessibility/sketch.js"></script>
<script src="demos/outro/sketch.js"></script>
<script>
$(document).ready(function () {
if (Seriously.incompatible()) {
$("#errorWebGL").show();
$("#errorFeature").hide();
$("#error").fadeIn();
$("#main").hide();
} else if (!Modernizr.webaudio || !Modernizr.csstransforms) {
$("#errorWebGL").hide();
$("#errorFeature").show();
$("#error").fadeIn();
$("#main").hide();
} else {
main.init();
}
});
</script>
</body>