forked from ParkingReformNetwork/reform-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
313 lines (297 loc) · 10.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
<!doctype html>
<html lang="en">
<head>
<title>Parking Mandates Map | Parking Reform Network</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="See which places have enacted parking reform to get rid of parking mininums."
/>
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<meta
property="og:title"
content="Parking Reform Map - Parking Reform Network"
/>
<meta
property="og:description"
content="See which places have enacted parking reform to get rid of parking mininums."
/>
<meta
property="og:url"
content="https://parkingreform.org/resources/mandates-map/"
/>
<meta property="og:site_name" content="Parking Reform Network" />
<meta
name="twitter:title"
content="Parking Reform Map - Parking Reform Network"
/>
<meta
name="twitter:description"
content="See which places have enacted parking reform to get rid of parking mininums."
/>
<link rel="stylesheet" href="./src/css/style.scss" />
</head>
<body>
<header class="top-header">
<nav class="header-view-toggle">
<button
class="header-icon-container header-table-icon-container"
title="switch to table view"
aria-label="switch to table view from map view"
>
<i class="fa-solid fa-table" aria-hidden="true"></i>
</button>
<button
class="header-icon-container header-map-icon-container"
title="switch to map view"
aria-label="switch to map view from table view"
style="display: none"
>
<i class="fa-solid fa-earth-americas" aria-hidden="true"></i>
</button>
</nav>
<nav class="header-control-icons">
<button
class="header-icon-container header-filter-icon-container"
title="open up filter options"
aria-expanded="false"
aria-controls="filter-popup"
>
<i class="fa-solid fa-sliders" aria-hidden="true"></i>
<span class="sr-only">open a popup to control filter options</span>
</button>
<button
class="header-icon-container header-search-icon-container"
title="search for a place"
aria-expanded="false"
aria-controls="search-popup"
>
<i class="fa-solid fa-magnifying-glass" aria-hidden="true"></i>
<span class="sr-only"
>open a popup to search for a specific place</span
>
</button>
<button
class="header-icon-container header-about-icon-container"
title="about the map"
aria-expanded="false"
aria-controls="about-popup"
>
<i class="fa-regular fa-circle-question" aria-hidden="true"></i>
<span class="sr-only">toggle a popup describing the map</span>
</button>
<a
class="header-icon-container header-full-screen-icon-container"
href="https://parkingreform.org/mandates-map"
title="view fullscreen"
target="_blank"
>
<i class="fa-solid fa-up-right-from-square" aria-hidden="true"></i>
<span class="sr-only">view fullscreen (opens in new tab)</span>
</a>
</nav>
</header>
<section
id="about-popup"
class="about-popup"
aria-label="about the map"
hidden
>
<header class="about-popup-header">
<h2>About the Parking Mandates Map</h2>
<button
class="about-popup-close-icon-container"
title="close the about popup"
aria-label="close the about popup"
>
<i class="fa-regular fa-circle-xmark" aria-hidden="true"></i>
</button>
</header>
<h3>Instructions</h3>
<p>
The map shows places that have enacted parking reforms. Click on one of
the colored dots for additional information about that place's reforms.
</p>
<p>
Click the filter or search icons in the top-right to change which places
are shown, such as to filter by population size. By default, the map
only shows places with all parking minimums removed. You can instead see
all places with any parking reform by clicking the toggle at the top of
the filter.
</p>
<p>
Click the table icon in the top-left to switch from map view to table
view. When in table view, click the map icon in the top-left to switch
back to the map.
</p>
<div role="region" aria-labelledby="about-popup-links-heading">
<h3 id="about-popup-links-heading">Relevant links</h3>
<ul class="about-popup-links-list">
<li>
<a
class="external-link"
target="_blank"
href="https://parkingreform.org/resources/mandates-map/"
>Methodology and key takeaways
<i aria-hidden="true" class="fa-solid fa-arrow-right"></i
></a>
</li>
<li>
<a
class="external-link"
target="_blank"
href="https://forms.gle/PaYXUP5J7YR1Zi6q6"
>Submit a report
<i aria-hidden="true" class="fa-solid fa-arrow-right"></i
></a>
</li>
<li>
<a
class="external-link"
target="_blank"
href="https://raw.githubusercontent.com/ParkingReformNetwork/mandates-map/main/map/data.csv"
>Download the data set (CSV file)
<i aria-hidden="true" class="fa-solid fa-arrow-right"></i
></a>
</li>
<li>
<a
class="external-link"
target="_blank"
href="https://parkingreform.org/resources/parking-lot-map"
>PRN's Parking Lot Map
<i aria-hidden="true" class="fa-solid fa-arrow-right"></i
></a>
</li>
<li>
<a
class="external-link"
target="_blank"
href="https://parkingreform.org/support/"
>Support this project with a donation
<i aria-hidden="true" class="fa-solid fa-arrow-right"></i
></a>
</li>
</ul>
</div>
<h3>Acknowledgments</h3>
<p>
This project is built and hosted by the
<a
class="external-link"
target="_blank"
href="https://parkingreform.org/support/"
>Parking Reform Network
<i aria-hidden="true" class="fa-solid fa-arrow-right"></i></a
>. It is based on "A Map of Cities That Got Rid of Parking Minimums",
initially published by
<a
class="external-link"
target="_blank"
href="https://strongtowns.org"
target="_blank"
>StrongTowns <i aria-hidden="true" class="fa-solid fa-arrow-right"></i
></a>
in November 2015. Reports have been submitted by many StrongTowns
readers and Parking Reform Network members over the years; reporters are
credited on the detailed information pages for each place.
</p>
<p>
The source code is maintained at
<a
class="external-link"
target="_blank"
href="https://github.com/ParkingReformNetwork/reform-map"
>GitHub <i aria-hidden="true" class="fa-solid fa-arrow-right"></i></a
>, where you can see the code contributors under the "Insights" tab.
</p>
</section>
<section
id="scorecard-container"
class="scorecard-container"
role="region"
hidden
></section>
<section id="map-counter" class="map-counter" role="region"></section>
<form class="filter-popup" aria-label="filter options" hidden>
<label class="all-minimums-toggle">
<input type="checkbox" id="all-minimums-toggle-checkbox" />
<span>Only places with all minimums removed</span>
<div class="all-minimums-toggle-switch"></div>
</label>
<div class="population-slider-container">
<div id="population-slider-label"></div>
<div class="population-slider-controls">
<input
aria-labelledby="population-slider-label"
class="population-slider-left"
name="min"
type="range"
step="0.5"
min="0"
value="0"
/>
<input
aria-labelledby="population-slider-label"
class="population-slider-right"
name="max"
type="range"
step="0.5"
min="0"
/>
</div>
</div>
<div id="filter-accordion-options"></div>
</form>
<div id="search-popup" class="search-popup" hidden>
<select single class="search" aria-label="search for a place">
<option value="">Search</option>
</select>
</div>
<div class="prn-logo-map">
<a
href="https://parkingreform.org/support/"
target="_blank"
aria-label="Support Parking Reform Network"
><img
src="./assets/prn-logo-wide.png"
alt="Parking Reform Network logo"
/></a>
</div>
<div
id="map"
role="application"
aria-label="interactive map showing places with parking reforms as clickable dots"
></div>
<div
id="table-view"
role="application"
aria-label="sortable table showing places selected by the filter and search controls"
hidden
>
<section class="table-counter-container" role="region">
<p id="table-counter"></p>
<a
id="table-logo"
href="https://parkingreform.org/support/"
target="_blank"
aria-label="Support Parking Reform Network"
><img
src="./assets/prn-logo-square.png"
alt="Parking Reform Network logo"
/></a>
</section>
<div id="table-container">
<div id="table"></div>
</div>
</div>
<script type="module">
import initApp from "./src/js/main";
window.onload = async () => {
await initApp();
};
</script>
</body>
</html>