add web build

This commit is contained in:
2026-11-03 14:19:16 +03:00
parent 6003acd40c
commit f6efe2956e
3 changed files with 139 additions and 17 deletions

59
shell.html Normal file
View File

@@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no, viewport-fit=cover">
<title>Catch Phase</title>
<style>
html, body {
margin: 0;
height: 100%;
background: #05070d;
color: #7c8798;
font: 14px/1.5 system-ui, sans-serif;
overscroll-behavior: none;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
}
canvas {
display: block;
aspect-ratio: 8 / 5;
width: 100vw;
max-width: calc(100vh * 8 / 5);
max-height: 100vh;
background: #05070d;
touch-action: none;
-webkit-user-select: none;
user-select: none;
outline: none;
}
p {
margin: 0;
padding: 0 16px;
text-align: center;
}
@media (pointer: coarse) {
p { display: none; }
}
</style>
</head>
<body>
<canvas id="canvas" tabindex="-1" oncontextmenu="event.preventDefault()"></canvas>
<p>Instructions go here.</p>
<script>
var Module = {
canvas: document.getElementById('canvas'),
print: console.log.bind(console),
printErr: console.error.bind(console),
};
addEventListener('load', () => Module.canvas.focus());
</script>
{{{ SCRIPT }}}
</body>
</html>