forked from gdg-x/hoverboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
144 lines (114 loc) · 5.31 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
<!doctype html>
<html lang="en" itemscope itemtype="http://schema.org/Event">
<head>
<base href="/">
<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 $}">
<title>{$ title $}</title>
<link rel="canonical" href="{$ url $}">
<link rel="shortcut icon" sizes="32x32" href="/images/favicon/favicon-32.png">
<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">
<meta name="apple-mobile-web-app-title" content="{$ title $}">
<!-- Homescreen icons. -->
<link rel="shortcut icon" href="/images/favicon/favicon-72.png">
<link rel="apple-touch-icon" href="/images/touch/homescreen-48.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/touch/homescreen-72.png">
<link rel="apple-touch-icon" sizes="96x96" href="/images/touch/homescreen-96.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/touch/homescreen-144.png">
<link rel="apple-touch-icon" sizes="192x192" href="/images/touch/homescreen-192.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="/images/touch/homescreen-144.png">
<meta name="msapplication-TileColor" content="#ECEFF1">
<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/png" />
<!-- 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>
<!-- Unsupported browser checks need to come before webcomponents.js is loaded,
otherwise unsupported browsers will error out and not record a pageview.
Analytics lib is also loaded up front for error reporting. -->
<script src="https://www.google-analytics.com/analytics.js" async></script>
<style>
body {
margin: 0;
font-family: 'Roboto', 'Noto', sans-serif;
line-height: 1.4;
min-height: 100vh;
}
</style>
<script>
window.HOVERBOARD = window.HOVERBOARD || {};
window.ENV = 'dev';
window.PREFIX = '/';
// setup Polymer options
window.Polymer = {lazyRegister: true, dom: 'shadow'};
// Initializes the analytics.js command queue.
window.ga = window.ga || function () {
(ga.q = ga.q || []).push(arguments)
};
ga.l = +new Date;
// Creates the tracker.
ga('create', {
trackingId: window.ENV === 'prod' ? '{$ analytics.prod $}' : '{$ analytics.dev $}',
cookieDomain: 'auto',
cookiePath: window.ENV !== 'dev' ? window.PREFIX || '/' : null,
siteSpeedSampleRate: 10 // 10% of users.
});
// Setup error tracking before anything else runs.
window.onerror = function (message, file, lineNumber, columnNumber, error) {
// We don't want to trigger any errors inside window.onerror, so wrap in a try/catch.
try {
// Some browsers don't support error param yet.
if (error !== undefined) {
message = error.stack;
}
ga('send', 'event', 'error', file + ':' + lineNumber, message);
} catch (e) {
// no-op
}
};
</script>
<link rel="import" href="/src/hoverboard-app.html" async>
</head>
<body>
<hoverboard-app id="happ"></hoverboard-app>
<script src="scripts/helper/util.js"></script>
<script src="scripts/helper/elements.js"></script>
<script src="scripts/bootstrap.js"></script>
<script id="sw-registration" src="scripts/helper/service-worker-registration.js"></script>
<script src="scripts/helper/deferred.js"></script>
<script src="scripts/metrics.js"></script>
</body>
</html>