diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-25 21:47:58 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-25 21:48:16 -0300 |
| commit | 9c33714591a2147f7e5879e77212ca9886d0c967 (patch) | |
| tree | d250be9d9bc365d7894d49455c0f6376966b58be /web/index.html | |
| download | sketchbook-9c33714591a2147f7e5879e77212ca9886d0c967.tar.gz sketchbook-9c33714591a2147f7e5879e77212ca9886d0c967.zip | |
Put the game first: lib/sketchbook, sketches/vecanim
The root is the game. The platform library moves to lib/sketchbook (with
serve_web.py, which serves any sketch's web build, as a tool of it), and
vecanim to sketches/vecanim, still its own package on the same library.
Diffstat (limited to 'web/index.html')
| -rw-r--r-- | web/index.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..4b55799 --- /dev/null +++ b/web/index.html @@ -0,0 +1,18 @@ +<!doctype html> +<html lang="en"> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> +<title>{title}</title> +<link rel="icon" href="data:,"> +<style> + * { box-sizing: border-box; } + html, body { margin: 0; width: 100%; height: 100%; background: #0b1112; color: #e8e8d6; } + body { display: grid; place-items: center; font: 15px ui-monospace, monospace; overflow: hidden; } + canvas { display: block; touch-action: none; outline: none; } + #status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 24px; background: #192423; text-align: center; border: 1px solid #51665b; } + [hidden] { display: none !important; } +</style> +<canvas aria-label="{title}"></canvas> +<div id="status" role="status">Loading…</div> +<script type="module" src="host.js"></script> +</html> |
