-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
235 lines (225 loc) · 9.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="referrer" content="strict-origin" />
<title>Ciekawe Katowice - zanurz się w historii</title>
<meta name="title" content="Ciekawe Katowice - zanurz się w historii" />
<meta name="keywords" content="Katowice, Ciekawostki, Zabytki" />
<meta
name="description"
content="Katowice w jednym miejscu: mapa turystyczna, historia, kulturę, zabytki i wiele innych. Znajdź ciekawostki, planuj trasy i odkrywaj nieznane zakątki miasta. Idealne dla miłośników historii i turystów poszukujących nowych wrażeń."
/>
<meta name="twitter:card" content="summary" />
<meta property="og:image" content="https://konradowypl.github.io/katowice/assets/logo.png" />
<link rel="shortcut icon" href="./assets/logo.png" />
<!-- CSS -->
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/font/bootstrap-icons.css" />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap"
/>
<!-- JS -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" defer></script>
<script
src="./src/script.js"
type="module"
defer
crossorigin="anonymous"
onerror="document.getElementById('loadingStatus').innerText = 'Nie udało się załadować aplikacji. Sprawdź swoje połączenie z internetem.'"
></script>
<link rel="modulepreload" href="./src/main.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/placeinfo.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/swipe.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/mainmenu.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/map.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/routes.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/marker.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/geolocation.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/urlMenager.js" crossorigin="anonymous" />
<link rel="modulepreload" href="./src/loader.js" crossorigin="anonymous" />
<!-- Fonts -->
<link
rel="preload"
href="https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="https://fonts.gstatic.com/s/inter/v18/UcC53FwrK3iLTcvneQg7Ca725JhhKnNqk6L5UUM.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="https://fonts.gstatic.com/s/inter/v18/UcC53FwrK3iLTcvneQg7Ca725JhhKnNqk6L3UUMJng.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<!-- Images -->
<link rel="preload" as="image" href="./assets/mapBg.png" />
<!-- Fetch -->
<link rel="preload" as="fetch" fetchPriority="low" href="./PLACES/routes.json" crossorigin />
<link rel="preload" as="fetch" fetchPriority="low" href="./PLACES/data.json" crossorigin />
<link rel="preconnect" href="https://tile.openstreetmap.org" />
</head>
<body>
<!-- logo -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none">
<symbol id="logo" viewBox="0 0 24 24" fill="none">
<path
d="M9 20L3 17V4L5 5M9 20L15 17M9 20V14M15 17L21 20V7L19 6M15 17V14M15 6.2C15 7.96731 13.5 9.4 12 11C10.5 9.4 9 7.96731 9 6.2C9 4.43269 10.3431 3 12 3C13.6569 3 15 4.43269 15 6.2Z"
stroke="currentcolor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
<path
d="M12 6H12.01M15 6.2C15 7.96731 13.5 9.4 12 11C10.5 9.4 9 7.96731 9 6.2C9 4.43269 10.3431 3 12 3C13.6569 3 15 4.43269 15 6.2Z"
stroke="#bc2727"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</symbol>
</svg>
<div
id="loading"
style="
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: #105203;
z-index: 99999999;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: #fff;
font-family: Verdana, 'Trebuchet MS', Arial, monospace;
gap: 50px;
"
>
<svg viewBox="0 0 24 24" width="150px" style="overflow: visible">
<circle cx="12" cy="12" r="15" fill="#13740050"></circle>
<use href="#logo" style="color: #137400"></use>
</svg>
<div id="loadingStatus">Ładowanie...</div>
</div>
<div class="mainContainer">
<div id="mainmenu" class="hidden">
<div class="menucontainer" id="menucontainer">
<a href="#map" class="backgroundMapImage" id="backgroundMapImage" aria-label="Przejdź do mapy"></a>
<a href="#map" class="appTitle" id="appTitle" style="--scale: 0" aria-label="Przejdź do mapy">
<span><span>Ciekawe Katowice</span> <span>- zanurz się w historii</span></span>
<svg><use href="#logo"></use></svg>
</a>
<div class="userinfo">
<section id="locationBox">
<b><i>Uwaga: Aplikacja wymaga posiadania włączonej lokalizacji, aby działać poprawnie!</i></b>
</section>
<section class="badges">
<div id="badges"></div>
<div id="badgeInfo"></div>
</section>
<section class="visited">
<div class="sectionTitle">Miejsca, które odwiedziłeś:</div>
<ul id="visited"></ul>
</section>
<section class="nonVisited visited">
<div class="sectionTitle">Miejsca, o których możesz nie wiedzieć:</div>
<ul id="nonVisited"></ul>
</section>
<section class="routes">
<div class="sectionTitle">Trasy i więcej:</div>
<div id="routesObj"></div>
</section>
<section class="discreption">
<div class="sectionTitle">Oznaczenia kolorów pinezek na mapie:</div>
<ul>
<li color="gray">Pomniki</li>
<li color="violet">Kościoły i Katedry</li>
<li color="blue">Muzea</li>
<li color="red">Atrakcje i inne</li>
</ul>
</section>
<section class="qr-code-section">
<a class="share" href="javascript:shareApp()">
<div>Udostępnij!</div>
<i class="bi bi-share-fill" width="20px" height="20px"></i>
<i class="bi bi-copy" width="20px" height="20px"></i>
</a>
<img
class="qr-code"
loading="lazy"
fetchPriority="low"
src="./assets/qr-code.png"
alt="Tu powinienen być kod QR. Spróbuj odświerzyć stronę."
/>
<div class="qr-code-link">https://konradowypl.github.io/katowice</div>
</section>
<section class="info">
<div>
Ta strona używa map
<a href="https://www.openstreetmap.org" target="_blank">openstreetmap.org</a>
<a href="https://www.openstreetmap.org/about">Dowiedz się więcej</a>
</div>
<div id="dev">Zrobione na projekt na BIZ kompletnie za darmo.</div>
</section>
</div>
</div>
</div>
<div id="map"></div>
<a id="backButton" href="#mainmenu" aria-label="Przejdź do menu głównego">
<svg
width="100%"
height="100%"
viewBox="0 0 1024 1024"
xmlns="http://www.w3.org/2000/svg"
stroke="#ffffff"
stroke-width="80"
>
<path
d="M669.6 849.6c8.8 8 22.4 7.2 30.4-1.6s7.2-22.4-1.6-30.4l-309.6-280c-8-7.2-8-17.6 0-24.8l309.6-270.4c8.8-8 9.6-21.6 2.4-30.4-8-8.8-21.6-9.6-30.4-2.4L360.8 480.8c-27.2 24-28 64-0.8 88.8l309.6 280z"
fill=""
></path>
</svg>
</a>
<div id="tooltips" style="height: 0; transition: 300ms">
<div class="tooltipsSwipeContainer" id="tooltipsSwipeButton">
<div class="tooltipsSwipeButton"></div>
</div>
<div class="placeInfo" id="placeData">
<div id="placeName"></div>
<div id="placeContact"></div>
<div id="placeSummary"></div>
<div id="placeImages"></div>
<div id="placeShort"></div>
<div id="placeInfo"></div>
<a class="share" href="javascript:share()">
<div>Udostępnij!</div>
<i class="bi bi-share-fill" width="20px" height="20px"></i>
<i class="bi bi-copy" width="20px" height="20px"></i>
</a>
</div>
</div>
</div>
<div id="imagePreview"></div>
</body>
</html>