-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (50 loc) · 2.19 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Aurelia App</title>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<meta name='description' content='An Air horn. Probably the best air horn web app there is.'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='manifest' href='manifest.json'>
<meta name='mobile-web-app-capable' content='yes'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta name='application-name' content='Air Horner'>
<meta name='apple-mobile-web-app-status-bar-style' content='black'>
<meta name='apple-mobile-web-app-title' content='Aurelia PWA'>
<link rel='icon' sizes='192x192' href='/images/touch/android-launchericon-192-192.png'>
<link rel='apple-touch-icon' href='/images/touch/android-launchericon-192-192.png'>
<meta name='msapplication-TileImage' content='/images/touch/android-launchericon-144-144.png'>
<meta name='msapplication-TileColor' content='#FFFFFF'>
<meta name='theme-color' content='#FFFFFF'>
<link rel='stylesheet' href='styles/main.css'>
<link rel="stylesheet" href="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/css/ol.css" type="text/css" />
</head>
<body>
<script src='https://unpkg.com/[email protected]'></script>
<script src="https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.3.0/build/ol.js"></script>
<script>
if (navigator.serviceWorker.controller) {
console.log('[PWA Builder] active service worker found, no need to register')
} else {
// Register the ServiceWorker
navigator.serviceWorker.register('/sw.js', {
scope: './'
}).then(function(reg) {
console.log('Service worker has been registered for scope:'+ reg.scope);
});
}
const aurelia = new au.Aurelia();
aurelia
.use
.standardConfiguration()
.developmentLogging();
aurelia
.start()
.then(() => aurelia.setRoot('app.js', document.body))
.catch(ex => {
document.body.textContent = `Bootstrap error: ${ex}`;
});
</script>
</body>
</html>