Repository navigation
Expand file tree
/
Copy pathshell.html
More file actions
41 lines (41 loc) · 1.84 KB
/
Copy pathshell.html
File metadata and controls
41 lines (41 loc) · 1.84 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Tide</title>
<style>
html, body { margin: 0; height: 100%; background: #0e0e14; overflow: hidden; }
body { display: flex; align-items: center; justify-content: center; }
canvas { display: block; outline: none; }
/* What the page is doing until the game first draws: tide.js fills it in and takes it away */
#tide-loading { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 16px; pointer-events: none; transition: opacity .3s;
font: 14px system-ui, sans-serif; color: #9a9aae; }
#tide-loading.done { opacity: 0; }
#tide-loading img { max-width: 160px; max-height: 160px; }
#tide-loading-bar { width: 220px; height: 4px; border-radius: 2px; background: #24242e; overflow: hidden; }
#tide-loading-bar div { width: 30%; height: 100%; background: #6a8cff; animation: tide-waiting 1.2s ease-in-out infinite alternate; }
#tide-loading-bar.known div { animation: none; transition: width .15s; }
#tide-loading.failed #tide-loading-bar { display: none; }
#tide-loading.failed #tide-loading-text { color: #ff8a8a; max-width: 80vw; text-align: center; }
@keyframes tide-waiting { from { margin-left: 0; } to { margin-left: 70%; } }
</style>
</head>
<body>
<canvas id="canvas" tabindex="-1" oncontextmenu="return false"></canvas>
<div id="tide-loading" role="status">
<img id="tide-loading-logo" alt="" hidden>
<div id="tide-loading-bar"><div></div></div>
<div id="tide-loading-text">Loading</div>
</div>
<script>
var Tide = {
canvas: document.getElementById('canvas'),
print: text => console.log(text),
printErr: text => console.error(text),
};
</script>
{{{ SCRIPT }}}
</body>
</html>