Mercurial
view infinite_canvas/index.html @ 280:49e9e591c9bb
Add persistent dictation, prewarmed WebRTC speech input, Copilot SDK routing, animated conversation lifecycle controls, parking, and architecture coverage.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 18 Aug 2026 19:14:53 -0700 |
| parents | b55c22cff335 |
| children |
line wrap: on
line source
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Infinite Canvas</title> <style> html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #fff; } #canvas { position: relative; z-index: 1; width: 100%; height: 100%; display: block; outline: none; } </style> </head> <body> <canvas id="canvas" tabindex="-1" oncontextmenu="event.preventDefault()"></canvas> <script> const canvas = document.getElementById("canvas"); function resizeCanvas() { const ratio = window.devicePixelRatio || 1; canvas.width = Math.max(1, Math.round(window.innerWidth * ratio)); canvas.height = Math.max(1, Math.round(window.innerHeight * ratio)); } resizeCanvas(); window.addEventListener("resize", resizeCanvas); var Module = { canvas, preRun: [resizeCanvas], }; </script> <script src="web_bin.js"></script> </body> </html>