This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (59 loc) · 1.92 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
<!doctype html>
<html lang="en">
<head>
<script>
// This little piece of code ensures that app dependencies are always loaded from the app's root path whatever URL they're loaded from (will be a subpath if the user changes the URL manually)
if (!localStorage.getItem('app-path'))
localStorage.setItem('app-path', location.pathname);
(function() {
var base = document.createElement('base');
base.href = localStorage.getItem('app-path');
document.head.insertBefore(base, document.head.firstChild);
})();
</script>
<meta charset="utf-8">
<meta name="description" content="Discovering Progressive Web App(s) by building one using Polymer 2, Service Workers etc.">
<meta name="theme-color" content="#0D47A1">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>test-pwa</title>
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
<link rel="manifest" href="manifest.json">
<link rel="import" href="src/test-pwa-app.html">
</head>
<body>
<!-- JavaScript is enabled -->
<test-pwa-app></test-pwa-app>
<script>
window.app = document.querySelector('test-pwa-app');
window.mainFragment = app.$.mainFragment;
window.splashFragment = app.$.splashFragment;
</script>
<style>
body {
background: #eeeeee;
height: 100%;
margin: 0;
}
html {
height: 100%;
}
</style>
<!-- JavaScript is NOT enabled -->
<noscript>
<style>
noscript {
text-align: center;
}
noscript > div {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
}
</style>
<div>
<p>You must have JavaScript enabled to use this web app.</p>
</div>
</noscript>
</body>
</html>