forked from osmlab/onosm.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·376 lines (344 loc) · 19.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
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title lang="en-US">On OpenStreetMap - a tool to add your business to the map</title>
<title lang="es">Su OpenStreetMap - Aggiungi la tua attività su OpenStreetMap</title>
<meta name="description" lang="en-US" content="Quickly and easily list your business on OpenStreetMap" />
<meta name="description" lang="es" content="Aggiungi la tua attività su OpenStreetMap, il più grande database di dati geografici aperto al mondo! Diventa ricercabile da migliaia di utenti da tutto il mondo.">
<link rel="shortcut icon" href="img/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta charset="UTF-8">
<!-- SELECT 2 CSS-->
<link rel='stylesheet' type='text/css' href="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2.min.css" />
<!-- LEAFLET CSS-->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin="" />
<link rel="stylesheet" href="css/L.Control.Locate.css" />
<!-- BOOTSTRAP CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- TWEMOJI Amazing -->
<link rel="stylesheet" href="css/twemoji.css" />
<!-- KEEP LAST -->
<link rel='stylesheet' type='text/css' href='css/style.css' />
<!--[if lt IE 9]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.1/leaflet.ie.css" />
<link rel="stylesheet" href="css/L.Control.Locate.ie.css"/>
<![endif]-->
<!-- LEAFLET JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.3/leaflet.js" integrity="sha512-Dqm3h1Y4qiHUjbhxTuBGQsza0Tfppn53SHlu/uj1f+RT+xfShfe7r6czRf5r2NmllO2aKx+tYJgoxboOkn1Scg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="js/L.Control.Locate.js"></script>
<!-- JQUERY JS-->
<script src="https://code.jquery.com/jquery-3.5.0.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-migrate-3.2.0.min.js" integrity="sha256-t+8cuBH4205MYRAyzzsk0sEla/l5QSO0GuTeozHrVNY=" crossorigin="anonymous"></script>
<!-- SELECT 2 JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.4/select2_locale_it.min.js"></script>
<!-- BOOTSTRAP JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<!-- i18next -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next/21.6.10/i18next.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-i18next/1.2.1/jquery-i18next.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next-browser-languagedetector/6.1.3/i18nextBrowserLanguageDetector.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next-http-backend/1.3.1/i18nextHttpBackend.min.js"></script>
<!-- CONFETTI JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
</head>
<body>
<div class='container-sm mt-3 mb-5' style='display: inline-block'>
<select name='language' id='languageSwitcher'></select>
</div>
<div class="container-sm mt-3 mb-5">
<div class="row">
<div class="col">
<img src='img/osm.png' alt="OpenStreetMap logo" class="mx-auto" />
</div>
<div class="col-10 text-break">
<h1 data-i18n="app.title" class="mx-auto text-primary">On OpenStreetMap</h1>
<p data-i18n="app.desc" class="p-2"></p>
</div>
</div>
<nav class="nav nav-pills nav-fill border p-1 rounded">
<a class="nav-item nav-link active rounded-0 bg-success" id="step1" href="#location" data-i18n="step1.title">Location</a>
<a class="nav-item nav-link rounded-0 disabled" id="step2" href="#details" data-i18n="step2.title">Details</a>
<strong class="nav-item nav-link disabled rounded-0" id="step3" data-i18n="step3.title"></strong>
</nav>
<div class='mt-3' id='address-step'>
<div class='center pad2'>
<span id='instructions' class="text-info" for="address" style="font-size: x-large;" data-i18n="step1.desc"></span>
</div>
<div class='mb-4 mt-3'>
<form id='find' class="input-group border border-primary shadow-sm rounded">
<input class="form-control" id="address" type="search" placeholder='' data-i18n="[placeholder]step1.addr" />
<div class="input-group-append">
<button class="cbtn btn-primary px-3" id='findme' aria-label="search for address"><span data-i18n="step1.button"></span></button>
</div>
</form>
<p id="couldnt-find" class="alert alert-danger mt-2" role="alert" style='display: none;' data-i18n="[html]step1.fail"></p>
<p id="map-information" class="alert alert-warning mt-2" role="alert" style='display: none;'></p>
</div>
<div id='findme-map'></div>
<a class="btn btn-primary btn-lg text-white w-100 mt-3 text-uppercase disabled" id="continue" href="#details" data-i18n="step1.continue">
Move to next step
</a>
</div>
<!-- step 2 -->
<div class='mt-3 d-none' id='collect-data-step'>
<p data-i18n="[html]step2.desc" class="h3 text-info"></p>
<form id="form">
<!-- categories -->
<div class="row">
<div class="form-group col">
<label for="category" data-i18n="step2.catlabel" ></label>
<input id="category" data-i18n="[data-placeholder]step2.catplaceholder" class="w-100" />
</div>
<div class="form-group col-sm-7">
<label for='categoryalt' data-i18n="step2.catalt"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-convenience-store"></i></span>
</div>
<input id='categoryalt' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.cataltplaceholder" />
</div>
</diV>
</div>
<hr>
<p data-i18n="step2.addressalt" class="mt-3"></p>
<!-- address 1 -->
<div class="form-row">
<div class="form-group col-md-5">
<label for='addressalt' data-i18n="step2.street"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-round-pushpin"></i></span>
</div>
<input id='addressalt' autocomplete="street-address" type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.addressaltplaceholder" />
</div>
</div>
<div class="form-group col-md-2">
<label for="hnumberalt" data-i18n="step2.housenumber"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-keycap-10"></i></span>
</div>
<input type="text" class="form-control" id="hnumberalt" data-i18n="[placeholder]step2.housenumberplaceholder">
</div>
</div>
<div class="form-group col-md-3">
<label for="city" data-i18n="step2.city"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-cityscape"></i></span>
</div>
<input type="text" class="form-control" id="city" data-i18n="[placeholder]step2.cityplaceholder">
</div>
</div>
<div class="form-group col-md-2">
<label for="postcode" data-i18n="step2.postcode"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-postbox"></i></span>
</div>
<input type="number" class="form-control" id="postcode" data-i18n="[placeholder]step2.postcodeplaceholder">
</div>
</div>
</div>
<hr>
<!-- name and number -->
<div class="row mt-3">
<div class="form-group col">
<label for='name' data-i18n="step2.name"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-name-badge"></i></span>
</div>
<input id='name' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.nameplaceholder" />
</div>
</div>
<div class="form-group col-sm-6">
<label for='phone' data-i18n="step2.phone"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-telephone-receiver"></i></span>
</div>
<input id='phone' type="tel" placeholder='' class="form-control" data-i18n="[placeholder]step2.phoneplaceholder" />
</div>
</div>
</div>
<!-- website & social -->
<div class="row">
<div class="form-group col">
<label for='website' data-i18n="step2.website"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-globe-with-meridians"></i></span>
</div>
<input id='website' type="url" placeholder='' class="form-control" data-i18n="[placeholder]step2.websiteplaceholder"/>
</div>
</div>
<div class="form-group col-sm-6">
<label for='social' data-i18n="step2.social"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-speech-balloon"></i></span>
</div>
<input id='social' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.socialplaceholder" />
</div>
</div>
</div>
<!-- opening hours -->
<div class="form-group">
<label for='opening_hours' data-i18n="step2.opening"></label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-nine-o-clock"></i></span>
</div>
<input id='opening_hours' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.openingplaceholder" />
</div>
</div>
<!-- accessibility -->
<label for='wheel' data-i18n="step2.wheel" class="mt-3"></label>
<i class="twa twa-information" title="" data-i18n="[title]step2.imgalt" data-toggle="modal" data-target="#wheelmodal" style="cursor:pointer"></i>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="twa twa-wheelchair-symbol"></i></span>
</div>
<select class="custom-select" id="wheel">
<option selected data-i18n="step2.wheelplaceholder" hidden="yes" value=""></option>
<option value="yes" data-i18n="step2.wheel_yes"></option>
<option value="limited" data-i18n="step2.wheel_limited"></option>
<option value="no" data-i18n="step2.wheel_no"></option>
<option value="unknown" data-i18n="step2.wheel_unknown"></option>
</select>
</div>
<!-- modal -->
<div class="modal fade bd-example-modal-xl" id="wheelmodal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" data-i18n="messages.modalTitle"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p data-i18n="[html]step2.wheelmodal"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary w-100 btn-lg text-uppercase" data-dismiss="modal" data-i18n="messages.modalButton"></button>
</div>
</div>
</div>
</div>
<!-- payments -->
<label for='payment' data-i18n="step2.payment" class="mt-3"></label>
<input id='payment' placeholder="" class="w-100" data-i18n="[placeholder]step2.paymentplaceholder" />
<hr class="my-3">
<!-- delivery -->
<div class="row">
<div class="form-group col">
<label for='delivery' data-i18n="step2.delivery"></label>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="delivery-check" name="delivery-check">
<label for="delivery-check" id="label-delivery-check" class="custom-control-label mb-0 ml-2" data-i18n="step2.no"></label>
</div>
</div>
</div>
<input id='delivery' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.deliveryplaceholder" />
</div>
</div>
<div class="form-group col-sm-6">
<label for='delivery_description' data-i18n="step2.delivery_description"></label>
<input id='delivery_description' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.delivery_descriptionplaceholder" />
</div>
</div>
<!-- delivery_covid -->
<div class="row mt-2">
<div class="form-group col">
<span class="badge badge-danger">COVID-19</span> <label data-i18n="step2.delivery_covid"></label>
<div class=" form-check-inline">
<div class="custom-control custom-radio">
<input type="radio" id="yes-covid19" name="delivery_covid" class="custom-control-input form-check-input" value='Y'>
<label class="custom-control-label form-check-label" for="yes-covid19" data-i18n="step2.yes"></label>
</div>
<div class="custom-control custom-radio">
<input type="radio" id="no-covid19" name="delivery_covid" class="custom-control-input form-check-input" value='N'>
<label class="custom-control-label form-check-label" for="no-covid19" data-i18n="step2.no"></label>
</div>
</div>
</div>
<!-- delivery_covid -->
<div class="form-group col-sm-6">
<span class="badge badge-danger">COVID-19</span> <label for='delivery_covid_description' data-i18n="step2.delivery_covid_description"></label>
<input id='delivery_covid_description' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.delivery_covid_descriptionplaceholder" />
</div>
</div>
<hr class="my-3">
<!-- takeaway -->
<div class="row">
<div class="form-group col">
<label data-i18n="step2.takeaway"></label>
<div class=" form-check-inline w-100">
<div class="custom-control custom-radio">
<input type="radio" id="yes-takeaway" name="takeaway" class="custom-control-input form-check-input" value='yes'>
<label class="custom-control-label form-check-label" for="yes-takeaway" data-i18n="step2.yes"></label>
</div>
<div class="custom-control custom-radio">
<input type="radio" id="no-takeaway" name="takeaway" class="custom-control-input form-check-input" value='no'>
<label class="custom-control-label form-check-label" for="no-takeaway" data-i18n="step2.no"></label>
</div>
<div class="custom-control custom-radio">
<input type="radio" id="only-takeaway" name="takeaway" class="custom-control-input form-check-input" value='only'>
<label class="custom-control-label form-check-label" for="only-takeaway" data-i18n="step2.only_takeaway"></label>
</div>
</div>
</div>
<div class="form-group col-sm-6">
<label for='takeaway_description' data-i18n="step2.takeaway_description"></label>
<input id='takeaway_description' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.takeaway_descriptionplaceholder" />
</div>
</div>
<!-- takeaway_covid -->
<div class="row mt-2">
<div class="form-group col">
<span class="badge badge-danger">COVID-19</span> <label data-i18n="step2.takeaway_covid"></label>
<div class=" form-check-inline">
<div class="custom-control custom-radio">
<input type="radio" id="yes-takeaway-covid19" name="takeaway_covid" class="custom-control-input form-check-input" value='yes'>
<label class="custom-control-label form-check-label" for="yes-takeaway-covid19" data-i18n="step2.yes"></label>
</div>
<div class="custom-control custom-radio">
<input type="radio" id="no-takeaway-covid19" name="takeaway_covid" class="custom-control-input form-check-input" value='no'>
<label class="custom-control-label form-check-label" for="no-takeaway-covid19" data-i18n="step2.no"></label>
</div>
<div class="custom-control custom-radio">
<input type="radio" id="only-takeaway-covid19" name="takeaway_covid" class="custom-control-input form-check-input" value='only'>
<label class="custom-control-label form-check-label" for="only-takeaway-covid19" data-i18n="step2.only_takeaway"></label>
</div>
</div>
</div>
<!-- takeaway_covid -->
<div class="form-group col-sm-6">
<span class="badge badge-danger">COVID-19</span> <label for='takeaway_covid_description' data-i18n="step2.takeaway_covid_description"></label>
<input id='takeaway_covid_description' type='text' placeholder='' class="form-control" data-i18n="[placeholder]step2.takeaway_covid_descriptionplaceholder" />
</div>
</div>
<button class="btn btn-primary btn-lg w-100 mt-4 text-uppercase" id='collect-data-done' data-i18n="step2.done"></button>
</form>
</div>
<div class='d-none' id='confirm-step'>
<p class="h2 text-success mt-3 mb-4" data-i18n="[html]step3.row1"></p>
<p><span class="h4" data-i18n="step3.row2"></span> <span id='linkcoords'> </span></p>
<p class="alert alert-info" role="alert" data-i18n="[html]step3.row3"></p>
<p><span data-i18n="step3.row4"></span> <a href="#location" onclick="clearFields()" data-i18n="step3.row4a"></a>!
</p>
<div data-i18n="[html]step3.finalmessage"></div>
</div>
<p class="font-weight-light small text-muted mt-4" data-i18n="[html]messages.credits"></p>
</div>
<script src="js/i18n.js"></script>
<script src='js/site.js'></script>
</body>
</html>