-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (92 loc) · 3.84 KB
/
index.html
File metadata and controls
101 lines (92 loc) · 3.84 KB
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
<!DOCTYPE html>
<html lang="en" translate="no">
<head>
<title>MapSwipe Dashboard</title>
<style>
html, body {
margin: 0;
padding: 0;
}
body {
position: relative;
width: 100vw;
height: 100vh;
font-family: 'Noto Sans', sans-serif;
}
* {
box-sizing: border-box;
scrollbar-color: var(--color-scrollbar-foreground) var(--color-scrollbar-background);
scrollbar-width: thin;
}
::-webkit-scrollbar {
background-color: var(--color-scrollbar-background);
width: var(--width-scrollbar);
height: var(--width-scrollbar);
background-color: var(--color-scrollbar-background);
}
::-webkit-scrollbar-track {
background-color: var(--color-scrollbar-background);
}
::-webkit-scrollbar-thumb {
border-radius: var(--radius-scrollbar-border);
background-color: var(--color-scrollbar-foreground);
}
#app-container {
position: relative;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<noscript>
Mapswipe Dashboard needs JS.
</noscript>
<div id="app-container"></div>
<script
type="module"
src="/app/index.tsx"
></script>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&display=swap" rel="stylesheet">
<!-- Start of service-worker -->
<!--
<script>
if ('serviceWorker' in navigator && '<%= process.env.NODE_ENV %>' === 'production') {
window.addEventListener('load', () => {
navigator.serviceWorker
.register('/service-worker.js')
.then((registration) => {
console.info('SW registered: ', registration);
registration.onupdatefound = () => {
const installingWorker = registration.installing;
installingWorker.onstatechange = () => {
switch (installingWorker.state) {
case 'installed':
if (navigator.serviceWorker.controller) {
// New update is available
console.info('SW: New update is available!');
const shouldUpdate = window.confirm('New update is available. Do you want to update now?');
if (shouldUpdate) {
window.location.reload(true);
}
} else {
// No new update
console.info('SW: No new updates!');
}
break;
default:
break;
}
};
};
})
.catch((registrationError) => {
console.error('SW registration failed: ', registrationError);
});
});
}
</script>
-->
<!-- End of service-worker -->
</body>
</html>