diff options
| author | brian cully <bjc@spork.org> | 2025-12-29 11:39:38 -0500 |
|---|---|---|
| committer | brian cully <bjc@spork.org> | 2025-12-29 11:39:38 -0500 |
| commit | 8197bb1657d2f8ded4aec30ddff2b7df2a13a23a (patch) | |
| tree | 38acbb85ea899319406b422d4264e807772c020a /site/pure.mjs | |
| parent | 51acf14143ed39302acadf5308e5bf4fe80f8179 (diff) | |
| download | polyring-8197bb1657d2f8ded4aec30ddff2b7df2a13a23a.tar.gz polyring-8197bb1657d2f8ded4aec30ddff2b7df2a13a23a.zip | |
add watch section and bench section
Diffstat (limited to 'site/pure.mjs')
| -rw-r--r-- | site/pure.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
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; |
