30 lines
976 B
HTML
30 lines
976 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Smack a Brother</title>
|
|
<style>
|
|
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
|
|
canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; outline: none; }
|
|
#status { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; font: 16px monospace; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="status">Loading...</div>
|
|
<canvas id="canvas" tabindex="-1" oncontextmenu="event.preventDefault()"></canvas>
|
|
<script>
|
|
var Module = {
|
|
canvas: document.getElementById("canvas"),
|
|
setStatus: function (text) {
|
|
var status = document.getElementById("status");
|
|
status.textContent = text;
|
|
status.style.display = text ? "grid" : "none";
|
|
},
|
|
};
|
|
Module.setStatus("Loading...");
|
|
</script>
|
|
{{{ SCRIPT }}}
|
|
</body>
|
|
</html>
|