forked from MarkPrys/Friedrichssegen-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
104 lines (93 loc) · 4.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Friedrichssegen App</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
/>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="A customized map viewer with GPS integration" />
<meta name="author" content="movisda GmbH" />
<!-- faviocon, check https://realfavicongenerator.net -->
<link rel="apple-touch-icon" sizes="180x180" href="logo/logo-180.png" />
<link rel="icon" type="image/png" sizes="32x32" href="logo/logo-32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="logo/logo-16.png" />
<link rel="mask-icon" href="logo/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="logo/favicon.ico" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="msapplication-config" content="logo/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
<!-- css dependencies -->
<link rel="manifest" href="manifest.json" />
<link rel="apple-touch-icon" href="logo/logo-180.png" />
<link rel="icon" type="image/png" sizes="32x32" href="logo/logo-32.png" />
<link rel="stylesheet" href="vendor/leaflet-1.9.4/leaflet.css" />
<link rel="stylesheet" href="vendor/leaflet-locatecontrol-0.79.0/L.Control.Locate.min.css" />
<link rel="stylesheet" href="vendor/icomoon-v1.0/style.css" />
<link rel="stylesheet" href="vendor/leaflet-responsive-popup-1.0.0/leaflet.responsive.popup.css" />
<link rel="stylesheet" href="css/app.css" />
</head>
<body>
<!-- <pwa-install id="installComponent"></pwa-install> -->
<main id="map">
<div class="progress" id="progress-bar">
<div class="indeterminate"></div>
</div>
</main>
<button class="leaflet-button" id="install-button" style="display: none"></button>
<!-- initialize error reporting -->
<script src="vendor/sentry-8.2.1/bundle.min.js"></script>
<script>
let VERSION = "0.9.8";
Sentry.init({
dsn: "https://[email protected]/1",
release: VERSION,
tracesSampleRate: 0.01,
/*
transport: Sentry.makeBrowserOfflineTransport(Sentry.makeFetchTransport),
transportOptions: {
dbName: "sentry-offline",
storeName: "queue",
maxQueueSize: 30,
flushAtStartup: false,
},
*/
});
</script>
<!-- source dependencies -->
<script src="vendor/localForage-1.10.0/localforage.min.js"></script>
<script src="vendor/leaflet-1.9.4/leaflet.js"></script>
<script src="vendor/leaflet-locatecontrol-0.79.0/L.Control.Locate.min.js"></script>
<script src="vendor/leaflet-mapcentercoord-0.7/L.Control.MapCenterCoord.js"></script>
<script src="vendor/leaflet-utm-1.0.0/L.LatLng.UTM.js"></script>
<script src="vendor/pmtiles-2.11.0/index.js"></script>
<script src="vendor/sweetalert2-11.10.2/sweetalert2.all.min.js"></script>
<script src="vendor/i18next-23.10.1/i18next.min.js"></script>
<script src="vendor/loglevel-1.9.1/loglevel.js"></script>
<script src="vendor/pdfjs-viewer-element-2.6.3/pdfjs-viewer-element.js"></script>
<script src="vendor/leaflet-responsive-popup-1.0.0/leaflet.responsive.popup.js"></script>
<script src="js/maps.js"></script>
<script src="js/app.js"></script>
<script type="module">
import { Workbox } from "./vendor/workbox-7.0.0/workbox-window.prod.mjs";
if ("serviceWorker" in navigator) {
const wb = new Workbox("./service-worker.js");
wb.addEventListener("activated", (event) => {
handleStatusEvent({ type: "APP_STATUS", message: "started", update: event.isUpdate });
});
wb.addEventListener("installed", (event) => {
handleStatusEvent({ type: "APP_STATUS", message: "installed" });
});
wb.addEventListener("waiting", (event) => {
handleStatusEvent({ type: "APP_STATUS", message: "waiting" });
});
wb.register();
}
</script>
<noscript>This website requires JavaScript!</noscript>
</body>
</html>