-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
269 lines (225 loc) · 12 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width" />
<title>Visualizing LA</title>
<link rel='shortcut icon' type='image/x-icon' href='resources/img/visla.png' />
<link rel="stylesheet" type="text/css" href="resources/css/homepage.css"/>
</head>
<body>
<div class="pre-over">
</div>
<div class="gradient-top">
</div>
<div class="fixed-over">
<div class="home">
<a href="">
<img src="resources/img/logo.png"/>
</a>
</div>
<div class="main-nav">
<!--<div class="overlay"></div>-->
<img src="resources/img/plane.svg"/>
<ul class="nav-text-wrapper list-style-none">
<a href="parking-tickets">
<li>TICKETS</li>
</a>
<a href="lax-traffic">
<li>TRAFFIC</li>
</a>
<a href="lax-flights">
<li>FLIGHTS</li>
</a>
</ul>
</div>
</div>
<ul class="nav">
<a href="#section-1-a" class="nav-box active"><li class="list-style-none"></li></a>
<a href="#section-2-a" class="nav-box"><li class="list-style-none"></li></a>
<a href="#section-3-a" class="nav-box"><li class="list-style-none"></li></a>
<a href="#section-4-a" class="nav-box"><li class="list-style-none"></li></a>
<a href="#section-5-a" class="nav-box"><li class="list-style-none"></li></a>
</ul>
<div class="fixed-over-squares" data-1600="opacity: 0" data-1700="opacity: 1">
</div>
<div class="main-centered">
<div class="title-wrapper">
<div id="scroll" data-0="opacity:1; z-index:1000" data-100="opacity: 0; z-index: -1000">
<p>scroll down</p>
</div>
<div class="title-text-wrapper mid-top">
<h1 class="title-line" class="title-line" id="line1">
<span data-945="top:0px" data-1490="top:-1500px">V</span>
<span data-1005="top:0px" data-1490="top:-1000px">I</span>
<span data-950="top:0px" data-1490="top:-1000px">S</span>
<span data-689="top:0px" data-1490="top:-1000px">U</span>
<span data-523="top:0px" data-1490="top:-1000px">A</span>
<span data-487="top:0px" data-1490="top:-1000px">L</span>
<span data-500="top:0px" data-1490="top:-1000px">I</span>
<span data-1127="top:0px" data-1490="top:-1000px">Z</span>
<span data-1139="top:0px" data-1490="top:-1000px">I</span>
<span data-1251="top:0px" data-1500="top:-1000px">N</span>
<span data-1065="top:0px" data-1490="top:-1000px">G</span>
</h1>
<h1 class="title-line" id="line2">
<span data-815="top:0px" data-1490="top:-1000px">L</span>
<span data-943="top:0px" data-1490="top:-1000px">O</span>
<span data-801="top:0px" data-1490="top:-1000px">S</span>
<span data-815="top:0px" data-1490="top:-1000px"> </span>
<span data-887="top:0px" data-1490="top:-1000px">A</span>
<span data-525="top:0px" data-1490="top:-1000px">N</span>
<span data-515="top:0px" data-1490="top:-1000px">G</span>
<span data-871="top:0px" data-1490="top:-1000px">E</span>
<span data-1229="top:0px" data-1500="top:-1000px">L</span>
<span data-420="top:0px" data-1500="top:-1000px">E</span>
<span data-1185="top:0px" data-1490="top:-1000px">S</span>
</h1>
</div>
</div>
<div id="section-1-a"></div>
<div id="section-1" class="section" data-0="" data-1700="">
<div class="plane-wrapper mid-top mid-left sec1"
data-0="margin-top:-1000px" id="plane1"
data-1080="margin-top:900px">
<div>
<img src="resources/img/plane.svg" />
</div>
</div>
<div class="path-wrapper mid-top mid-left sec1" id="path1"
data-0="margin-top: -3050px"
data-1080="margin-top:-1120px; opacity: 0.9"
data-1120="opacity: 0">
<div class="vert"></div>
</div>
<div class="plane-wrapper mid-top mid-left sec1" id="plane2"
data-460="margin-top:-1000px"
data-1480="margin-top:900px">
<div>
<img src="resources/img/plane.svg" />
</div>
</div>
<div class="path-wrapper mid-top mid-left sec1" id="path2"
data-460="margin-top: -3050px"
data-1480="margin-top:-1120px; opacity: 0.9"
data-1520="opacity: 0">
<div class="vert"></div>
</div>
<div class="plane-wrapper mid-top mid-left sec1" id="plane3"
data-0="margin-top:-1000px"
data-980=""
data-1520="margin-top:900px">
<div>
<img src="resources/img/plane.svg" />
</div>
</div>
<div class="path-wrapper mid-top mid-left sec1" id="path3"
data-980="margin-top: -3050px"
data-1520="margin-top:-1120px; opacity: 0.9"
data-1560="opacity: 0">
<div class="vert"></div>
</div>
</div>
<div id="section-2" class="section" data-1700="opacity: 0" data-1800="opacity:1" class="section" data-3600="">
</div>
<div class="section-2-content" id="section-2-a">
<div class="section-2-background section-background" data-1700="opacity: 0" data-2100="opacity:1">
</div>
<div class="info-box" data-1700="margin-top: 35vh; opacity:0" data-2000="opacity: 1; margin-top:55vh" data-3100="opacity:1" data-3200="opacity: 0; margin-top:75vh">
<h2 class="box-title">PARKING TICKETS</h2>
<a class="explore" href="parking-tickets">EXPLORE</a>
<p class="box-blurb">
Ever gotten a parking ticket in LA? You’re not alone. In this handy visualization, we have attempted to demystify the time/date/location factors of being the unlucky recipient of such a ticket.
</p>
</div>
</div>
<div id="section-3" class="section" data-3601="" data-5600=""></div>
<div class="section-3-content" id="section-3-a">
<div class="section-3-background section-background" data-3500="opacity: 0" data-3900="opacity:1">
</div>
<div class="info-box" data-3700="margin-top: 35vh; opacity:0" data-4000="opacity: 1; margin-top:55vh" data-5100="opacity: 1" data-5200="opacity: 0; margin-top:75vh">
<h2 class="box-title">LAX TRAFFIC</h2>
<a class="explore" href="lax-traffic">EXPLORE</a>
<p class="box-blurb">Grumpy at One World Way being heavily trafficked? In this visualization, we used data to determine the high traffic points over the course of 39 months, and its correlation to number of flights leaving LAX. Plan your flights wisely!</p>
</div>
</div>
<div id="section-4" class="section" data-5601="" data-7600=""></div>
<div class="section-4-content" id="section-4-a">
<div class="section-4-background section-background" data-5500="opacity: 0" data-5900="opacity:1">
</div>
<div class="info-box" data-5700="margin-top: 35vh; opacity:0" data-6000="opacity: 1; margin-top:55vh" data-7100="opacity:1" data-7200="opacity: 0; margin-top:75vh">
<h2 class="box-title">FLIGHTS FROM LAX</h2>
<a class="explore" href="lax-flights">EXPLORE</a>
<p class="box-blurb">Wondering where Angelenos fly off to during the year? We’ve analyzed the top travel destinations for you. Take the vacation of your dreams— with the rest of Los Angeles!</p>
</div>
</div>
<div id="section-5" class="section" data-7601="" data-9600=""></div>
<div class="section-5-content" id="section-5-a">
<div class="section-5-background section-background" data-7500="opacity: 0" data-7900="opacity:1; ">
</div>
<div class="info-box" data-7700="opacity:0" data-7750="margin-top: 300px" data-8000="opacity: 1">
<h2 class="box-title">SUMMARY</h2>
<p class="box-blurb">This project aimed to tell a story of LA’s transportation: from driving, to parking, to flying out of the city— we’ve dived into the data to derive some interesting insights. We hope you enjoyed our visualizations!</p>
<p>
View our <a href= "https://data.lacity.org">data source</a><br>
View our <a href="https://github.com/Mihirmathur/visualizingla">github repository</a>
</p>
<p> Contributors: Yvonne Chen, Alex Fong, Bibek Ghimire, Gabriel Hughes, Deanna Lam, Cody Ley Han, Cheechee Lin, Justin Liu, Mihir Mathur, Kelley Nguyen, Summer Wang</p>
<!--hyperlink everyone’s portfolio or LinkedIn or github (depending on what they want)-->
<p> This project was part of <br class="mobile"><a href="http://www.uclacreatives.com">Creative Labs Fall 2016</a></p>
</div>
</div>
</div>
<script type="text/javascript" src="resources/js/vendors/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="resources/js/vendors/d3.v3.min.js"></script>
<script type="text/javascript" src="resources/js/vendors/skrollr.min.js"></script>
<script src="resources/js/squares-over.js"></script>
<script src="resources/js/flying-squares.js"></script>
</body>
<script>
$(document).ready(function() {
var s = skrollr.init({
forceHeight: false,
smoothScrolling: true,
});
FlyingSquares.init(300);
SquaresAnimator.init();
handleNavUpdate();
enableSmoothScroll();
$(window).scroll(handleNavUpdate);
//various animations
$('.pre-over').delay(100).fadeOut();
$('.title-text-wrapper').delay(2000)
.animate({
'margin-top': '-100px',
'opacity' : 1
}, 1000);
});
function handleNavUpdate(){
var top = $(document).scrollTop();
var sectionArray = ($('[id^="section"]').toArray());
sectionArray.forEach(function(section) {
if ($(section).hasClass('skrollable-between')) {
var activeSessionID = '#' + $(section).attr('id') + '-a';
$('.nav-box').removeClass('active');
$('a[href="' + activeSessionID + '"]').addClass('active');
}
});
}
function enableSmoothScroll(){
$('a[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html, body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
}
</script>
</html>