-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
208 lines (201 loc) · 11.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src='https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.12.0/mapbox-gl.css' rel='stylesheet' />
<!-- Mapbox geocoder plugin -->
<script
src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.min.js"></script>
<link rel="stylesheet"
href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.css"
type="text/css">
<!-- Title and Style -->
<title>Toronto Food Support Map</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/x-icon" href="resized_images/favicon.ico">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous"></script>
<!-- Turf.js -->
<script src='https://unpkg.com/@turf/turf@6/turf.min.js'></script>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Arvo&display=swap" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-lg" style="background-color: #E7F1FF;">
<div class="container-fluid">
<a class="navbar-brand" href="index.html"> <img src="resized_images/logo.png" alt="Logo" width="39"
height="30" class="d-inline-block align-text-middle"> Toronto Food Support and Education Map</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="resources.html">Resources</a>
</li>
<li class="nav-item">
<a class="nav-link" href="education.html">Education & Context</a>
</li>
<li class="nav-item">
<a class="nav-link" href="aboutus.html">About Us</a>
</li>
</ul>
</div>
</div>
</nav>
<div id=map class=map> </div>
<!-- nav elements -->
<div class='map-overlay'>
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Search
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<label>Search for an area in Toronto</label>
<div id="geocoder" class="geocoder"></div>
<button type="button" class="btn btn-primary btn-sm" id="returnbutton">Return to Full
View</button>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Filter Resources
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<label> Default Layers </label>
<div class="list-group my-2">
<label class="list-group-item" id="freelowcostmeals">
<input class="form-check-input me-1" type="checkbox" value="" checked>
Free or Low Cost Meal
</label>
<label class="list-group-item" id="foodbanks">
<input class="form-check-input me-1" type="checkbox" value="" checked>
Foodbanks
</label>
<label class="list-group-item" id="community_fridges">
<input class="form-check-input me-1" type="checkbox" value="" checked>
Community Fridges
</label>
<label class="list-group-item" id="farmersmarkets">
<input class="form-check-input me-1" type="checkbox" value="" checked>
Farmers Markets
</label>
<label class="list-group-item" id="community_kitchens">
<input class="form-check-input me-1" type="checkbox" value="" checked>
Community Kitchens
</label>
<label class="list-group-item" id="greeenhouses">
<input class="form-check-input me-1" type="checkbox" value="" checked>
Greenhouses
</label>
</div>
<label> Additional Layers </label>
<div class="list-group my-2">
<label class="list-group-item" id="student_nutritional_sites">
<input class="form-check-input me-1" type="checkbox" value="">
Student Nutritional Sites
</label>
<label class="list-group-item" id="chinesesupermarkets">
<input class="form-check-input me-1" type="checkbox" value="">
Chinese Markets
</label>
<label class="list-group-item" id="middleeasternsupermarkets">
<input class="form-check-input me-1" type="checkbox" value="">
Middle Eastern Markets
</label>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Food Environment Education
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" aria-labelledby="headingThree"
data-bs-parent="#accordionExample">
<div class="accordion-body">
<h6>Distribution of Food Establishments in Toronto</h6>
<ul class="list-unstyled">
<li>Click on a layer on the dropdown to view the distirbution density of that type of food
establishment across Toronto.
<ul>
<li>mRFEI and Rmix are relative food environment indexes that represent the
proportion of healthy and less healthy food
retailers. <a href="education.html#canfed">Learn more.</a></li>
<li>Toggle various sociodemographic layers using
the checkboxes.</li>
</ul>
</li>
</ul>
<div class="dropdown">
<button class="btn btn-outline-primary dropdown-toggle btn-sm m-1 col-12" type="button"
data-bs-toggle="dropdown" aria-expanded="false" id="dropdownMenuButton">
Select Layer
</button>
<button type="button" class="btn btn-secondary btn-sm m-1 col-12" id="turnOffButton">Turn
Layer off</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" id="chaingrocerystores" href="#">Chain Grocery Stores</a>
<a class="dropdown-item" id="fruitandvegetable" href="#">Fruit and Vegetable Markets</a>
<a class="dropdown-item" id="convenience" href="#">Convenience Stores</a>
<a class="dropdown-item" id="grocerystores" href="#">Independent Grocery Stores</a>
<a class="dropdown-item" id="restaurants" href="#">Restaurants</a>
<a class="dropdown-item" id="fastfood" href="#">Fast Food</a>
<li>
<hr class="dropdown-divider">
</li>
<a class="dropdown-item" id="mRFEI" href="#">Retail Food Environment Index (mRFEI)</a>
<a class="dropdown-item" id="rmix" href="#">Fast Food Restaurant Mix (RMix)</a>
</div>
</div>
<hr class="hr" />
<h6>Socio-Demographic Layers</h6>
<div class="list-group my-2">
<label class="list-group-item" id="visible_minorities">
<input class="form-check-input me-1" type="checkbox" value="">
Visible Minorities
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- legends -->
<div id='canfed-legend' class='legend'>
<h5>Food Establishment Density Score</h5>
</div>
<div id='points-legend' class='legend'>
<h5>Legend</h5>
</div>
<script src='script.js'> </script>
</body>
</html>