-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathindex.html
More file actions
429 lines (370 loc) · 27.1 KB
/
index.html
File metadata and controls
429 lines (370 loc) · 27.1 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
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
427
428
429
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pittsburgh Food Access Map</title>
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol/dist/L.Control.Locate.min.css">
<!-- Leaflet Scripts-->
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet-src.js"></script>
<script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol/dist/L.Control.Locate.min.js" charset="utf-8"></script>
<script src="https://unpkg.com/esri-leaflet@2.3.3/dist/esri-leaflet-debug.js"></script>
<script src="https://unpkg.com/esri-leaflet-geocoder@2.3.2/dist/esri-leaflet-geocoder-debug.js"></script>
<!-- Bootstrap Stylesheets -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css">
<!-- Custom and Miscellaneous -->
<link rel="icon" type="image/x-icon" href="https://avatars.githubusercontent.com/u/7076673?s=200&v=4">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/leaflet-sidebar.css">
<link rel="stylesheet" href="./css/introjs.css">
</head>
<body>
<!-- Map Container -->
<div id="map"></div>
<!-- Sidebar Conatiner -->
<div id="sidebar" class="sidebar collapsed">
<!-- Nav tabs -->
<div class="sidebar-tabs">
<ul role="tablist">
<li id="step2"><a href="#home" role="tab"><i class="fa fa-home fa-lg"></i></a></li>
<li id="resultTab"><a href="#resultlist" role="tab"><i class="fa fa-bars fa-lg"></i></a></li>
<li><a href="#about" role="tab"><i class="fa fa-info fa-lg"></i></a></li>
<!-- <li><a href="https://github.com/Turbo87/sidebar-v2" role="tab" target="_blank"><i class="fa fa-github"></i></a></li> Use this if we want an icon that takes you to a link-->
</ul>
</div>
<!-- Tab panes -->
<div class="sidebar-content">
<!-- Home Tab -->
<div class="sidebar-pane" id="home">
<h1 class="sidebar-header">Pittsburgh Food Access Map<span class="sidebar-close"><i class="fa fa-caret-left"></i><i class="fa fa-caret-down"></i></span></h1>
<h2>Welcome to the Pittsburgh Food Access Map</h2>
<button type="button" class="btn btn-md" id="home-tutorial">View Tutorial</button>
<p class ='mobile'>Use the search bar to focus on an area of the city.</p>
<div class="row">
<div class="col-md-12">
<input type="text" placeholder="Search..." id="searchInput">
</div>
</div>
<!-- Home Tab Filters -->
<div id="filtersPane">
<!-- Type Filters -->
<div class="row">
<div class="col-md-12">
<div id="typeFilter" class="panel panel-default togglepad" >
<div class="panel-heading">
Types
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterSupermarket" name="supermarket" checked="checked" data-toggle="toggle">Supermarket
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterConvenienceStore" name="convenience store" checked="checked" data-toggle="toggle">Convenience Store
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterGrowPGHGarden" name="grow pgh garden" checked="checked" data-toggle="toggle">Grow PGH Garden
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterFarmersMarket" name="farmer's market" checked="checked" data-toggle="toggle">Farmer's Market
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input class="switch" type="checkbox" id="filterSummerMeals" name="summer meal site" checked="checked" data-toggle="toggle">Summer Meal Site
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterFoodBanks" name="food bank site" checked="checked" data-toggle="toggle">Food Bank Site
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterOther" name="other" checked="checked" data-toggle="toggle">Other
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad filter-all">
<input type="checkbox" id="filterAllTypes" name="toggleAllTypes" checked="checked" data-toggle="toggle"><strong>Toggle All Types</strong>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<!--Services Filters -->
<div class="row">
<div class="col-md-12">
<div id="servicesFilter" class="panel panel-default togglepad">
<div class="panel-heading">
Services
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline">
<input type="checkbox" id="filterSNAP" name="snap" checked="checked" data-toggle="toggle">SNAP
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterWIC" name="wic" checked="checked" data-toggle="toggle">WIC
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterFMNP" name="fmnp" checked="checked" data-toggle="toggle">FMNP
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterFoodBucks" name="food_bucks" checked="checked" data-toggle="toggle">Food Bucks
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterFreshProduce" name="fresh_produce" checked="checked" data-toggle="toggle">Fresh Produce
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterFreeDistribution" name="free_distribution" checked="checked" data-toggle="toggle">Free Distribution
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="checkbox" id="filterFoodRX" name="food_rx" checked="checked" data-toggle="toggle">Food Rx
</label>
</div>
</div>
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad filter-all">
<input type="checkbox" id="filterAllServices" name="allServices" checked="checked" data-toggle="toggle"><strong>Toggle All Services</strong>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Results Tab -->
<div class="sidebar-pane" id="resultlist">
<h1 class="sidebar-header">Results<span class="sidebar-close"><i class="fa fa-caret-left"></i><i class="fa fa-caret-down"></i></span></h1>
<br>
<p>Click on the map to get a list of nearby food resources.</p>
<!--Radius Slider -->
<div class="row" id="radiusSlider">
<div class="col-md-12">
<div class="panel panel-default togglepad">
<div class="panel-heading">
Radius
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<label class="checkbox-inline togglepad">
<input type="range" class="form-range" min="402.25" max="1609" value="805" step="402.25" id="customRange2">
<span id="rangeval">0.50</span><!-- Default value -->
<span>miles</span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<button type="button" class="btn btn-md" id="results-tutorial">View Tutorial</button>
<button type="button" class="btn btn-md" id="reset-radius">Clear Results</button>
<div id="results" class="container"></div>
</div>
<!-- About Tab -->
<div class="sidebar-pane" id="about">
<h1 class="sidebar-header">About<span class="sidebar-close"><i class="fa fa-caret-left"></i><i class="fa fa-caret-down"></i></span></h1>
<br>
<p>This app was made by awesome volunteers from Code for Pittsburgh!</p>
<p>To learn more and contribute, visit our <a href="https://github.com/CodeForPittsburgh/food-access-data-transformation">GitHub</a> page.</p>
<p>Thank you to the <a href="https://www.pittsburghfoodpolicy.org/">Pittsburgh Food Policy Council</a> for sponsoring this project!</p>
<!-- Missing Location Form -->
<div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default togglepad">
<div class="panel-heading">
<p>Do you know of a location that isn't on the map?</p>
<p>Please fill out the form below so we can add it.</p>
<span>Thank you!</span>
</div>
<div class="panel-body">
<form method="POST" action="https://script.google.com/macros/s/AKfycbxwKaB5hc2Ba1hPVhzrTEWehBOvTkKwU32zxCunf7-Djo5QrBo8lvML4_F2wEKSdeAwWw/exec" id="missing-location" autocomplete="off">
<input type="hidden" name="_subject" value="A user has submitted a location for the Pittsburgh Food Access Map.">
<div id="required-field">
<span>* Required Field</span>
</div>
<div>
<label>Location Name *</label>
<input type="text" class="form-control" name="Name" placeholder="Location Name" maxlength="100" required>
</div>
<div>
<label>Location Type *</label>
<select class="form-control" name="Type" required>
<option value="" disabled selected hidden>Please Choose an option</option>
<option>Convenience Store</option>
<option>Farmer's Market</option>
<option>Food Bank Site</option>
<option>Grow Pgh Garden</option>
<option>Summer Meal Site</option>
<option>Supermarket</option>
<option>Other</option>
</select>
</div>
<fieldset id="services-form">
<legend class="services-form-legend">Services accepted at this location</legend>
<div id="services-form-radio-options">
<div >
<span>Yes</span>
<span class="center-option">No</span>
<span>Unsure</span>
</div>
</div>
<fieldset class="services-form-radios" >
<label>Fresh Produce *</label>
<div>
<input type="radio" name="Fresh Produce" value="yes" required>
<input type="radio" name="Fresh Produce" value="no" required>
<input type="radio" name="Fresh Produce" value="unsure" required>
</div>
</fieldset>
<fieldset class="services-form-radios">
<label>SNAP *</label>
<div>
<input type="radio" name="SNAP" value="yes" required>
<input type="radio" name="SNAP" value="no" required>
<input type="radio" name="SNAP" value="unsure" required>
</div>
</fieldset>
<fieldset class="services-form-radios">
<label>WIC *</label>
<div>
<input type="radio" name="WIC" value="yes" required>
<input type="radio" name="WIC" value="no" required>
<input type="radio" name="WIC" value="unsure" required>
</div>
</fieldset>
<fieldset class="services-form-radios">
<label>Food Bucks *</label>
<div>
<input type="radio" name="Food Bucks" value="yes" required>
<input type="radio" name="Food Bucks" value="no" required>
<input type="radio" name="Food Bucks" value="unsure" required>
</div>
</fieldset>
<fieldset class="services-form-radios">
<label>Food Rx *</label>
<div>
<input type="radio" name="Food Rx" value="yes" required>
<input type="radio" name="Food Rx" value="no" required>
<input type="radio" name="Food Rx" value="unsure" required>
</div>
</fieldset>
<fieldset class="services-form-radios">
<label>Farmer's market nutrition program *</label>
<div>
<input type="radio" name="Farmer's market nutrition program" value="yes" required>
<input type="radio" name="Farmer's market nutrition program" value="no" required>
<input type="radio" name="Farmer's market nutrition program" value="unsure" required>
</div>
</fieldset>
</fieldset>
<div>
<label>Address *</label>
<input type="text" class="form-control" name="Address" placeholder="1234 Main St" maxlength="100" required>
</div>
<div>
<label>Address line 2</label>
<input type="text" class="form-control" name="Address2" placeholder="Apartment, studio, or floor" maxlength="100">
</div>
<div>
<label>City *</label>
<input type="text" class="form-control" name="City" placeholder="Pittsburgh" maxlength="100" required>
</div>
<div>
<label>State</label>
<select name="State" class="form-control">
<option selected>PA</option>
</select>
</div>
<div>
<label>Zip *</label>
<input type="text" class="form-control" name="Zip" placeholder="15222" maxlength="5" required>
</div>
<div>
<label>Notes</label>
<textarea class="form-control" name="Notes" rows="3" maxlength="200"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- partial -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<script src='https://unpkg.com/leaflet-knn@0.1.0/leaflet-knn.js'></script>
<script src="js/food_icons.js"></script>
<script src="js/intro-control.js"></script>
<script src="js/sidebar-update.js"></script>
<script src="js/imported/leaflet-sidebar.js"></script>
<script src="js/imported/bootstrap-geocoder.js"></script>
<script src="js/imported/intro.js"></script>
<script src="js/map-layout.js"></script>
<script src="js/script.js"></script>
</body>
</html>