-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.TEMPLATE.html
113 lines (110 loc) · 5.38 KB
/
index.TEMPLATE.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
105
106
107
108
109
110
111
112
113
<!--
@license
Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<!doctype html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=@GOOGLE_ANALYTICS@"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '@GOOGLE_ANALYTICS@');
</script>
<meta charset="utf-8">
<title>@TITLE@</title>
<meta name="generator" content="PWA Starter Kit">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="@DESCRIPTION@">
<!--
The `<base>` tag below is present to support two advanced deployment options:
1) Differential serving. 2) Serving from a non-root path.
Instead of manually editing the `<base>` tag yourself, you should generally either:
a) Add a `basePath` property to the build configuration in your `polymer.json`.
b) Use the `--base-path` command-line option for `polymer build`.
-->
<base href="/">
<!-- INJECT-META-HERE -->
<meta name="application-name" content="@APP_TITLE@">
<meta property="og:image" content="/images/apple-touch-icon.png">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="My App">
<!-- Homescreen icons -->
<!-- Tile icon for Windows 8 (144x144 + tile color) -->
<!-- Default twitter cards -->
<meta name="twitter:card" content="summary">
<meta property="og:type" content="website">
<!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
<script>
/* SERVICE-WORKER-START*/
// Load and register pre-caching Service Worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('service-worker.js', {
scope: '/',
}).then(reg => {
//Based on this stack overflow answer: https://stackoverflow.com/questions/41891031/refresh-page-on-controllerchange-in-service-worker/41896649#41896649
reg.onupdatefound = () => {
const installingWorker = reg.installing;
installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed' && navigator.serviceWorker.controller) {
// Preferably, display a message asking the user to reload...
location.reload();
}
};
};
})
});
}
/* SERVICE-WORKER-END */
// Redux assumes `process.env.NODE_ENV` exists in the ES module build.
// https://github.com/reactjs/redux/issues/2907
window.process = { env: { NODE_ENV: 'production' } };
</script>
<!-- Add any global styles for body, document, etc. -->
<!-- <link rel='stylesheet' href='fonts/fonts.css'> -->
<style>
@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700');
body {
margin: 0;
/* This is a font-stack that tries to use the system-default sans-serifs first */
font-family: 'Source Sans Pro',Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
line-height: 1.5;
min-height: 100vh;
-webkit-font-smoothing: antialiased;
/* app-dark-text-color from card-web-app, to make sure the extra regions on an iphone in landscape are colored correctly */
background-color: #7f7f7f;
}
</style>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5e2b97">
<link rel="shortcut icon" href="/images/favicon.ico">
<meta name="msapplication-TileColor" content="#603cba">
<meta name="msapplication-TileImage" content="/images/mstile-144x144.png">
<meta name="msapplication-config" content="/images/browserconfig.xml">
<meta name="theme-color" content="#ffffff"></head>
<body>
<card-web-app></card-web-app>
<noscript>
Please enable JavaScript to view this website.
</noscript>
<!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<!-- Built with love using PWA Starter Kit -->
<script type="module" src="lib/src/components/card-web-app.js"></script>
</body>
</html>