-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
348 lines (283 loc) · 12.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Habitapp</title>
<meta name="description" content="The moment a student seeks a safe and affordable place to rent in Chicago, Habitapp appears to give you information about the best places you could find according to your tastes and priorities">
<meta name="keywords" content="Safety, budget, recreation, transportation, map, rent house">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans|Raleway|Candal">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" type="text/css" href="css/c3.min.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">
<!--banner-->
<section id="banner" class="banner">
<div class="bg-color">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="col-md-12">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#banner"><img src="img/logo3.png" class="img-responsive" style="width: 140px; margin-top: -16px; max-width: 40%;"></a>
</div>
<div class="collapse navbar-collapse navbar-right" id="myNavbar">
<ul class="nav navbar-nav">
<li class="active"><a href="#banner">Home</a></li>
<li class=""><a href="#instructionsSection">Instructions</a></li>
<li class=""><a href="#mapSection">Map</a></li>
</ul>
</div>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="banner-info">
<div class="banner-logo text-center">
<img src="img/logo2.png" class="img-responsive">
</div>
<div class="banner-text text-center">
<h1 class="white">Habitapp</h1>
<p>The moment a student seeks a safe and affordable place to rent in Chicago, Habitapp appears to give you information about the best places you could find according to your tastes and priorities. This search is based on your convenience, as a mode of transport and favorite places.</p>
</div>
<div class="overlay-detail text-center">
<a href="#instructionsSection"><i class="fa fa-angle-down"></i></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- banner-->
<!-- instructions section -->
<section id="instructionsSection" class="section-padding">
<div class="container">
<div class="row">
<h1 class="text-center">Instructions</h1>
<div class="col-md-6">
<ol class="list">
<li>Select a property type</li>
<li>Select a maximum distance from university</li>
<li>You mark your places favorites in the map</li>
<ul>
<li>Every site has information of contact, address, phone number, website and others</li>
<li>Click in the icon of the site for more information</li>
</ul>
</ol>
</div>
<div class="col-md-6">
<ol class="list">
<li>Select a house by clicking it</li>
<li>Below the map will appear transport information</li>
<ul>
<li>You can choose to use different means of transportation, such as walking, public transportation, car</li>
<li>You will get the travel time!</li>
</ul>
<li>You can see the number of crimes near the selected house</li>
<li>You can see a map of heat related to the number of crimes of the last year</li>
<li>You can see a diagram comparing the number of crimes by district</li>
</ol>
</div>
</div>
</div>
</section>
<!-- End instructions-->
<!-- Map section-->
<section id="mapSection" class="section-padding">
<div class="container">
<div class="row">
<h1 class="text-center">Your preferences</h1>
<div class="col-md-6">
<h2>Choose the property type</h2>
<select name="propertyType" id="seleccion">
<option value="All" selected="selected">All</option>
<option value="Senior">Senior</option>
<option value="Multifamily">Multifamily</option>
</select>
<!-- <button type="button" class="btn btn-success" onclick="setPropertyType()">Filter</button> -->
<h2>Choose the maximum distance from the university</h2>
<div class="range-slider">
<input class="range-slider__range" type="range" value="33" min="4" max="33" step="1" id="distance">
<span class="range-slider__value">0</span>
</div>
<button type="button" class="btn btn-success" onclick="setMaxDistanceAndPropertyType()">Filter</button>
</div>
<div class="col-md-6">
<h2 title="Which places would you like to have close to where you will live">Your favorite sites</h2>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox1" type="checkbox" class="styled" onclick="show_or_hide_site(1)">
<label for="checkbox1"> Parks </label>
<img src="img/tree.png">
</div>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox5" type="checkbox" class="styled" onclick="show_or_hide_site(5)">
<label for="checkbox5"> Libraries </label>
<img src="img/library.png">
</div>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox3" type="checkbox" onclick="show_or_hide_site(3)">
<label for="checkbox3"> Fire stations </label>
<img src="img/fire_station.png">
</div>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox2" type="checkbox" onclick="show_or_hide_site(2)">
<label for="checkbox2"> Schools </label>
<img src="img/school.png">
</div>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox6" type="checkbox" onclick="show_or_hide_site(6)">
<label for="checkbox6" > Police station </label>
<img src="img/police.png">
</div>
<label> Food</label>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox4" type="checkbox" onclick="show_or_hide_site(4)">
<label for="checkbox4"> Farmers markets </label>
<img src="img/market.png">
</div>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox7" type="checkbox" onclick="show_or_hide_site(7)">
<label for="checkbox7" > Grocery store chains </label>
<img src="img/store_chain.png">
</div>
<div class="checkbox checkbox-info checkbox-circle">
<input id="checkbox8" type="checkbox" onclick="show_or_hide_site(8)">
<label for="checkbox8" > Independent grocery stores </label>
<img src="img/independent_store.png">
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-md-12" id="map_container">
<div id="map"></div>
</div>
</div>
<div class="row">
<div class="col-md-7">
<h2>Information transport</h2>
<p> Select one house and changes you mode of transport</p>
<p>Home ubication: <span id="homeUbicacion"></span></p>
<p>Mode of transport: <strong id="modeTravel"></strong></p>
<p>Distance from the university to your home using this mode of transport:<span id="distanceUniversity"></span></p>
<p>Time to get to university from home: <span id="timeArrive"></span></p>
<h2 title="Choose the mode of transport you would like to use">Select your mode of transport</h2>
<div class="radio radio-info" >
<input type="radio" name="options" id="options_1" value="opc_1" onClick="setTravelMode('BICYCLING')" checked>
<label for="options_1"> Bicycle </label>
</div>
<div class="radio radio-info">
<input type="radio" name="options" id="options_2" value="opc_2" onClick="setTravelMode('WALKING')">
<label for="options_2"> Walking </label>
</div>
<div class="radio radio-info">
<input type="radio" name="options" id="options_3" value="opc_3" onClick="setTravelMode('DRIVING')">
<label for="options_3"> Driving </label>
</div>
<div class="radio radio-info">
<input type="radio" name="options" id="options_4" value="opc_4" onClick="setTravelMode('TRANSIT')">
<label for="options_4"> Public transit </label>
</div>
</div>
<div class="col-md-5">
<h2>Security information </h2>
<p>In the last year there have been <span id="number_crimes">0</span> crimes to one kilometer of this property</p>
<p>Do you want to know the areas where there are the most crimes in the last year?</p>
<p>Press the button to show or hide the heat map of crimes</p>
<input class="btn btn-primary" type="button" id="security" value="Toogle heat map">
<br><br>
<h2>Climatic information </h2>
<p>Welcome to Chicago, the climate today is: <span id="climate"></span></p>
<p id="weather"></p>
</div>
</div>
<div class="row">
<h2>Graph of the number of crimes</h2>
<p>Here are the district with the number crimes in the last year.</p>
<div class="col-md-6">
<div id="securityInTheDistrict_1"></div>
</div>
<div class="col-md-6">
<div id="securityInTheDistrict_2"></div>
</div>
</div>
</div>
</section>
<!-- end MapSection -->
<!--footer-->
<footer id="footer">
<div class="top-footer1">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-4 marb20">
<div class="ftr-tle">
<h4 class="white no-padding">About Us</h4>
</div>
<div class="info-sec">
<p>This is a project develop for IronHacks.</p>
</div>
</div>
<div class="col-md-4 col-sm-4 marb20">
<div class="ftr-tle">
<h4 class="white no-padding">Quick Links</h4>
</div>
<div class="info-sec">
<ul class="quick-info">
<li><a href="#banner"><i class="fa fa-circle"></i>Home</a></li>
<li><a href="#mapSection"><i class="fa fa-circle"></i>Map</a></li>
<li><a href="#instructionsSection"><i class="fa fa-circle"></i>Instructions</a></li>
</ul>
</div>
</div>
<div class="col-md-4 col-sm-4 marb20">
<div class="ftr-tle">
<h4 class="white no-padding">Follow us</h4>
</div>
<div class="info-sec">
<ul class="social-icon">
<li class="bgGithub"><i class="fa fa-github"></i></li>
<li class="bgred"><i class="fa fa-google-plus"></i></li>
<li class="bglight-blue"><i class="fa fa-twitter"></i></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="footer-line">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<i class="fa fa-creative-commons" aria-hidden="true"> IronHacks</i>
<div class="credits">
Designed by Jonatan Parra
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- footer-->
<script src="js/d3.min.js"></script>
<script src="js/c3.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery.easing.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/custom.js"></script>
<script src="js/data.js" type="text/javascript"></script>
<script src="js/map.js" type="text/javascript"></script>
<script src="js/data_sets.js" type="text/javascript"></script>
<script src="js/house.js" type="text/javascript"></script>
<script src="js/security.js" type="text/javascript"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBBdBomiMvRuxhyD_nIyDoFCn6jFbVyDnI&callback=initApp&libraries=visualization"></script>
</body>
</html>