-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
198 lines (176 loc) · 5.89 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
196
197
198
<head>
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.min.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>
<button id="section-intro"><div>Intro</div></button>
<button id="section-circle"><div>Drawing Circles</div></button>
<button id="section-animation"><div>Animation</div></button>
<button id="section-audio"><div>Audio</div></button>
<button id="section-webgl"><div>WebGL</div></button>
<button id="section-accessibility"><div>Accessibility</div></button>
<button id="section-tutorial">
<div>Tutorials & Documentation</div>
</button>
<button id="section-contribute"><div>Contribute</div></button>
<button id="section-outro"><div>Outro</div></button>
</div>
<div id="pause"><i id="pauseButton" class="fa fa-pause"></i></div>
<div id="welcome">
<img id="background-image" src="assets/grid.png" />
<h1>
Hello,
<img
src="assets/p5-logo-no-background.svg"
style="display: inline; vertical-align: middle"
width="150"
height="150"
/>
!
</h1>
<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"></canvas>
<div id="cta">
<img src="assets/cta-background.png" />
<div class="panelContainer">
<div class="panelHeader">
<h2>Thanks for Watching</h2>
<h3>Use the links below to find out more about p5.js.</h3>
</div>
<div class="panelBody">
<div>
<a target="_blank" href="https://editor.p5js.org/">
<button class="btn btn-primary">
<i class="fa fa-laptop fa-2x"></i>
<br />
<br />
Start Coding
</button>
</a>
<a target="_blank" href="https://p5js.org/tutorials/">
<button class="btn btn-primary">
<i class="fa fa-comment fa-2x"></i>
<br />
<br />
Tutorials
</button>
</a>
<a target="_blank" href="https://p5js.org/community/">
<button class="btn btn-primary">
<i class="fa fa-magic fa-2x"></i>
<br />
<br />
Community
</button>
</a>
<a
target="_blank"
href="https://github.com/processing/hello-p5js-video"
>
<button class="btn btn-primary">
<i class="fa fa-video-camera fa-2x"></i>
<br />
<br />
About this Video
</button>
</a>
</div>
</div>
</div>
<div id="donateBox">
<script
src="https://donorbox.org/widget.js"
paypalExpress="true"
></script>
<iframe
src="https://donorbox.org/embed/support-the-processing-foundation?language=en-us"
name="donorbox"
allowpaymentrequest="allowpaymentrequest"
seamless="seamless"
frameborder="0"
scrolling="no"
allow="payment"
></iframe>
</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/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 (!Modernizr.webaudio || !Modernizr.csstransforms) {
$("#errorWebGL").hide();
$("#errorFeature").show();
$("#error").fadeIn();
$("#main").hide();
} else {
main.init();
}
});
</script>
</body>