This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
90 lines (82 loc) · 3.71 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
<!doctype html>
<html>
<head>
<title>Veggiekarte.de - Hier findet man Vegetarisches und Veganes</title>
<meta charset="utf-8" />
<meta name="description" content="A map to find vegetarian and vegan restaurants in your city." />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<!-- Favicon (build with https://realfavicongenerator.net) -->
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png" />
<link rel="mask-icon" href="favicon/safari-pinned-tab.svg" color="#26ab44" />
<link rel="shortcut icon" href="favicon/favicon.ico" />
<meta name="msapplication-TileColor" content="#26ab44" />
<meta name="msapplication-config" content="favicon/browserconfig.xml" />
<meta name="theme-color" content="#26ab44" />
<!-- Manifest -->
<link rel="manifest" href="manifest.json" />
<!-- Third party styles -->
<link rel="stylesheet" href="third-party/leaflet/leaflet.css" />
<link rel="stylesheet" href="third-party/leaflet.markercluster/MarkerCluster.css" />
<link rel="stylesheet" href="third-party/leaflet.markercluster/MarkerCluster.Default.css" />
<link rel="stylesheet" href="third-party/leaflet.control.geocoder/Control.Geocoder.css" />
<link rel="stylesheet" href="third-party/leaflet.locatecontrol/L.Control.Locate.min.css" />
<link rel="stylesheet" href="third-party/leaflet.easybutton/easy-button.css" />
<link rel="stylesheet" href="third-party/leaflet.fullscreen/Control.FullScreen.css" />
<link rel="stylesheet" href="third-party/leaflet.languageselector/leaflet.languageselector.css" />
<!-- Own style -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div>
<!-- Info box -->
<div id="information">
<div id="close" onclick="toggleInfo()">✖</div>
<div id="spinner"></div>
<div id="content">
<h1 id="content-welcome-heading"></h1>
<p id="content-welcome-text"></p>
<h1 id="content-osm-heading"></h1>
<p id="content-osm-text"></p>
<h1 id="content-contribute-heading"></h1>
<p id="content-contribute-text"></p>
<h1 id="content-reviews-heading"></h1>
<p id="content-reviews-text"></p>
<h1 id="content-further-heading"></h1>
<p id="content-further-text"></p>
</div>
</div>
<!-- Map -->
<div id="map"></div>
</div>
<!-- Content if scripts are disabled or not supported. -->
<noscript>
<p style="text-align: center">⚠️ This application requires JavaScript. ⚠️</p>
</noscript>
<!-- App script -->
<script src="js/veggiemap.js" type="module"></script>
<!-- Service worker -->
<script>
// Check if service workers are supported
if ("serviceWorker" in navigator) {
if (navigator.serviceWorker.controller) {
console.log("[PWA Builder] active service worker found, no need to register");
} else {
// Use the window load event to keep the page load performant
window.addEventListener("load", () => {
// Register the service worker
navigator.serviceWorker
.register("service-worker.js")
.then((registration) => {
console.log("Service Worker registered with scope:", registration.scope);
})
.catch((err) => {
console.error("Registration failed.", err);
});
});
}
}
</script>
</body>
</html>