From 8197bb1657d2f8ded4aec30ddff2b7df2a13a23a Mon Sep 17 00:00:00 2001 From: brian cully Date: Mon, 29 Dec 2025 11:39:38 -0500 Subject: add watch section and bench section --- site/index.html | 17 +++++++++++++---- site/pure.mjs | 6 +++--- 2 files changed, 16 insertions(+), 7 deletions(-) (limited to 'site') diff --git a/site/index.html b/site/index.html index 2d4c0e1..dd747c1 100644 --- a/site/index.html +++ b/site/index.html @@ -12,10 +12,19 @@

benchmarking maximal convex polygon finding

- - fps: n/a -
- +
+

watch

+ + fps: n/a +
+ +
+ +
+

bench

+ + +
diff --git a/site/pure.mjs b/site/pure.mjs index 5065bb7..e43380c 100644 --- a/site/pure.mjs +++ b/site/pure.mjs @@ -240,14 +240,14 @@ function update(points) { } export default async function () { - const canvas = document.querySelector('canvas'); + const canvas = document.querySelector('section.watch canvas'); const ctx = canvas.getContext('2d'); console.debug('canvas:', canvas, 'ctx', ctx); ctx.scale(canvas.width, canvas.height); - const fps = document.querySelector('#fps'); + const fps = document.querySelector('section.watch .fps'); - const goButton = document.querySelector('button'); + const goButton = document.querySelector('section.watch button'); let paused = true; goButton.onclick = e => { paused = !paused; -- cgit v1.3