-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
368 lines (251 loc) · 10.5 KB
/
index.html
File metadata and controls
368 lines (251 loc) · 10.5 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
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
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Network 9 Resource Directory</title>
<link rel="icon" href="images/n9.png">
<meta charset='utf-8' />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta content="Network 9 Resource Directory" name='description' />
<meta content='Network 9' name='author' />
<!-- Styles -->
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/custom.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script type="text/javascript" src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Added by Subhodh - Spiderify -->
<script src="http://maps.googleapis.com/maps/api/js"></script>
<script src="js/overlappingMarkerSpiderfier.js"></script>
</head>
<body>
<div class='navbar navbar-default navbar-static-top'>
<div class='container-fluid'>
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class='navbar-brand' id='logo-img' href='index.html'><img src='images/n9.png' title='Network 9 Resource Directory' alt='Network 9 Resource Directory' style='height: 40px; margin-top: -10px;'/> Network 9 Community Resource Directory</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class='active'><a href="index.html"><i class='fa fa-map-marker'></i> Map</a></li>
<li><a href="about.html"><i class='fa fa-info-circle'></i> About</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<div class='container-fluid'>
<div class='row'>
<div class='col-md-4'>
<div class='well'>
<a class="btn btn-primary" data-toggle="collapse" href="#collapseExample" aria-expanded="false" aria-controls="collapseExample">
Instructions
</a>
<div class="collapse" id="collapseExample">
<div class="panel panel-default">
<div class="panel-body">
<p>Search for services by keyword or by address with the search bars.</p>
<p>When searching by address, specify the search radius with the dropdown list.</p>
<p>Specify the type of service you are searching for with the checkboxes.</p>
<p>Click on the "Results" button to view results as a list and on the "Map View" button to change back.</p>
<p>Click on the About tab at the top right for more information.</p>
</div>
</div>
</div>
<h4> Search by name</h4>
<input class='form-control' id='name_search' placeholder="Enter a business or organization name" type='text' />
<h4>
Near an address <small>(<a id='find_me' href='#'>find me</a>)</small>
</h4>
<p>
<input class='form-control' id='search_address' placeholder='Enter an address or an intersection' type='text' />
</p>
<p>
<label>
within
<select id='search_radius'>
<option value='400'>2 blocks</option>
<option value='805'>1/2 mile</option>
<option value='1610'>1 mile</option>
<option value='3220'>2 miles</option>
</select>
</label>
</p>
<!-- Added by Eric - Checkbox for Service Category -->
<h4>
Service Category
</h4>
<ul class='inputs-list unstyled'>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='academic-support' />
<span class='filter-box filter-red'></span>
Academic Support
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='employment' />
<span class='filter-box filter-orange'></span>
Employment
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='housing' />
<span class='filter-box filter-yellow'></span>
Housing
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='medical-care' />
<span class='filter-box filter-green'></span>
Medical Care
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='mental-health' />
<span class='filter-box filter-skyblue'></span>
Mental Health
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='parent-guardian-support' />
<span class='filter-box filter-purple'></span>
Parent/Guardian Support
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='youth-support' />
<span class='filter-box filter-pink'></span>
Youth Support
</label>
</li>
<li>
<label class='checkbox inline'>
<input type='checkbox' id='other' />
<span class='filter-box filter-brown'></span>
Other
</label>
</li>
</ul>
<p class='pull-left'>
<a class='btn btn-primary' id='search' href='#'>
<i class='glyphicon glyphicon-search'></i>
Search
</a>
<a class='btn btn-default' id='reset' href='#'>
<i class='glyphicon glyphicon-repeat'></i>
Reset
</a>
</p>
<p class='pull-right'>
<a class='btn btn-default' id='viewmode'><i class='fa fa-list'></i> List view</a>
</p>
<div class='clearfix'></div>
</div>
<div class='alert alert-info' id='result_box' ><strong id='result_count'></strong></div>
</div>
<div class='col-md-8'>
<noscript>
<div class='alert alert-info'>
<h4>Your JavaScript is disabled</h4>
<p>Please enable JavaScript to view the map.</p>
</div>
</noscript>
<div id='map_canvas'></div>
<div id='listview' style='display: none;'>
<h2>District 9 Resource Directory</h2>
<table class='table'>
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Address</th>
<th><i class='fa fa-phone'></i> Contact</th>
<th>Description</th>
</tr>
</thead>
<tbody id='results_list'></tbody>
</table>
</div>
<p style="float: right">Created by UChicago <a href="http://politics.uchicago.edu/pages/sce-techteam">TechTeam</a></p>
</div>
</div>
</div>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery.address.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!--Commented by Subhodh - <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false&libraries=places"></script>-->
<script type="text/javascript" src="js/maps_lib.js"></script>
<script src="js/overlappingMarkerSpiderfier.js"></script>
<script type='text/javascript'>
//<![CDATA[
$(window).resize(function () {
var h = $(window).height(),
offsetTop = 105; // Calculate the top offset
$('#map_canvas').css('height', (h - offsetTop));
}).resize();
$(function() {
var myMap = new MapsLib({
// fusionTableId: "14D2Ie9US832vlDk435aUkRIIg_eqtbcAq0GloIhL", //Need to change this fusiontableid to real one
// googleApiKey: "AIzaSyAF7Syz8InHGYWi_zRABKqmle_6FGzIN40",
fusionTableId: "1qv_8t4BrqTha6fQPH0HYBP2iMHdWJd7X3mAuxjZb",
googleApiKey: "AIzaSyB4BjFBwCZ24twD-mSSNr_djWWRErc64V4",
locationColumn: "'Location'",
map_center: [41.789546, -87.599630],
addrMarkerImage: ''
});
// var autocomplete = new google.maps.places.Autocomplete(document.getElementById('search_address'));
$(':checkbox').click(function(){
myMap.doSearch();
});
$(':radio').click(function(){
myMap.doSearch();
});
$('#search_radius').change(function(){
myMap.doSearch();
});
$('#search').click(function(){
myMap.doSearch();
});
$('#find_me').click(function(){
myMap.findMe();
return false;
});
$('#reset').click(function(){
myMap.reset();
return false;
});
$('#viewmode').click(function(){
if ($('#map_canvas').is(":visible")){
$('#viewmode').html("<i class='fa fa-map-marker'></i> Map view");
$('#listview').show();
$('#map_canvas').hide();
}
else {
$('#viewmode').html("<i class='fa fa-list'></i> Results");
$('#map_canvas').show();
$('#listview').hide();
}
});
$(":text").keydown(function(e){
var key = e.keyCode ? e.keyCode : e.which;
if(key === 13) {
$('#search').click();
return false;
}
});
});
//]]>
</script>
</body>
</html>