-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
407 lines (330 loc) · 17.6 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
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
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description"
content="Aggregatore di sentieri di montagna. Trova i sentieri di montagna più adatti a te senza perdere ore a cercarli sul web.">
<title>Sentieri di montaga, ordinati</title>
<meta name="google-site-verification" content="o5M7B_XWI13dKpoNOPOB6dIG5DHcJZK9vf6RA_-CSzw" />
<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=Fira+Code:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="images/UI/logo/favicon.ico">
<link rel="icon" type="image/png" sizes="192x192" href="images/UI/logo/favicon-192x192.png">
<meta name="theme-color" content="#2F2F2F">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/cards.css">
<link rel="stylesheet" href="css/filters.css">
<link rel="stylesheet" href="css/search.css">
<link rel="stylesheet" href="css/login.css">
<link rel="stylesheet" href="libs/slider/slider.min.css">
<script src="libs/slider/slider.min.js"></script>
<script src="libs/wNumb.min.js"></script>
<script src="libs/splide.min.js"></script>
<script src="https://kit.fontawesome.com/d8c2758a42.js" crossorigin="anonymous"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-storage.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<link href="https://api.mapbox.com/mapbox-gl-js/v2.9.2/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v2.9.2/mapbox-gl.js"></script>
<script src="https://unpkg.com/@turf/turf@6/turf.min.js"></script>
<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">
<script type="text/javascript" src="js/db/database.js"></script>
<script type="text/javascript" src="js/models/Trail.js"></script>
<script type="text/javascript" src="js/models/Enums.js"></script>
<script type="text/javascript" src="js/models/Card.js"></script>
</head>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LY1JSLKG6Z"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-LY1JSLKG6Z');
</script>
<body>
<header id="navbar">
<nav class="navbar-container">
<a href="./" class="home-link">
<div class="navbar-logo"></div>
Sentieri
</a>
<svg class="navbar-toggle ham hamRotate ham8" aria-label="Toggle menu" aria-expanded="false"
viewBox="0 0 100 100" width="80" onclick="this.classList.toggle('opened')">
<path class="line top"
d="m 30,33 h 40 c 3.722839,0 7.5,3.126468 7.5,8.578427 0,5.451959 -2.727029,8.421573 -7.5,8.421573 h -20" />
<path class="line middle" d="m 30,50 h 40" />
<path class="line bottom"
d="m 70,67 h -40 c 0,0 -7.5,-0.802118 -7.5,-8.365747 0,-7.563629 7.5,-8.634253 7.5,-8.634253 h 20" />
</svg>
<div id="navbar-menu" class="detached">
<ul class="navbar-links">
<li class="navbar-item selected"><a class="navbar-link" href="./">Home</a>
</li>
<li class="navbar-item"><a class="navbar-link" href="pages/map/">Mappa</a></li>
<li class="navbar-item"><a class="navbar-link" href="pages/info/">Info</a></li>
<li class="navbar-item new-item hide only-login">
<a class="navbar-link" title="Aggiungi un nuovo sentiero" href="pages/add/">
Aggiungi
</a>
</li>
<!-- <li class="navbar-item"><a class="navbar-link" href="/donations">Donazioni</a></li> -->
<li class="navbar-item account-item">
<div class="log-space">
<button class="login-button" title="Log In per aggiungere e modificare i sentieri"
onclick="GoogleLogin()"><i class="fa-solid fa-user"></i>
</button>
<div class="account-space hide">
<div class="account-content">
<div class="account-image"></div>
<div class="account-info">
<span class="account-name"></span>
<span class="account-lastname"></span>
</div>
<button class="logout-button" title="Log Out" onclick="Logout()"><i
class="fa-solid fa-arrow-right-from-bracket"></i></button>
</div>
</div>
</div>
</li>
</ul>
</div>
</nav>
</header>
<main class="main-area">
<div class="centered">
<div class="sticky">
<form class="search-container">
<input type="text" class="search-bar" placeholder="Ricerca">
<span class="search-icon"> <i class="fa-solid fa-magnifying-glass"></i></span>
</form>
</div>
<div class="filters">
<!-- <li>
<input type="checkbox" id="All" name="categories" value="All" checked>
<label for="All">Tutti</label>
</li> -->
<div>
<input type="checkbox" id="Anello" name="categories" value="Anello">
<label for="Anello">Anello</label>
</div>
<div>
<input type="checkbox" id="Cresta" name="categories" value="Cresta">
<label for="Cresta">Cresta</label>
</div>
<div>
<input type="checkbox" id="Ferrata" name="categories" value="Ferrata">
<label for="Ferrata">Ferrata</label>
</div>
<div>
<input type="checkbox" id="Ciaspole" name="categories" value="Ciaspole">
<label for="Ciaspole">Ciaspole</label>
</div>
<div>
<input type="checkbox" id="Trekking" name="categories" value="Trekking">
<label for="Trekking">Trekking</label>
</div>
<!-- <br> -->
<br>
<div class="other-filters">
<div>
<input type="checkbox" id="Lago" name="categories" value="Lago">
<label for="Lago">Lago</label>
</div>
<div>
<input type="checkbox" id="Fiume" name="categories" value="Fiume">
<label for="Fiume">Fiume</label>
</div>
<div>
<input type="checkbox" id="Cascata" name="categories" value="Cascata">
<label for="Cascata">Cascata</label>
</div>
<div>
<input type="checkbox" id="Ghiacciaio" name="categories" value="Ghiacciaio">
<label for="Ghiacciaio">Ghiacciaio</label>
</div>
<div>
<input type="checkbox" id="Storia" name="categories" value="Storia">
<label for="Storia">Storia</label>
</div>
<div>
<input type="checkbox" id="Rifugio" name="categories" value="Rifugio">
<label for="Rifugio">Rifugio</label>
</div>
<div>
<input type="checkbox" id="Malga" name="categories" value="Malga">
<label for="Malga">Malga</label>
</div>
<div>
<input type="checkbox" id="Bivacco" name="categories" value="Bivacco">
<label for="Bivacco">Bivacco</label>
</div>
<div>
<input type="checkbox" id="Bambini" name="categories" value="Bambini">
<label for="Bambini">Bambini</label>
</div>
<br>
<!-- <br> -->
<div class="filter-box location-filter multiple">
<span class="filter-title"><i class="fa-solid fa-location-dot"></i> Regione</span>
<div>
<input type="checkbox" id="Veneto" name="categories" value="Veneto">
<label for="Veneto">Veneto</label>
</div>
<div>
<input type="checkbox" id="Friuli-Venezia-Giulia" name="categories"
value="Friuli Venezia Giulia">
<label for="Friuli-Venezia-Giulia">Friuli-Venezia
Giulia</label>
</div>
<div>
<input type="checkbox" id="Trentino-Alto-Adige" name="categories"
value="Trentino Alto Adige">
<label for="Trentino-Alto-Adige">Trentino-Alto Adige</label>
</div>
<div>
<input type="checkbox" id="Lombardia" name="categories" value="Lombardia">
<label for="Lombardia">Lombardia</label>
</div>
<!-- <div>
<input type="checkbox" id="Piemonte" name="categories" value="Piemonte">
<label for="Piemonte">Piemonte</label>
</div> -->
</div>
<div class="filter-box difficulty-filter multiple">
<span class="filter-title"> Difficoltà</span>
<div>
<input type="checkbox" id="T" name="categories" value="T">
<label for="T" title="Turistico">T</label>
</div>
<div>
<input type="checkbox" id="E" name="categories" value="E">
<label for="E" title="Escursionistico">E</label>
</div>
<div>
<input type="checkbox" id="EE" name="categories" value="EE">
<label for="EE" title="Escursionisti Esperti">EE</label>
</div>
<div>
<input type="checkbox" id="EEA" name="categories" value="EEA">
<label for="EEA" title="Escursionisti Esperti con Attrezzature">EEA</label>
</div>
<div>
<input type="checkbox" id="EAI" name="categories" value="EAI">
<label for="EAI" title="Escursionisti in Ambiente Innevato">EAI</label>
</div>
<br>
<div>
<input type="checkbox" id="EEA-F" name="categories" value="EEA-F">
<label for="EEA-F" title="Ferrata Facile">EEA-F</label>
</div>
<div>
<input type="checkbox" id="EEA-D" name="categories" value="EEA-D">
<label for="EEA-D" title="Ferrata Difficile">EEA-D</label>
</div>
</div>
<br>
<div class="filter-sliders">
<div class="filter-box duration-filter">
<span class="filter-title"><i class="fa-solid fa-clock"></i> Durata</span>
<form action="">
<input type="number" class="min-duration"> <span>h</span>
<span class="filter-spacer"> - </span>
<input type="number" class="max-duration"> <span>h</span>
<div class="plus plus-duration">+</div>
</form>
<div class="slider" id="slider-duration"></div>
</div>
<div class="filter-box trail-length-filter">
<span class="filter-title"><i class="fa-solid fa-route"></i> Lunghezza</span>
<form action="">
<input type="number" class="min-trail-length"> <span>km</span>
<span class="filter-spacer"> - </span>
<input type="number" class="max-trail-length"> <span>km</span>
<div class="plus plus-trail-length">+</div>
</form>
<div class="slider" id="slider-trail-length"></div>
</div>
<div class="filter-box elevation-gain-filter">
<span class="filter-title"> Dislivello</span>
<form action="">
<input type="number" class="min-elevation-gain"> <span>m</span>
<span class="filter-spacer"> - </span>
<input type="number" class="max-elevation-gain"> <span>m</span>
<div class="plus plus-elevation-gain">+</div>
</form>
<div class="slider" id="slider-elevation-gain"></div>
</div>
</div>
<br>
</div>
<button class="toggle-filters" title="Altri filtri">
<i class="fa-solid fa-angle-down"></i>
</button>
</div>
<div class="orderBy-container hide">
<label class="orderBy" for="slct">
<select id="slct" required="required">
<option value="date" selected="selected">Data</option>
<option value="duration">Durata</option>
<option value="length">Lunghezza</option>
<option value="elevation_gain">Dislivello</option>
<option value="max_altitude">Altitudine</option>
<option value="distance">Viaggio</option>
<!-- <option value="favorite">Preferiti</option> -->
</select>
<span>
<i class="fa-solid fa-angle-down"></i>
</span>
</label>
<div class="position-container">
<div class="position-bar" spellcheck="false" id="geocoder"></div>
<!-- <div id="geocoder"></div> -->
<!-- <input type="text" class="position-bar" placeholder="Posizione"> -->
<!-- <span class="position-icon"> <i class="fa-solid fa-magnifying-glass"></i></span> -->
</div>
<button class="order" title="Ordine crescente/decrescente">
<i class="fa-solid fa-arrow-down-short-wide"></i>
</button>
<div class="quantity-label">
<span class="quantity-number">0</span> sentieri
</div>
<!-- <pre id="result"></pre> -->
</div>
</div>
<div class="centered">
<section class="cards">
</section>
<div class="loading">
<!-- Loading -->
<span class="loading-icon">
<!-- <i class="fa-solid fa-circle-notch"></i> -->
◠
</span>
</div>
<span class="no-result">Nessun risultato</span>
<img class="work_in_progress" src="images/work_in_progress.svg" alt="Work in progress">
</div>
<div class="card-big-container">
<div class="card-big">
<button class="close-button"><i class="fa-solid fa-xmark"></i></button>
<div class="card-big-content">
</div>
</div>
</div>
<button class="goto-button hide" onclick="goToTop()"><i class="fa-solid fa-angle-up"></i></button>
</main>
<script src="js/geocode.js"></script>
<script src="js/main.js"></script>
<script src="js/cards.js"></script>
<script src="js/search.js"></script>
<script src="js/login.js"></script>
<script src="js/scraping.js"></script>
</body>
</html>