-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
315 lines (312 loc) · 10.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Pabio Live</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="title" content="Pabio Live" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="https://pabio.com/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="https://pabio.com/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="https://pabio.com/favicon-16x16.png"
/>
<link
rel="mask-icon"
href="https://pabio.com/safari-pinned-tab.svg"
color="#fff"
/>
<meta
name="description"
content="🔴 Live from the Zurich train station from Sunday September 11 to Wednesday September 14"
/>
<meta property="og:type" content="website" />
<meta property="og:url" content="https://live.pabio.com" />
<meta property="og:title" content="Pabio Live" />
<meta
property="og:description"
content="🔴 Live from the Zurich train station from Sunday September 11 to Wednesday September 14"
/>
<meta
property="og:image"
content="https://pabiousercontent.com/assets/asset_X4o0Y2vLVXQioi3XCSnLzSqc/579fb807-74c2-4ac2-b0e3-04db5885278a.png?w=1200&auto=compress"
/>
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://live.pabio.com" />
<meta property="twitter:title" content="Pabio Live" />
<meta
property="twitter:description"
content="🔴 Live from the Zurich train station from Sunday September 11 to Wednesday September 14"
/>
<meta
property="twitter:image"
content="https://pabiousercontent.com/assets/asset_X4o0Y2vLVXQioi3XCSnLzSqc/579fb807-74c2-4ac2-b0e3-04db5885278a.png?w=1200&auto=compress"
/>
<style>
@font-face {
font-family: "PabioFont";
src: url("font.woff2") format("woff2"), url("font.woff") format("woff");
font-weight: normal;
font-style: normal;
font-display: swap;
}
body {
max-width: 600px;
margin: auto;
padding: 1rem;
overflow: hidden;
font-family: "PabioFont", sans-serif, sans-serif;
color: #aaa;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
mux-player {
width: 100vw;
height: 100vh;
}
.logo {
position: fixed;
z-index: 10;
left: 2rem;
top: 2rem;
right: 2rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo svg {
height: 1.5rem;
}
.ot-floating-button__front {
display: none;
}
.cta {
background: linear-gradient(121deg, #ff6b6b, #e5466b);
color: #fff;
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
0 1px 2px 0 rgba(0, 0, 0, 0.06);
font-size: 90%;
letter-spacing: 0.1px;
}
</style>
</head>
<body>
<div class="logo">
<a
href="https://pabio.com?utm_source=livestream&utm_medium=logo&utm_campaign=sleepover_livestream"
target="_blank"
>
<svg
viewbox="0 0 900 256"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0 11v241h55v-82h45c56 0 81-39 81-79s-25-80-81-80H0zm55 111V59h42c21 0 29 16 29 32 0 15-8 31-29 31H55zm270-14a65 65 0 00-52-23c-46 0-78 34-78 85s32 86 78 86c20 0 40-9 52-25v21h51V89h-51v19zm-40 100c-22 0-38-18-38-38 0-21 16-38 38-38 21 0 38 17 38 38 0 20-17 38-38 38zM522 85c-16 0-38 6-50 22V0h-52v252h52v-18c12 15 34 22 50 22 41 0 80-33 80-86s-39-85-80-85zm-10 123c-20 0-38-17-38-38s18-38 38-38 37 17 37 38-17 38-37 38zM662 64c18 0 32-13 32-30S680 4 662 4c-17 0-32 13-32 30s15 30 32 30zm26 188V89h-52v163h52zm123 4c47 0 89-34 89-86 0-51-42-85-89-85s-89 34-89 85c0 52 42 86 89 86zm0-48c-20 0-36-15-36-38 0-22 16-38 36-38s36 16 36 38c0 23-16 38-36 38z"
fill="#FF6B6B"
/>
</svg>
</a>
<a
href="https://pabio.com/get-started/?utm_source=livestream&utm_medium=logo&utm_campaign=sleepover_livestream"
target="_blank"
class="cta"
>Get started</a
>
</div>
<script src="https://unpkg.com/@mux/mux-player"></script>
<h1>
The livestream is over. A link to view the recording will be available
shortly.
</h1>
<script>
// var countDownDate = new Date("2022-09-11T15:00:00.000Z").getTime();
// function update() {
// var now = new Date().getTime();
// var distance = countDownDate - now;
// var hours = Math.floor(
// (distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)
// );
// var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
// var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// var timer = document.querySelector(".timer");
// if (timer)
// timer.innerHTML =
// "in " +
// hours +
// " hours, " +
// minutes +
// " minutes, " +
// seconds +
// " seconds ";
// if (distance < 0) {
// clearInterval(x);
// if (timer) timer.innerHTML = "soon!";
// }
// }
// update();
// var x = setInterval(function () {
// update();
// }, 1000);
var cta = document.querySelector(".cta");
if (
cta &&
(window.location.search.includes("locale=en-de") ||
window.location.search.includes("locale=de-de"))
)
cta.innerHTML = "Jetzt starten";
</script>
<!-- <mux-player
autoplay="any"
primary-color="#ff6b6b"
stream-type="live"
playback-id="gcnq9MN500TFtEVuzrOUJEoTwgSdaMRICxkI6MVmhc00E"
metadata-id="TCAdMdacU01ZdWxE01MTOcxV8RjmftdMnzXeJ01koB02UUM"
metadata-video-title="Pabio Live"
></mux-player> -->
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-RVKJGJ4MH7"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-RVKJGJ4MH7");
</script>
<script type="text/javascript">
(function (f, b) {
if (!b.__SV) {
var e, g, i, h;
window.mixpanel = b;
b._i = [];
b.init = function (e, f, c) {
function g(a, d) {
var b = d.split(".");
2 == b.length && ((a = a[b[0]]), (d = b[1]));
a[d] = function () {
a.push([d].concat(Array.prototype.slice.call(arguments, 0)));
};
}
var a = b;
"undefined" !== typeof c ? (a = b[c] = []) : (c = "mixpanel");
a.people = a.people || [];
a.toString = function (a) {
var d = "mixpanel";
"mixpanel" !== c && (d += "." + c);
a || (d += " (stub)");
return d;
};
a.people.toString = function () {
return a.toString(1) + ".people (stub)";
};
i =
"disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(
" "
);
for (h = 0; h < i.length; h++) g(a, i[h]);
var j = "set set_once union unset remove delete".split(" ");
a.get_group = function () {
function b(c) {
d[c] = function () {
call2_args = arguments;
call2 = [c].concat(Array.prototype.slice.call(call2_args, 0));
a.push([e, call2]);
};
}
for (
var d = {},
e = ["get_group"].concat(
Array.prototype.slice.call(arguments, 0)
),
c = 0;
c < j.length;
c++
)
b(j[c]);
return d;
};
b._i.push([e, f, c]);
};
b.__SV = 1.2;
e = f.createElement("script");
e.type = "text/javascript";
e.async = !0;
e.src =
"undefined" !== typeof MIXPANEL_CUSTOM_LIB_URL
? MIXPANEL_CUSTOM_LIB_URL
: "file:" === f.location.protocol &&
"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)
? "https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"
: "//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";
g = f.getElementsByTagName("script")[0];
g.parentNode.insertBefore(e, g);
}
})(document, window.mixpanel || []);
mixpanel.init("d020c91d9ed3a7354fc09a3fdb12dc2d");
</script>
<script>
var muxPlayer = document.querySelector("mux-player");
[
"pause",
"play",
"seeked",
"waiting",
"volumechange",
"suspend",
"stalled",
"ratechange",
].forEach((event) => {
if (muxPlayer)
muxPlayer.addEventListener(event, function () {
console.log("Livestream: " + event);
try {
if (
typeof window !== "undefined" &&
"dataLayer" in window &&
typeof window.dataLayer === "object"
)
window.dataLayer.push({ event: "Livestream: " + event });
if (
typeof window !== "undefined" &&
"analytics" in window &&
typeof window.analytics === "object" &&
"track" in window.analytics &&
typeof window.analytics.track === "function"
)
window.analytics.track("Livestream: " + event);
if (
typeof window !== "undefined" &&
"posthog" in window &&
typeof window.posthog === "object" &&
"capture" in window.posthog
)
window.posthog.capture("Livestream: " + event);
} catch (error) {
console.log("ERROR in tracking", event, error);
}
});
});
</script>
</body>
</html>