diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/infinite_canvas/assets/image-view.html	Mon Aug 17 16:57:56 2026 -0700
@@ -0,0 +1,23 @@
+<!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>