-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
301 lines (279 loc) · 13.2 KB
/
Copy pathindex.html
File metadata and controls
301 lines (279 loc) · 13.2 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Find Home</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!--script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.35.0/mapbox-gl.js'></script-->
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/semantic-ui/2.2.9/semantic.min.js"></script>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="js/fusionCharts.js"></script>
<script src="js/fusionCharts.charts.js"></script>
<script src="js/fusioncharts.widgets.js"></script>
<script src="js/soda.js"></script>
<script src="js/c3.js"></script>
<script src="js/d3plus.js"></script>
<link rel="icon" href="favicon.ico">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/semantic-ui/2.2.9/semantic.min.css">
<link href="css/c3.css" rel="stylesheet" type="text/css">
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.35.0/mapbox-gl.css' rel='stylesheet' />
<link href='css/font-awesome.min.css' rel='stylesheet' />
<link href='css/menu.css' rel='stylesheet' />
<link href='css/main.css' rel='stylesheet' />
</head>
<body>
<nav class="main-menu">
<ul>
<li>
<a href="#">
<i class="fa fa-map-marker fa-2x"></i>
<span class="nav-text">
Maps settings
</span>
</a>
<div class="menu">
<form class="ui form TMP">
<h4 class="ui dividing header">Markers</h4>
<div class="field">
<div class="ui toggle checkbox">
<input class="layer-menu" type="checkbox" data-layer="houses-markers" checked="checked">
<label> Affordable Rental Houses.</label>
</div>
</div>
<div class="field">
<div class="ui toggle checkbox">
<input class="layer-menu" type="checkbox" data-layer="police-station-markers">
<label>Polices Stations - just in case.</label>
</div>
</div>
<div class="field">
<div class="ui toggle checkbox">
<input class="layer-menu" type="checkbox" data-layer="fire-station-markers">
<label>Fire Stations - you never know.</label>
</div>
</div>
<div class="field">
<div class="ui toggle checkbox">
<input class="layer-menu" type="checkbox" data-layer="public-health-clinic">
<label>Public Health Clinic</label>
</div>
</div>
<div class="field">
<div class="ui toggle checkbox">
<input class="layer-menu" type="checkbox" data-layer="librarie-markers">
<label>Libraries</label>
</div>
</div>
<div class="field">
<div class="ui toggle checkbox">
<input class="layer-menu2" type="checkbox" data-layer="bike_racks">
<label>Bike Racks - is you love your bike</label>
</div>
</div>
<div class="field">
<div class="ui toggle checkbox">
<input class="layer-menu2" type="checkbox" data-layer="bike_divvy">
<label><a href="https://www.divvybikes.com/">Divvi Bike</a> Stations - is you love bike</label>
</div>
</div>
<h3>Filters</h3>
<div class="field">
<label>Only show Affordable Rental Houses in a distance of <span id="distance-University">2</span>Km: </label>
<input type="range" min=1.5 max=27 step='0.5' value='2' id="max-distance">
</div>
<h4 class="ui dividing header ">Transport</h4>
<div class="grouped fields">
<label>How do you transport to the university?</label>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="transport" checked="checked" value="walking">
<label>Walking</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="transport" value="driving-traffic">
<label>Driving</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="transport" value="cycling">
<label>Cycling</label>
</div>
</div>
<p>*this affects the rent houses popups</p>
</div>
<div class="field">
<label></label>
</div>
</form>
</div>
</li>
<li>
<a href="#">
<i class="fa fa-bar-chart-o fa-2x"></i>
<span class="nav-text">
Graphs and Statistics
</span>
</a>
<div class="menu">
<h4 class="ui dividing header">Community Areas</h4>
<div class="ui toggle checkbox">
<input class="layer-menu community_area click-me" type="checkbox" data-chart="CA" data-layer="community_areas" checked="checked">
<label>Show community areas</label>
</div>
<form class="ui form CA">
<div class="ui segment">
<div class="field">
<div class="ui toggle checkbox">
<input class="community_area_crime" type="checkbox">
<label>Show crimen rate</label>
</div>
</div>
<div class="field">
<label>Crimen rate in <span id="crimen-rate-year">2017</span>: </label>
<input type="range" min=2001 max=2017 step='1' value='2017' id="range-crime" disabled="disabled">
</div>
<div class="field">
<label>Select a couple of community areas:</label>
<div class="ui fluid multiple search selection dropdown community1">
<input type="hidden" name="community1">
<i class="dropdown icon"></i>
<div class="default text">community areas</div>
<div class="menu"></div>
</div>
</div>
<div class="inline fields">
<label>Chart type?</label>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="chartType" checked="checked" value="pie">
<label>Pie Chart</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="chartType" value="donut">
<label>Donut Chart</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox">
<input type="radio" name="chartType" value="bar">
<label>Bar Chart</label>
</div>
</div>
</div>
<div class="field" id="crimeRatePie">
</div>
</div>
<div class="field">
<div class="field" id="radarChart">
</div>
</div>
<p>Click a community area to display Public Health Statistics</p>
<div class="">
</div>
</form>
<h4 class="ui dividing header">Draggables Loupes</h4>
<h5>Numbers of building per area</h5>
<div id="buildingChart"></div>
<div id="treeMap1"></div>
<p>*Click in the tree map to more information about parks <br>*Drag a drop the loupes markers to compare 1Km areas <br> Lock the bar to best experience</p>
</div>
</li>
<li>
<a href="#">
<i class="fa flaticon-drizzle fa-2x"></i>
<span class="nav-text">
Climate
</span>
</a>
<div class="menu">
<p class="chartTitle">Chicago weather:</p>
<div id="thermometer"></div>
<div id="thermometer2"></div>
<div id="thermometer3"></div>
<p class="chartTitle"><br>Temperature - last 10 days</p>
<div id="tmpChart" class="chart"></div>
<p>*With the mouse wheel you can zoom the chart <br> Don't you like this chart? Ok, <strong class="click-me" data-chart="TMP"> click me!</strong></p>
<form class="ui form TMP">
<h4 class="ui dividing header">Choose a chart type</h4>
<div class="two fields">
<div class="field">
<label>Temperature</label>
<select class="ui fluid dropdown" data-chart="tmp">
<option value="line">Line chart</option>
<option value="spline">Spline chart</option>
<option value="bar">Bar chart</option>
</select>
</div>
<div class="field">
<label>Wind speed</label>
<select class="ui fluid dropdown" data-chart="wind">
<option value="line">Line chart</option>
<option value="spline">Spline chart</option>
<option value="bar">Bar chart</option>
</select>
</div>
</div>
<div class="field">
<label></label>
</div>
</form>
<div id="prcpChart" class="chart"></div>
<p>*Selecting an area you can zoom the chart <br>Don't you like this chart? Ok, <strong class="click-me" data-chart="PRCP"> click me!</strong></p>
<form class="ui form PRCP">
<h4 class="ui dividing header">Choose a chart type</h4>
<div class="field">
<select class="ui fluid dropdown" data-chart="prcp">
<option value="line">Area chart</option>
<option value="line">Line chart</option>
<option value="spline">Spline chart</option>
<option value="bar">Bar chart</option>
</select>
</div>
<div class="field">
<label></label>
</div>
</form>
<p>*You can interact with the labels and the graphs</p>
</div>
</li>
<li>
<a href="#">
<i class="fa fa-info fa-2x"></i>
<span class="nav-text">
Information
</span>
</a>
<div class="menu">
<p>This is Finding Home, an app desing to help you to make your best decision.<br>
</p>
</div>
</li>
</ul>
<div class="ui left floated compact segment" style="margin-left: 50px;">
<div class="ui toggle checkbox">
<input type="checkbox" id="lock">
<label >Lock the bar!</label>
</div>
</div>
<ul class="logout">
</ul>
</nav>
<div id='map'></div>
<script src="js/echarts.js"></script>
<script src="js/climate.js"></script>
<script src="js/interaction.js"></script>
<script src="js/GoogleInteraction.js"></script>
<script src="js/map.js"></script>
<script src="js/mapData.js"></script>
<script src="js/communityAreasCharts.js"></script>
<script src="https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/markerclusterer.js"></script>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCYZYRqUwPRnxKQ6cBp81DIq1w-MamF24U&callback=main"></script>
</body>
</html>