Files
catch-phase/shell.html
2026-11-03 19:35:11 +03:00

60 lines
1.5 KiB
HTML

<!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>