Mercurial
view infinite_canvas/assets/image-view.html @ 276:b55c22cff335
Add interactive infinite canvas prototype
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 16:57:56 -0700 |
| parents | |
| children |
line wrap: on
line source
<!doctype html> <meta charset="utf-8"> <style> html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #fff; } img { display: block; width: 100%; height: 100%; object-fit: contain; } </style> <img id="image" alt=""> <script> const source = new URLSearchParams(location.search).get("src"); if (source) document.getElementById("image").src = source; </script>