-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
157 lines (128 loc) · 5.25 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!doctype html>
<html lang="en" itemscope itemtype="http://schema.org/Event">
<head>
<base href="{$ basepath $}">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<meta name="description" content="{$ description $}">
<meta name="keywords" content="{$ keywords $}">
<meta name="author" content="{$ organizer.name $}">
<meta name="generator" content="Project Hoverboard">
<title>{$ title $}</title>
<link rel="canonical" href="{$ url $}">
<link rel="icon" href="images/favicon.ico">
<meta name="theme-color" content="{$ webapp.themeColor $}">
<link rel="manifest" href="manifest.json">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<!-- fallback for manifest.json -->
<meta name="application-name" content="{$ title $}">
<!-- fallback for manifest.json -->
<!-- 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="{$ title $}">
<!-- Homescreen icons. -->
<link rel="apple-touch-icon" href="images/manifest/icon-48.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/manifest/icon-72.png">
<link rel="apple-touch-icon" sizes="96x96" href="images/manifest/icon-96.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/manifest/icon-144.png">
<link rel="apple-touch-icon" sizes="192x192" href="images/manifest/icon-192.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="images/manifest/icon-144.png">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="msapplication-tap-highlight" content="no">
<!-- G+ sharing meta data -->
<meta itemprop="name" content="{$ title $}">
<meta itemprop="description" content="{$ description $}">
<meta itemprop="image" content="images/social-share.jpg">
<meta itemprop="startDate" content="{$ startDate $}">
<meta itemprop="endDate" content="{$ endDate $}">
<!-- Facebook sharing meta data -->
<meta property="og:title" content="{$ title $}">
<meta property="og:site_name" content="{$ title $}">
<meta property="og:type" content="website">
<meta property="og:url" content="{$ url $}">
<meta property="og:description" content="{$ description $}">
<meta property="og:type" content="Event">
<meta property="og:image" content="images/social-share.jpg">
<meta property="og:image:type" content="image/jpeg" />
<!-- Twitter meta data -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@{$ organizer.twitter $}">
<meta name="twitter:title" content="{$ title $}">
<meta name="twitter:description" content="{$ description $}">
<meta name="twitter:image" content="images/social-share.jpg">
<link rel="dns-prefetch" href="https://www.google-analytics.com">
<link rel="dns-prefetch" href="https://apis.google.com">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<script>
window.Polymer = { rootPath: '{$ basepath $}' };
// Load and register pre-caching Service Worker
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register(`service-worker.js`, {
scope: Polymer.rootPath,
});
});
}
function loadFirebaseModule() {
return new Promise((resolve) => {
const script = document.createElement('script');
script.src = `bower_components/firebase/firebase.js`;
script.async = true;
script.onload = () => resolve();
script.onerror = () => {
throw new Error();
};
document.head.appendChild(script);
});
}
loadFirebaseModule()
.then(() => {
firebase.initializeApp({
apiKey: '{$ firebase.apiKey $}',
authDomain: '{$ firebase.authDomain $}',
databaseURL: '{$ firebase.databaseURL $}',
projectId: '{$ firebase.projectId $}',
storageBucket: '{$ firebase.storageBucket $}',
messagingSenderId: '{$ firebase.messagingSenderId $}',
});
});
</script>
<script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>
<link rel="import" href="src/hoverboard-app.html">
<style>
body {
margin: 0;
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
min-height: 100vh;
}
/* styling for render while resources are loading */
hoverboard-app[unresolved] {
padding: 0 16px;
display: block;
min-height: 101vh;
line-height: 68px;
text-align: center;
font-weight: 600;
letter-spacing: 0.3em;
color: #202020;
overflow: visible;
}
</style>
</head>
<body>
<hoverboard-app unresolved>{$ title $}</hoverboard-app>
<noscript>
Please enable JavaScript to view this website.
</noscript>
<script>
window.performance && performance.mark && performance.mark('index.html');
</script>
</body>
</html>