blob: 208101c1aa731bccc0f7ed1e16954a9f9bf22a8a (
plain)
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
|
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Clonk Tennis</title>
<style>
html, body { margin: 0; height: 100%; background: #12141d; color: #e8e8ee;
font-family: system-ui, sans-serif; }
body { display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 12px; }
canvas { background: #000; border-radius: 6px; max-width: 100%;
image-rendering: auto; outline: none; }
#status { font-size: 14px; opacity: 0.7; min-height: 18px; }
</style>
</head>
<body>
<canvas id="canvas" oncontextmenu="event.preventDefault()" tabindex="-1"></canvas>
<div id="status">Loading…</div>
<script>
var statusEl = document.getElementById('status');
var Module = {
canvas: (function () { return document.getElementById('canvas'); })(),
print: function (t) { console.log(t); },
printErr: function (t) { console.error(t); },
setStatus: function (t) { if (statusEl) statusEl.textContent = t; },
onRuntimeInitialized: function () { if (statusEl) statusEl.textContent = ''; }
};
</script>
{{{ SCRIPT }}}
</body>
</html>
|