-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
428 lines (354 loc) · 8.26 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
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
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>NYC Bus Data API</title>
<link rel="stylesheet" href="css/normalize.css">
<style>
/* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */
/*Credit where its due: This cute little animation is a modification of this one CodePen: http://codepen.io/anon/pen/KVzmvz*/
body {
height: 100%;
overflow:hidden;
width: 100%;
cursor: pointer;
}
#title {
position: fixed;
top: 50px;
text-align: center;
width: 100%;
font-family: Avant Garde,Avantgarde,Century Gothic,CenturyGothic,AppleGothic,sans-serif;
font-weight: 900;
color:#566c73;
opacity: 0.6;
}
#road {
width: 100%;
height: 150px;
background-color: #4a3e4a;
position: absolute;
bottom: 0;
border-top: 10px #626473 solid;
overflow: hidden;
}
#road ul {
width: 100%;
list-style: none;
}
#road li {
width: 70px;
height: 10px;
background-color: #5f555e ;
float: left;
margin-top: 55px;
margin-right: 63px;
overflow: hidden;
}
#grass {
border-bottom: 50px solid #70a155;
border-left: 50px solid transparent;
height: 0;
width: 80%;
position: absolute;
right: 0;
top: 350px
}
#block1 {
width:100px;
height:70px;
background-color: #995a50;
position:absolute;
left: 170px;
top: 232px;
border-top: 3px solid #fff;
}
#block2 {
width:100px;
height:70px;
background-color: #995a50;
position:absolute;
left: 170px;
top: 159px;
border-top: 3px solid #fff;
}
#bus {
width: 410px;
position:fixed;
animation: bus 7s ease-in-out infinite;
bottom: 45px;
background-color: red
}
#busMiddel {
width: 410px;
height: 65px;
background-color: #eaeaea;
border-bottom: 10px inset #0676f4;
box-shadow: 0px 0px 30px rgba(0,0,0,0.5);
}
#busWindowsMiddle {
width: 366px;
height: 50px;
background-color: #658492;
margin: 25px 0 0 34px;
position: absolute;
border-top: 10px inset #86A7C2;
border-left: 10px inset #86A7C2;
}
.busWindowsShadow {
width: 10px;
height: 50px;
margin-left: 40px;
border-left: 14px inset #86A7C2;
}
.busWindowsShadow1 {
width: 10px;
height: 50px;
margin-left: 105px;
margin-top: -50px;
border-left: 14px inset #86A7C2;
}
.busWindowsShadow2 {
width: 10px;
height: 50px;
margin-left: 165px;
margin-top: -50px;
border-left: 14px inset #86A7C2;
}
.busWindowsShadow3 {
width: 10px;
height: 50px;
margin-left: 225px;
margin-top: -50px;
border-left: 14px inset #86A7C2;
}
.busWindowsShadow4 {
width: 10px;
height: 93px;
margin-left: 310px;
margin-top: -50px;
border-left: 34px inset #86A7C2;
}
#busBottom {
width: 410px;
height: 40px;
background-color: #eaeaea;
border-top: 20px inset #0676f4;
box-shadow: 0px 0px 30px rgba(0,0,0,0.5);
}
#busWindowsBottom {
width: 35px;
height: 90px;
background-color: #658492;
margin: -60px 0 0 340px;
position: absolute;
border-left: 10px inset #86A7C2;
}
#wheelLeft {
width: 30px;
height: 30px;
background-color: #514552;
border-radius: 50%;
border: 10px #3a3040 solid;
position: absolute;
margin: -30px 0 0 100px;
}
#wheelRight {
width: 30px;
height: 30px;
background-color: #514552;
border-radius: 50%;
border: 10px #3a3040 solid;
position: absolute;
margin: -30px 0 0 310px;
}
@keyframes bus {
from {
margin-left: -410px;
}
to {
margin-left: 100%;
}
}
/* clouds */
#clouds{
width: 100%;
padding: 100px 0;
background: #c9dbe9;
background: -webkit-linear-gradient(top, #c9dbe9 0%, #fff 100%);
background: -linear-gradient(top, #c9dbe9 0%, #fff 100%);
background: -moz-linear-gradient(top, #c9dbe9 0%, #fff 100%);
height: 100%
}
/*Time to finalise the cloud shape*/
.cloud {
width: 200px; height: 60px;
background: #fff;
border-radius: 200px;
-moz-border-radius: 200px;
-webkit-border-radius: 200px;
position: relative;
}
.cloud:before, .cloud:after {
content: '';
position: absolute;
background: #fff;
width: 100px; height: 80px;
position: absolute; top: -15px; left: 10px;
border-radius: 100px;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
-webkit-transform: rotate(30deg);
transform: rotate(30deg);
-moz-transform: rotate(30deg);
}
.cloud:after {
width: 120px; height: 120px;
top: -55px; left: auto; right: 15px;
}
/*Time to animate*/
.x1 {
-webkit-animation: moveclouds 15s linear infinite;
-moz-animation: moveclouds 15s linear infinite;
-o-animation: moveclouds 15s linear infinite;
}
/*variable speed, opacity, and position of clouds for realistic effect*/
.x2 {
left: 200px;
-webkit-transform: scale(0.6);
-moz-transform: scale(0.6);
transform: scale(0.6);
opacity: 0.6; /*opacity proportional to the size*/
/*Speed will also be proportional to the size and opacity*/
/*More the speed. Less the time in 's' = seconds*/
-webkit-animation: moveclouds 25s linear infinite;
-moz-animation: moveclouds 25s linear infinite;
-o-animation: moveclouds 25s linear infinite;
}
.x3 {
left: -250px; top: -200px;
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
transform: scale(0.8);
opacity: 0.8; /*opacity proportional to the size*/
-webkit-animation: moveclouds 20s linear infinite;
-moz-animation: moveclouds 20s linear infinite;
-o-animation: moveclouds 20s linear infinite;
}
.x4 {
left: 470px; top: -250px;
-webkit-transform: scale(0.75);
-moz-transform: scale(0.75);
transform: scale(0.75);
opacity: 0.75; /*opacity proportional to the size*/
-webkit-animation: moveclouds 18s linear infinite;
-moz-animation: moveclouds 18s linear infinite;
-o-animation: moveclouds 18s linear infinite;
}
.x5 {
left: -150px; top: -150px;
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
transform: scale(0.8);
opacity: 0.8; /*opacity proportional to the size*/
-webkit-animation: moveclouds 20s linear infinite;
-moz-animation: moveclouds 20s linear infinite;
-o-animation: moveclouds 20s linear infinite;
}
@-webkit-keyframes moveclouds {
0% {margin-left: 1000px;}
100% {margin-left: -1000px;}
}
@-moz-keyframes moveclouds {
0% {margin-left: 1000px;}
100% {margin-left: -1000px;}
}
@-o-keyframes moveclouds {
0% {margin-left: 1000px;}
100% {margin-left: -1000px;}
}
</style>
<script src="js/prefixfree.min.js"></script>
</head>
<body id="everything">
<div style="position:fixed;top:25px;right:25px;z-index:9999" onclick="gotogh()">
<img src="/assets/github.png" height="42" width="42" style="opacity:0.75"/>
</div>
<div onclick="forward()">
<div id="clouds">
<div class="cloud x1"></div>
<!-- Time for multiple clouds to dance around -->
<div class="cloud x2"></div>
<div class="cloud x3"></div>
<div class="cloud x4"></div>
<div class="cloud x5"></div>
</div>
<div id="title">
<center>
<p style="font-size:7vw;margin-top:0px;margin-bottom:0px;">
New York City
</p>
<p style="font-size:14vw;margin-top:0px;margin-bottom:0px;">
Bus Data API
</p>
</center>
<a href="http://busdataapi1.cloudapp.net/"
style="text-decoration:none;
position:fixed;
bottom: 230px;
left: 0px; right: 0px;
z-index:9999">
<center><span style="background-color:#bddfeb;text-decoration:none;padding:10px;border-radius:4px;">CLICK TO ENTER</span></center>
</a>
</div>
<div id="road">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div id="bus">
<div id="busMiddel">
<div id="busWindowsMiddle">
<div class="busWindowsShadow"></div>
<div class="busWindowsShadow1"></div>
<div class="busWindowsShadow2"></div>
<div class="busWindowsShadow3"></div>
<div class="busWindowsShadow4"></div>
</div>
</div>
<div id="busBottom"><div id="busWindowsBottom"></div></div>
<div id="wheelLeft"></div>
<div id="wheelRight"></div>
</div>
</div>
</body>
<script type="text/javascript">
window.onload = function () {
var w = window.innerWidth;
var h = window.innerHeight;
};
// document.getElementsByTagName("body")[0].style.overflow = "hidden";
function forward () {
window.location.href = "http://busdataapi1.cloudapp.net/";
window.location.assign("http://busdataapi1.cloudapp.net/");
window.location = "http://busdataapi1.cloudapp.net/";
};
function gotogh () {
window.location.href = "https://github.com/Bus-Data-NYC";
window.location.assign("https://github.com/Bus-Data-NYC");
window.location = "https://github.com/Bus-Data-NYC";
}
</script>
</html>