-
Notifications
You must be signed in to change notification settings - Fork 0
/
rain.html
322 lines (287 loc) · 11.8 KB
/
rain.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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Potential Gallery for MeetThePower</title>
<!-- Bootstrap core CSS -->
<link href="bootstrap/dist/css/bootstrap-slate-old.min.css" rel="stylesheet">
<!-- Custom CSS for the 'Thumbnail Gallery' Template -->
<link href="bootstrap/dist/css/thumbnail-gallery.css" rel="stylesheet">
<!-- custom CSS for Lightbox -->
<link href="bootstrap/dist/css/bootstrap-lightbox.min.css" rel="stylesheet">
<!-- custom CSS for old jumbotron -->
<link href="bootstrap/dist/css/jumbotron-old.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<style>
body {
background-image:url(img/bg_main.jpg);
background-color:#cccccc;
}
</style>
<!-- Script for RainyDay.js Starts here -->
<style media="screen">
img { display: none; }
body { overflow: hidden; }
#canvas { position: absolute; top: 0px; left: 0px; }
</style>
<script src="js/rainyday.0.1.1.js"></script>
<script>
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null;
}
function demo() {
var image = document.getElementById('background');
image.onload = function() {
var engine = new RainyDay('canvas','background', window.innerWidth, window.innerHeight);
var preset = getURLParameter("preset") || 1;
if (preset == 1) {
engine.gravity = engine.GRAVITY_NON_LINEAR;
engine.trail = engine.TRAIL_DROPS;
engine.rain([ engine.preset(3, 3, 0.88), engine.preset(5, 5, 0.9), engine.preset(6, 2, 1) ], 100);
} else if (preset == 2) {
engine.gravity = engine.GRAVITY_NON_LINEAR;
engine.trail = engine.TRAIL_DROPS;
engine.VARIABLE_GRAVITY_ANGLE = Math.PI / 8;
engine.rain([ engine.preset(0, 2, 0.5), engine.preset(4, 4, 1) ], 50);
}
};
image.crossOrigin = "anonymous";
image.src="img/pittsburgh.jpg";
var youtube = getURLParameter("youtube");
if (youtube) {
var div = document.getElementById("sound");
var player = document.createElement('iframe');
player.frameborder = "0";
player.height = "1";
player.width = "1";
player.src = "https://youtube.com/embed/" + youtube + "?autoplay=1&controls=0&showinfo=0&autohide=1&loop=1";
div.appendChild(player);
}
}
</script>
<!-- End script for rainyday.js
-->
</head>
<body onload="demo();">
<!-- RainyDay script -->
<div id="sound" style="z-index: -1;"></div>
<img id="background" alt="background" src="" />
<div id="cholder">
<canvas id="canvas"></canvas>
</div>
<!-- end rainyday script -->
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">The Power</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="home.html">Home</a></li>
<li class="active"><a href="gallery.html">Gallery</a></li>
<li><a href="powermap.html">PowerMap</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Weird <i class="icon-white icon-chevron-down"></i></a>
<ul class="dropdown-menu">
<li><a href="#">Where's the Power?</a></li>
<li><a href="#">The Blog</a></li>
<li><a href="#">Power-ku</a></li>
<li class="divider"></li>
<li class="nav-header">Random Shit</li>
<li><a href="http://www.jambase.com">Jammin</a></li>
<li><a href="rain.html">Make It Rain!</a></li>
</ul>
</li>
</ul>
<ul class="nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form" role="Search">
<button type="submit" data-toggle="modal" href="#betaModal" class="btn btn-info">Sign in</button>
</form>
</div><!--/.nav-collapse -->
</div>
</div>
</div> <!-- back to zero -->
<div class="container">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Thumbnail Gallery</h1>
</div>
<ul class="thumbnails">
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power1">
<img class="img-thumbnail" src="img/powerpics/power1.jpg">
</a>
</li>
<div id="power1" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power1.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power2">
<img class="thumbnail" src="img/powerpics/power2.jpg">
</a>
</li>
<div id="power2" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power2.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power3">
<img class="thumbnail" src="img/powerpics/power3.jpg">
</a>
</li>
<div id="power3" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power3.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power4">
<img class="thumbnail" src="img/powerpics/power4.jpg">
</a>
</li>
<div id="power4" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power4.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power5">
<img class="thumbnail" src="img/powerpics/power5.jpg">
</a>
</li>
<div id="power5" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power5.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power6">
<img class="thumbnail" src="img/powerpics/power6.jpg">
</a>
</li>
<div id="power6" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power6.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power7">
<img class="thumbnail" src="img/powerpics/power7.jpg">
</a>
</li>
<div id="power7" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power7.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
<li class="span4">
<a class="thumbnail" data-toggle="lightbox" href="#power14">
<img class="thumbnail" src="img/powerpics/power14.jpg">
</a>
</li>
<div id="power14" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-content'>
<img src="img/powerpics/power14.jpg">
<div class="lightbox-caption"><p>Your caption here</p></div>
</div>
</div>
</div>
<div class="pagination pagination-centered">
<ul>
<li><a href="#">Prev</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">Next</a></li>
</ul>
</div>
<!-- BetaModal Code starts here -->
<div id="betaModal" class="modal hide fade">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h3>Get Powerful</h3>
</div>
<div class="modal-body">
<div class="row-fluid">
<div class="span12">
<div class="span6">
<div class="logowrapper">
<img class="logoicon" src="img/glen.jpg" alt="App Logo"/>
</div>
</div>
<div class="span6">
<form class="form-horizontal">
<p class="help-block">Name</p>
<div class="input-prepend">
<span class="add-on">+</span><input class="prependedInput" size="16" type="text">
</div>
<p class="help-block">Email</p>
<div class="input-prepend">
<span class="add-on">@</span><input class="prependedInput" size="16" type="email">
</div>
<hr>
<div class="help-block">
<button type="submit" class="btn btn-large btn-info">Request an Invite</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<p><i>Lastest Update on October 2nd, 2012</i></p>
</div>
</div>
<!--beta modal code ends here -->
<hr>
<footer>
<div class="row">
<div class="col-lg-12">
<p>Copyright © Company 2013 · Facebook · Twitter · Google+</p>
</div>
</div>
</footer>
</div><!-- /.container -->
<!-- javascript -->
<script src="bootstrap/dist/js/jquery-lightbox.js"></script>
<script src="bootstrap/dist/js/bootstrap-old.min.js"></script>
<script src="bootstrap/dist/js/bootstrap-lightbox.min.js"></script>
<script src="bootstrap/dist/js/scale.fix.js"></script>
<script src="bootstrap/dist/js/prettify.js"></script>
</body>
</html>