-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
282 lines (268 loc) · 14 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/b2plogo.ico" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>Fika Map</title>
<link href="https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link href="./style.css" rel="stylesheet" />
<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=Inconsolata:wght@200;300;400;500;600;700;800;900&family=Kumbh+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap"
rel="stylesheet">
</head>
<body>
<div id="map">
</div>
<div class="side-bar p-0 m-0" id="side-bar">
<a href="https://fikamap.com/" target="_blank">
<img src="/b2plogo.png" class="mx-auto d-block m-2" width="85%" alt="B2P Logo">
</a>
<!-- Add a button with <i class="bi bi-info-circle"></i> icon -->
<div class="d-flex flex-column align-items-center m-0 p-0">
<div class="m-0 pt-3 pb-1 px-0">
<button class="btn m-0 py-0" id="controls-button" style="font-size: 30px; line-height: 20px;">
<div class="bg-secondary px-1 pt-2 pb-0 rounded-2" id="show-controls">
<i class="bi bi-sliders m-0 p-0"></i>
<p class="text-muted p-0 m-0" style="text-align: center; font-size: x-small;">Controls</p>
</div>
</button>
</div>
<div class="m-0 py-1">
<button class="btn m-0 py-0" id="info-button" style="font-size: 30px; line-height: 20px;">
<i class="bi bi-info-circle m-0 p-0"></i>
<p class="text-muted p-0 m-0" style="text-align: center; font-size: x-small;">Info</p>
</button>
</div>
<div class="m-0 py-1">
<button class="btn m-0 py-0" id="feedback-button" style="font-size: 30px; line-height: 20px;">
<i class="bi bi-chat-right-text m-0 p-0"></i>
<p class="text-muted p-0 m-0" style="text-align: center; font-size: x-small;">Feedback</p>
</button>
</div>
<div class="m-0 py-1">
<button class="btn m-0 py-0" id="bridge-need-button" style="font-size: 30px;">
<i class="bi bi-flag m-0 p-0"></i>
<p class="text-muted p-0 m-0" style="text-align: center; font-size: x-small;">Report Bridge Need</p>
</button>
</div>
<div class="m-0 py-1">
<button class="btn m-0 py-0" id="bug-button" style="font-size: 30px;">
<i class="bi bi-bug m-0 p-0"></i>
<p class="text-muted p-0 m-0" style="text-align: center; font-size: x-small;">Report Bug</p>
</button>
</div>
</div>
</div>
<div class="attributions mb-1">
<a href="http://www.ziamehrabi.com/index.html" target="_blank">
<img src="/assets/bpl-logo.png" class="logo" alt="Better Planet Lab">
</a>
</div>
<div class="control-panel card-body py-1 px-2 rounded-right" id="control-panel">
<div class="d-flex align-items-center">
<div class="mx-auto mt-2 mb-2">
<h5 class="text-center click-panel-title">Control Panel</h5>
</div>
<button class="btn p-0 mx-1" id="control-panel-close">
<i class="bi bi-x-lg"></i>
</button>
</div>
<div class="control-group">
<label class="text-muted p-0 m-0" style=" font-size: small;" for="dropdown1">Data Overlay Category</label>
<select class="form-select mb-2" name="dropdown1" id="dropdown1">
<!-- Dropdown 1 options -->
</select>
<label class="text-muted p-0 m-0" style=" font-size: small;" for="dropdown2">Data Overlay Details</label>
<select class="form-select mb-2" name="dropdown2" id="dropdown2">
<!-- Dropdown 2 options -->
</select>
<label class="text-muted p-0 m-0" style=" font-size: small;" for="dropdown3">Destination Type</label>
<select class="form-select mb-2" name="dropdown3" id="dropdown3">
<!-- Dropdown 3 options -->
</select>
<label class="text-muted p-0 m-0" style=" font-size: small;" for="dropdown4">Map Type</label>
<select class="form-select mb-2" name="dropdown4" id="dropdown4" disabled=""></select>
<!-- horizontal line -->
<hr class="mt-1 mb-2">
<label class="text-muted p-0 m-0" style=" font-size: small;" for="trans-slider"> Data Overlay Transparency</label>
<input type="range" class="form-range" name="slider" min="0" max="100" step="5" id="trans-slider">
<label class="text-muted p-0 m-0" style=" font-size: small;" for="geocoder">Search for Location</label>
<div class="geocoder my-2" id="geocoder"></div>
<!-- <label class="text-muted p-0 m-0 bi-info-circle fst-italic" style=" font-size: small;" for="" > To get started click on a hexagon</label> -->
<hr class="mt-1 mb-2">
<!-- create two bootstrap columns -->
<label class="fw-bold p-0 m-0 align-items-center text-center" style="font-size: small;" for="legend"
id="legend-type">Travel Time</label>
<div class="legend-colors p-2 mt-0 align-items-center" id="legend">
</div>
<div class="row align-items-center mb-2">
<div class="col-6 d-flex flex-column align-items-beginning fst-italic" id="left-legend-label">
<label class="text-muted p-0 m-0 fs legend-labels" for="">Longer</label>
</div>
<div class="col-6 d-flex flex-column align-items-end fst-italic" id="right-legend-label">
<label class="text-muted p-0 m-0 legend-labels" for="">Shorter</label>
</div>
</div>
<div class="row align-items-center">
<div class="col-6 d-flex justify-content-beginning p-0 px-2">
<img class="p-0 mx-1" src="/assets/edu-primary-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted pl-0 pr-0 py-0 ml-0 mr-0 my-0" style=" font-size: small;" for="">Primary
School</label>
</div>
<div class="col-6 d-flex justify-content-beginning">
<img class="p-0 mx-1" src="/assets/health-post-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted p-0 m-0" style=" font-size: small;" for="">Health Post</label>
</div>
</div>
<div class="row align-items-center">
<div class="col-6 d-flex justify-content-beginning p-0 px-2">
<img class="p-0 mx-1" src="/assets/edu-secondary-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted pl-0 pr-0 py-0 ml-0 mr-0 my-0" style=" font-size: small;" for="">Secondary
School</label>
</div>
<div class="col-6 d-flex justify-content-beginning">
<img class="p-0 mx-1" src="/assets/health-center-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted p-0 m-0" style=" font-size: small;" for="">Health Center</label>
</div>
</div>
<div class="row align-items-center">
<div class="col-6 d-flex justify-content-beginning p-0 px-2">
<img class="p-0 mx-1" src="/assets/edu-uni-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted pl-0 pr-0 py-0 ml-0 mr-0 my-0" style=" font-size: small;" for="">University</label>
</div>
<div class="col-6 d-flex justify-content-beginning">
<img class="p-0 mx-1" src="/assets/health-hospital-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted p-0 m-0" style=" font-size: small;" for="">Hospital</label>
</div>
</div>
<div class="row align-items-center">
<div class="col-6 d-flex justify-content-beginning p-0 px-2">
<img class="p-0 mx-1" src="/assets/bridge-constructed-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted pl-0 pr-0 py-0 ml-0 mr-0 my-0" style=" font-size: small;" for="">Constructed
Bridge</label>
</div>
<div class="col-6 d-flex justify-content-beginning">
<img class="p-0 mx-1" src="/assets/bridge-identified-circle.svg" alt="Icon" width="16" height="16">
<label class="text-muted p-0 m-0" style=" font-size: small;" for="">Identified Site</label>
</div>
</div>
</div>
</div>
<div class="click-panel card-body px-0 pt-0" id="click-panel">
<div class="container-fluid px-1" style="background-color: #E9E9E9;">
<div class="d-flex align-items-center">
<button class="btn p-0 m-0" id="close-button">
<i class="bi bi-x-lg"></i>
</button>
<div class="mx-auto mt-2 mb-2">
<h5 class="text-center click-panel-title">Detailed Information</h5>
</div>
</div>
</div>
<div class="summary-text px-2 pb-2" id="summary-text"></div>
<hr class="mt-1 mb-0 mx-4">
<!-- <canvas class="click-panel-canvas" id="matrix-chart"></canvas>
<hr class="mt-1 mb-0 mx-4"> -->
<canvas class="click-panel-canvas" id="radar-chart"></canvas>
<hr class="mt-1 mb-0 mx-4">
<canvas class="click-panel-canvas px-1" id="bar-chart"></canvas>
<hr class="mt-1 mb-0 mx-4">
<canvas class="click-panel-canvas" id="pie-chart"></canvas>
<hr class="mt-1 mb-0 mx-4">
<div class="accordion pt-4 px-1" id="all-data-acc">
<div class="accordion-item " style="background-color: transparent;">
<h1 class="accordion-header" id="all-data-heading">
<button class="accordion-button collapsed p-2" type="button" data-bs-toggle="collapse"
data-bs-target="#all-data-collapse" aria-expanded="false" aria-controls="all-data-collapse"
style="font-family: Inconsolata; font-weight: 600;">
All Data
</button>
</h1>
<div id="all-data-collapse" class="accordion-collapse collapse" aria-labelledby="all-data-heading"
data-bs-parent="#all-data-acc">
<div class="accordion-body m-0 p-0">
<table class="table" style="table-layout: fixed; word-wrap: break-word; font-family: Inconsolata;">
<thead>
<tr>
<th scope="col" style="width:75%">Category</th>
<th scope="col" style="width: 25%">Value</th>
</tr>
</thead>
<tbody id="all-data-table" style="max-width: 408px;">
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="card-body" id="words-click"></div>
</div>
<div class="hover-panel container" id="hover-panel" style="width: 400px;">
<div class="row">
<div class="col-3 px-0 py-1">
<img src="" class="mx-auto d-block" height=80px alt="..." id="hover-icon">
</div>
<div class="col-9" id="hover-text"></div>
</div>
</div>
<div class="modal info-modal" id="info-modal">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"> Welcome to Fika Map</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" id="close-modal-button">
<span aria-hidden="true"></span>
</button>
</div>
<div class="modal-body">
<p>Fika Map is a tool that portrays where trail bridges are needed to reduce rural poverty and what impact
trail bridges could have on surrounding communities. The data this tool displays is based on rigorous
research and modeling; <a href="https://fikamap.com/" target="_blank">we provide more info on these models
here</a>.</p>
<p> You can learn <a href="https://www.bridgestoprosperity.org/" target="_blank"> more about Bridges to
Prosperity here.</a></p>
<p>If you want to learn more about how to use this tool, <a
href="https://www.loom.com/share/ae18706430974d2b8ff4f5cbb52aec84?sid=e52513dc-e2ec-48f8-b9c9-1c0a52f8e48e" target="_blank">we put
together a video tutorial here</a>.</p>
</div>
<!-- horizontal line -->
<hr class="mt-1 mb-2">
<h5 class="px-2"> Supported by:</h5>
<div class="pt-1 pb-1 mx-4" style="display: flex; align-items: center; flex-wrap: wrap;">
<a href="http://www.ziamehrabi.com/index.html" target="_blank">
<img src="/assets/bpl-logo.png" class="logo" alt="Better Planet Lab">
</a>
<a href="https://helmsleytrust.org/" target="_blank">
<img src="/assets/helmsley-logo.png" class="logo" alt="Helmsley Charitable Trust">
</a>
<!-- add mapbox logo -->
<a href="https://www.mapbox.com/" target="_blank">
<img src="/assets/mapbox-logo-black.png" class="logo" alt="Mapbox Logo">
</a>
<a href="https://www.colorado.edu/center/mortenson/" target="_blank">
<img src="/assets/mc-logo.png" class="logo" alt="Mortenson Center">
</a>
<a href="https://www.autodesk.com/sustainability/corporate-philanthropy" target="_blank">
<img src="/assets/autodesk-logo.png" class="logo" alt="Autodesk">
</a>
<a href="https://www.cisco.com/c/en/us/about/csr/technology-for-good.html" target="_blank">
<img src="/assets/cisco-logo.png" class="logo" alt="Cisco">
</a>
</div>
</div>
</div>
</div>
</div>
<script type="module" src="/main.js"></script>
<script src="https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.min.js"></script>
</body>
</html>