forked from enjikaka/glaskogenkartan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (75 loc) · 3.69 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
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preload" href="data/sgog/s/collection.json" as="fetch">
<link rel="preload" href="dist/libs/webact.js" as="script">
<link rel="preload" href="dist/components/folklore-article.js" as="script">
<link rel="preload" href="dist/components/folklore-article.css" as="style">
<link rel="preload" href="dist/components/lantmateriet-karta.js" as="script">
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap" rel="stylesheet">
<title>Runstigen</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" media="not all" onload="if (media != 'all') media = 'all'">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Chelsea+Market&family=Muli:wght@300;400&display=swap" media="not all" onload="if (media != 'all') media = 'all'">
<link rel="stylesheet" href="dist/app.css">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="manifest.json">
<link rel="mask-icon" href="img/safari-pinned-tab.svg" color="#1d1d1b">
<link rel="shortcut icon" href="img/favicon.ico">
<meta name="theme-color" content="#1d1d1b">
<link href="https://fonts.googleapis.com/css2?family=PT+Serif:ital@0;1&display=swap" rel="stylesheet">
</head>
<body>
<lantmateriet-karta></lantmateriet-karta>
<glaskogencard-buy></glaskogencard-buy>
<folklore-article></folklore-article>
<script type="importmap">
{
"imports": {
"webact": "/dist/libs/webact.js",
"leaflet": "/dist/libs/leaflet.js",
"leaflet.markercluster": "/dist/libs/leaflet.markercluster.js"
}
}
</script>
<script src="dist/app.js" type="module"></script>
<script>
if ('serviceWorker' in navigator && document.location.href.indexOf('localhost') === -1) {
navigator.serviceWorker.register('sw.js').then(function (reg) {
reg.onupdatefound = function () {
var installingWorker = reg.installing;
installingWorker.onstatechange = function () {
switch (installingWorker.state) {
case 'installed':
if (navigator.serviceWorker.controller) {
// At this point, the old content will have been purged and the fresh content will
// have been added to the cache.
// It's the perfect time to display a "New content is available; please refresh."
// message in the page's interface.
console.log('New or updated content is available.');
document.location.reload();
} else {
// At this point, everything has been precached.
// It's the perfect time to display a "Content is cached for offline use." message.
console.log('Content is now available offline!');
}
break;
case 'redundant':
console.error('The installing service worker became redundant.');
break;
}
};
};
}).
catch(function (e) {
console.error('Error during service worker registration:', e);
});
}
</script>
</body>
</html>