summaryrefslogtreecommitdiff
path: root/crates/gipfel-wasm/demo/index.html
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 20:14:25 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-27 20:14:25 +0100
commit4626a87f1815e998dfdd25e6d3826726bc912ca2 (patch)
treefcfc9365b4da5423bed5b5cfb6ac59ed21578a41 /crates/gipfel-wasm/demo/index.html
parent4cdfae6ad5d5f9808ebf3078fb4630298051f464 (diff)
Remove gipfel-wasm spike crate
Superseded by wipfel; its feasibility question (pure-Rust core in the browser) was answered and documented.
Diffstat (limited to 'crates/gipfel-wasm/demo/index.html')
-rw-r--r--crates/gipfel-wasm/demo/index.html39
1 files changed, 0 insertions, 39 deletions
diff --git a/crates/gipfel-wasm/demo/index.html b/crates/gipfel-wasm/demo/index.html
deleted file mode 100644
index f8e764d..0000000
--- a/crates/gipfel-wasm/demo/index.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="utf-8" />
- <title>gipfel WASM spike</title>
- <style>
- body { font-family: system-ui, sans-serif; max-width: 720px; margin: 3em auto; line-height: 1.5; }
- pre { background: #f4f4f4; padding: 1em; overflow-x: auto; }
- label { display: block; margin: 0.6em 0; }
- button { margin-top: 1em; padding: 0.5em 1.2em; }
- </style>
-</head>
-<body>
- <h1>gipfel WASM spike</h1>
- <p>core version: <code id="ver">loading…</code></p>
- <p>Pick a hill database and a JPEG (ideally one saved by gipfel, or with EXIF GPS data):</p>
- <label>gipfel.dat: <input type="file" id="db" /></label>
- <label>image.jpg: <input type="file" id="jpg" /></label>
- <button id="go" disabled>Run fit pipeline</button>
- <pre id="out">pick both files, then run</pre>
-
- <script type="module">
- import init, { fit_demo, version } from '../pkg/gipfel_wasm.js';
- const $ = (id) => document.getElementById(id);
- await init();
- $('ver').textContent = version();
- $('go').disabled = false;
- $('go').onclick = async () => {
- const f = (id) => $(id).files[0];
- if (!f('db') || !f('jpg')) { $('out').textContent = 'pick both files first'; return; }
- const db = new Uint8Array(await f('db').arrayBuffer());
- const jpg = new Uint8Array(await f('jpg').arrayBuffer());
- const t0 = performance.now();
- const res = fit_demo(db, jpg);
- $('out').textContent = res + `\n\n(wall time: ${(performance.now() - t0).toFixed(1)} ms)`;
- };
- </script>
-</body>
-</html>