-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
263 lines (228 loc) · 9.12 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
<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/Organization" lang="id">
<head>
<base href="{$ basepath $}" />
<meta charset="utf-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta
content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"
name="viewport"
/>
<meta content="{$ description $}" name="description" />
<meta content="{$ keywords $}" name="keywords" />
<meta content="{$ organizer.name $}" name="author" />
<meta content="Project LKIM Asadiyah Web App" name="generator" />
<title>{$ title $}</title>
<link href="{$ url $}" rel="canonical" />
<link href="images/favicon.ico" rel="icon" />
<meta content="{$ webapp.themeColor $}" name="theme-color" />
<link href="manifest.json" rel="manifest" />
<!-- Add to homescreen for Chrome on Android -->
<meta content="yes" name="mobile-web-app-capable" />
<!-- fallback for manifest.json -->
<meta content="{$ title $}" name="application-name" />
<!-- fallback for manifest.json -->
<!-- Add to homescreen for Safari on iOS -->
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black-translucent" name="apple-mobile-web-app-status-bar-style" />
<meta content="{$ title $}" name="apple-mobile-web-app-title" />
<!-- Homescreen icons. -->
<link href="images/manifest/icon-48.png" rel="apple-touch-icon" />
<link href="images/manifest/icon-72.png" rel="apple-touch-icon" sizes="72x72" />
<link href="images/manifest/icon-96.png" rel="apple-touch-icon" sizes="96x96" />
<link href="images/manifest/icon-144.png" rel="apple-touch-icon" sizes="144x144" />
<link href="images/manifest/icon-192.png" rel="apple-touch-icon" sizes="192x192" />
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta content="images/manifest/icon-144.png" name="msapplication-TileImage" />
<meta content="#25aff3" name="msapplication-TileColor" />
<meta content="no" name="msapplication-tap-highlight" />
<!-- G+ sharing meta data -->
<meta content="{$ title $}" itemprop="name" />
<meta content="{$ description $}" itemprop="description" />
<meta content="{$ image if image.startsWith('http') else (url + image) $}" itemprop="image" />
<!-- Facebook sharing meta data -->
<meta content="{$ title $}" property="og:title" />
<meta content="{$ title $}" property="og:site_name" />
<meta content="article" property="og:type" />
<meta content="{$ url $}" property="og:url" />
<meta content="{$ description $}" property="og:description" />
<meta content="{$ fbAppId $}" property="fb:app_id" />
<meta
content="{$ image if image.startsWith('http') else (url + image) $}"
property="og:image"
/>
<meta content="image/jpeg" property="og:image:type" />
<!-- Twitter meta data -->
<meta content="summary_large_image" name="twitter:card" />
<meta content="@{$ organizer.twitter $}" name="twitter:creator" />
<meta content="{$ title $}" name="twitter:title" />
<meta content="{$ description $}" name="twitter:description" />
<meta
content="{$ image if image.startsWith('http') else (url + image) $}"
name="twitter:image"
/>
<meta name="twitter:label1" value="{$ location.label $}" />
<meta name="twitter:data1" value="{$ location.name $}" />
<meta name="twitter:label2" />
<meta name="twitter:data2" />
<link href="https://apis.google.com" rel="dns-prefetch" />
<link href="https://www.google-analytics.com" rel="preconnect" />
<link href="https://fcm.googleapis.com" rel="preconnect" />
<link href="https://firestore.googleapis.com" rel="preconnect" />
<script>
// https://stackoverflow.com/a/50407571/26406
window.process = {
env: {
NODE_ENV: 'production',
},
};
</script>
<script>
// First Input Delay polyfill https://github.com/GoogleChromeLabs/first-input-delay
// prettier-ignore
// eslint-disable-next-line
!function(n,e){var t,o,i,c=[],f={passive:!0,capture:!0},r=new Date,a="pointerup",u="pointercancel";function p(n,c){t||(t=c,o=n,i=new Date,w(e),s())}function s(){o>=0&&o<i-r&&(c.forEach(function(n){n(o,t)}),c=[])}function l(t){if(t.cancelable){var o=(t.timeStamp>1e12?new Date:performance.now())-t.timeStamp;"pointerdown"==t.type?function(t,o){function i(){p(t,o),r()}function c(){r()}function r(){e(a,i,f),e(u,c,f)}n(a,i,f),n(u,c,f)}(o,t):p(o,t)}}function w(n){["click","mousedown","keydown","touchstart","pointerdown"].forEach(function(e){n(e,l,f)})}w(n),self.perfMetrics=self.perfMetrics||{},self.perfMetrics.onFirstInputDelay=function(n){c.push(n),s()}}(addEventListener,removeEventListener);
</script>
<script src="./node_assets/firebase/firebase-app.js"></script>
<script src="./node_assets/firebase/firebase-auth.js"></script>
<script src="./node_assets/firebase/firebase-firestore.js"></script>
<script src="./node_assets/firebase/firebase-messaging.js"></script>
<script src="./node_assets/firebase/firebase-performance.js"></script>
<script>
window.Polymer = { rootPath: '{$ basepath $}' };
window.LKIMAPP = { Elements: {} };
firebase.initializeApp({
apiKey: '{$ firebase.apiKey $}',
appId: '{$ firebase.appId $}',
authDomain: '{$ firebase.authDomain $}',
messagingSenderId: '{$ firebase.messagingSenderId $}',
projectId: '{$ firebase.projectId $}',
storageBucket: '{$ firebase.storageBucket $}',
measurementId: '{$ firebase.measurementId $}',
});
firebase.performance();
firebase
.firestore()
.enablePersistence({ synchronizeTabs: true })
.catch(() => {
// eslint-disable-next-line no-console
console.warn('DB offline support not available');
});
// eslint-disable-next-line no-console
console.log('Firebase is ready!');
</script>
<script src="./node_assets/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="./out-tsc/src/lkim-app.js" type="module"></script>
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap" rel="stylesheet" />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1S51ZKYZGL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-1S51ZKYZGL');
</script>
<style>
html,
body {
min-height: 100%;
height: 100%;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Fira Sans', Roboto, Helvetica, Arial,
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
font-size: 16px;
line-height: 1.5;
}
*,
*:before,
*:after {
box-sizing: border-box;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
}
/* styling for render while resources are loading */
lkim-app[unresolved] {
min-height: 100%;
background-color: #25aff3;
padding: 16px;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
font-weight: 600;
letter-spacing: 0.2em;
color: white;
overflow: visible;
}
.spinner > div {
width: 18px;
height: 18px;
background-color: #fff;
border-radius: 100%;
display: inline-block;
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.spinner .bounce2 {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
0%,
80%,
100% {
-webkit-transform: scale(0);
}
40% {
-webkit-transform: scale(1);
}
}
@keyframes sk-bouncedelay {
0%,
80%,
100% {
-webkit-transform: scale(0);
transform: scale(0);
}
40% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
</style>
</head>
<body>
<lkim-app unresolved>
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</lkim-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) {
gtag('event', 'timing', {
page: 'index.html',
renderTime: indexRenderTime,
});
}
};
</script>
</body>
</html>