Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (59 loc) · 3.96 KB
/
Copy pathindex.html
File metadata and controls
59 lines (59 loc) · 3.96 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Pagelings</title>
<meta name="description" content="Read pages, raise a monster, out-read your friends.">
<meta name="theme-color" content="#171133">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="manifest" href="manifest.webmanifest">
<link rel="icon" href="assets/icons/icon-192.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/icons/icon-180.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/app.css">
</head>
<body class="splashing">
<div id="splash" aria-live="polite">
<div class="sp-stars" aria-hidden="true"><i style="--x:44;--y:22;--s:4px;--d:-1.95s"></i><i style="--x:12;--y:71;--s:2px;--d:-1.10s"></i><i style="--x:10;--y:67;--s:3px;--d:-0.11s"></i><i style="--x:58;--y:56;--s:2px;--d:-0.72s"></i><i style="--x:73;--y:57;--s:2px;--d:-2.48s"></i><i style="--x:18;--y:31;--s:2px;--d:-1.73s"></i><i style="--x:53;--y:9;--s:3px;--d:-0.14s"></i><i style="--x:20;--y:40;--s:4px;--d:-0.43s"></i><i style="--x:18;--y:76;--s:3px;--d:-1.68s"></i><i style="--x:90;--y:26;--s:2px;--d:-1.74s"></i><i style="--x:84;--y:27;--s:3px;--d:-0.29s"></i><i style="--x:94;--y:11;--s:2px;--d:-1.86s"></i><i style="--x:66;--y:90;--s:4px;--d:-2.33s"></i><i style="--x:62;--y:77;--s:4px;--d:-1.08s"></i><i style="--x:34;--y:26;--s:3px;--d:-0.25s"></i><i style="--x:41;--y:70;--s:4px;--d:-2.63s"></i><i style="--x:96;--y:60;--s:3px;--d:-1.83s"></i><i style="--x:12;--y:18;--s:4px;--d:-0.49s"></i><i style="--x:46;--y:22;--s:4px;--d:-1.27s"></i><i style="--x:88;--y:12;--s:3px;--d:-1.02s"></i><i style="--x:47;--y:79;--s:4px;--d:-1.74s"></i><i style="--x:61;--y:11;--s:2px;--d:-2.83s"></i></div>
<div class="sp-hero"><i class="sp-ring"></i><i class="sp-ring r2"></i><img class="sp-logo" src="assets/icons/icon-192.png" alt=""></div>
<h1 class="sp-title">Pagelings</h1>
<div class="sp-mons" aria-hidden="true"><img src="assets/monsters/fire-1.webp" alt=""><img src="assets/monsters/water-1.webp" alt=""><img src="assets/monsters/plant-1.webp" alt=""></div>
<div class="sp-foot">
<div class="sp-bar"><i></i></div>
<p class="sp-msg">Waking the monsters…</p>
<button class="sp-tap" type="button">Tap to start</button>
<p class="sp-err"></p>
</div>
</div>
<script>
// Safety net: if the app code fails or stalls, never leave the splash stuck. Show the error and let a tap through.
(function () {
var sp = document.getElementById('splash');
window.splashBail = function (err) {
if (!sp || !sp.parentNode) return;
if (err) sp.querySelector('.sp-err').textContent = String(err && err.message || err).slice(0, 160);
sp.classList.add('ready');
sp.onclick = function () {
sp.classList.add('out'); document.body.classList.remove('splashing');
setTimeout(function () { if (sp.parentNode) sp.remove(); }, 550);
};
};
window.addEventListener('error', function (e) { window.splashBail(e.error || e.message); });
window.addEventListener('unhandledrejection', function (e) { window.splashBail(e.reason); });
setTimeout(function () { window.splashBail(); }, 15000);
})();
</script>
<div id="app"></div>
<div id="toast" role="status" aria-live="polite"></div>
<script src="vendor/supabase.js"></script>
<script type="module" src="js/app.js"></script>
<script>
if ('serviceWorker' in navigator && location.protocol === 'https:') navigator.serviceWorker.register('sw.js');
</script>
</body>
</html>