forked from gdg-x/hoverboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
365 lines (330 loc) · 12.1 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<!doctype html>
<html lang="en" itemscope prefix="og: http://ogp.me/ns#"
>
<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="https://2019.foss4g-oceania.org/">
<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">
<!-- OpenGraph metadata -->
<meta property="og:title" content="{$ title $}">
<meta property="og:site_name" content="{$ title $}">
<meta property="og:type" content="website">
<meta property="og:url" content="https://2019.foss4g-oceania.org/">
<meta property="og:description" content="{$ description $}">
<meta property="og:type" content="Event">
<meta property="og:image" content="{$ image if image.startsWith('http') else ('https://2019.foss4g-oceania.org/' + image) $}">
<meta property="og:image:type" content="image/jpeg"/>
<!-- Twitter Card metadata -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@{$ organizer.twitter $}">
<meta name="twitter:label1" value="{$ location.label $}">
<meta name="twitter:data1" value="{$ location.name $}">
<meta name="twitter:label2" value="">
<meta name="twitter:data2" value="{$ location.city $}">
<link rel="dns-prefetch" href="https://apis.google.com">
<link rel="preconnect" href="https://www.google-analytics.com">
<link rel="preconnect" href="https://fcm.googleapis.com">
<link rel="preconnect" href="https://firestore.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<script>
window.Polymer = { rootPath: '{$ basepath $}' };
window.HOVERBOARD = { Elements: {} };
function loadFirebaseModules(modules) {
return Promise.all(
modules.map((module) => new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = `bower_components/firebase/${module}.js`;
script.async = false;
script.onload = () => resolve();
script.onerror = () => reject();
document.head.appendChild(script);
})));
}
function callOnCompleteLoad(func) {
document.addEventListener('DOMContentLoaded', () => {
func();
});
}
function appendApp() {
requestAnimationFrame(() => {
const app = document.createElement('hoverboard-app');
document.body.appendChild(app);
});
}
function loadHoverboardApp() {
const readyState = document.readyState;
if (readyState === 'interactive') {
appendApp();
} else {
callOnCompleteLoad(appendApp);
}
}
loadFirebaseModules([
'firebase-app',
'firebase-firestore',
'firebase-auth',
'firebase-messaging',
])
.then(() => {
firebase.initializeApp({
apiKey: '{$ firebase.apiKey $}',
authDomain: '{$ firebase.authDomain $}',
databaseURL: '{$ firebase.databaseURL $}',
projectId: '{$ firebase.projectId $}',
storageBucket: '{$ firebase.storageBucket $}',
messagingSenderId: '{$ firebase.messagingSenderId $}',
});
const firestore = firebase.firestore();
firestore.settings({});
firebase.firestore()
.enablePersistence({ experimentalTabSynchronization: true })
.catch(() => {
console.warn('DB offline support not available'); // eslint-disable-line no-console
});
// eslint-disable-next-line no-console
console.log('Firebase App is ready!');
})
.then(() => loadHoverboardApp());
</script>
<script src="bower_components/webcomponentsjs/webcomponents-loader.js" type="application/javascript"></script>
<link rel="import" href="src/hoverboard-app.html">
<script src="scripts/service-worker-registration.js" async defer></script>
<style>
html, body {
min-height: 100%;
height: 100%;
}
body {
margin: 0;
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
background-color: #F6E9E2;
}
*,
*:before,
*:after {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
/* styling for render while resources are loading */
hoverboard-app[unresolved] {
padding: 0 16px;
display: block;
line-height: 68px;
text-align: center;
font-weight: 600;
letter-spacing: 0.3em;
color: #202020;
overflow: visible;
}
</style>
<script id="mcjs">
!function ( c, h, i, m, p ) {
m = c.createElement(h);
p = c.getElementsByTagName(h)[0];
m.async = 1;
m.src = i;
p.parentNode.insertBefore(m, p);
}(
document,
'script',
'https://chimpstatic.com/mcjs-connected/js/users/'
+ '26f3c80da46835144592b59b6/2df9527db2bb2e3b490841d41.js'
);
</script>
<script type="application/ld+json">
{
"@context": "https://www.schema.org",
"@type": "Event",
"name": "FOSS4G-SotM Oceania 2019",
"url": "https://2019.foss4g-oceania.org/",
"description": "FOSS4G Oceania Conference",
"startDate": "2019-11-12T09:00:00+12:00",
"endDate": "2019-11-15T17:00:00+12:00",
"performer": {
"@type": "Organization",
"email": "[email protected]",
"ethicsPolicy": "https://2019.foss4g-oceania.org/cod",
"name": "FOSS4G Oceania",
"url": "https://foss4g-oceania.org/",
"slogan": "The Stars to Guide You"
},
"image": [
"https://2019.foss4g-oceania.org/images/manifest/icon-48.png",
"https://2019.foss4g-oceania.org/images/manifest/icon-72.png",
"https://2019.foss4g-oceania.org/images/manifest/icon-144.png",
"https://2019.foss4g-oceania.org/images/manifest/icon-192.png",
"https://2019.foss4g-oceania.org/images/manifest/icon-512.png"
],
"location": {
"@type": "Place",
"name": "Tiakiwai Conference Centre",
"url": "https://natlib.govt.nz/",
"logo": "https://natlib.govt.nz/national-library/assets/natlib-logo-white-bde8ea7cd8cc52382bac5f373ba1710d75c0ae296f03e49cd1c3bafbb7f835e3.png",
"publicAccess": true,
"smokingAllowed": false,
"telephone": "0800 474 300",
"geo": {
"@type": "GeoCoordinates",
"latitude": -41.2761,
"longitude": 174.7781
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "http://schema.org/Sunday"
},
{
"@type": "OpeningHoursSpecification",
"closes": "13:00:00" ,
"dayOfWeek": "http://schema.org/Saturday",
"opens": "09:00:00"
},
{
"@type": "OpeningHoursSpecification",
"closes": "17:00:00",
"dayOfWeek": "http://schema.org/Thursday",
"opens": "09:00:00"
},
{
"@type": "OpeningHoursSpecification",
"closes": "17:00:00",
"dayOfWeek": "http://schema.org/Tuesday",
"opens": "09:00:00"
},
{
"@type": "OpeningHoursSpecification",
"closes": "17:00:00",
"dayOfWeek": "http://schema.org/Friday",
"opens": "09:00:00"
},
{
"@type": "OpeningHoursSpecification",
"closes": "17:00:00",
"dayOfWeek": "http://schema.org/Monday",
"opens": "09:00:00"
},
{
"@type": "OpeningHoursSpecification",
"closes": "17:00:00",
"dayOfWeek": "http://schema.org/Wednesday",
"opens": "09:00:00"
}
],
"address": {
"@type": "PostalAddress",
"streetAddress": "Cnr Aitken and Molesworth Streets",
"addressLocality": "Thorndon",
"addressRegion": "Wellington",
"postalCode": "6011",
"addressCountry": "New Zealand"
}
},
"offers": [
{
"@type": "Offer",
"description": "Half Day Workshops",
"name": "Workshops",
"price": "100",
"priceCurrency": "NZD",
"validFrom": "2019-09-08T00:00:00",
"validThrough": "2019-10-29T23:59:59",
"availability": "http://schema.org/InStock",
"url": "https://ti.to/foss4g-oceania/foss4g-sotm-2019-workshops"
},
{
"@type": "Offer",
"description": "2 Day Conference (recognising your OSM / OSGeo contributions)",
"name": "Community Contributor",
"price": "150",
"priceCurrency": "NZD",
"validFrom": "2019-07-19T00:00:00",
"availability": "http://schema.org/LimitedAvailability",
"url": "https://ti.to/foss4g-oceania/foss4g-sotm-oceania-2019-conference/with/8kry6eblc-a,6re1gfebio8"
},
{
"@type": "Offer",
"description": "2 Day Conference (limited quantity at a special price)",
"name": "Early Bird",
"price": "350",
"priceCurrency": "NZD",
"validFrom": "2019-07-19T00:00:00",
"availability": "http://schema.org/SoldOut",
"url": "https://ti.to/foss4g-oceania/foss4g-sotm-oceania-2019-conference/with/n7xktld2f68,6re1gfebio8"
},
{
"@type": "Offer",
"description": "2 Day Conference",
"name": "Regular",
"price": "450",
"priceCurrency": "NZD",
"validFrom": "2019-07-19T00:00:00",
"availability": "http://schema.org/LimitedAvailability",
"url": "https://ti.to/foss4g-oceania/foss4g-sotm-oceania-2019-conference/with/qmf9qbjqkos,6re1gfebio8"
},
{
"@type": "Offer",
"description": "2 Day Conference (available by application)",
"name": "Student",
"price": "100",
"priceCurrency": "NZD",
"validFrom": "2019-09-01T00:00:00",
"validThrough": "2019-09-30T23:59:59",
"availability": "http://schema.org/SoldOut",
"url": "https://ti.to/foss4g-oceania/foss4g-sotm-oceania-2019-conference/with/321lxz6kgci"
}
]
}
</script>
</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');
window.onload = function () {
const indexRenderTime = window.measureDuration && window.measureDuration('index.html');
if (indexRenderTime) {
ga('send', 'timing', 'index.html', 'render', indexRenderTime);
}
};
window.addEventListener('beforeinstallprompt', (e) => {
e.preventDefault();
uiActions.setAddToHomeScreen(e);
});
</script>
</body>
</html>