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 --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 16b1d25..7dd08e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -25,17 +25,17 @@ fn document() -> web_sys::Document { } fn canvas() -> JSResult { - let x = document().query_selector("canvas")?.ok_or("no canvas")?; + let x = document().query_selector("section.watch canvas")?.ok_or("no canvas")?; Ok(x.dyn_into::()?) } fn fps() -> JSResult { - let x = document().query_selector("#fps")?.ok_or("no fps counter")?; + let x = document().query_selector("section.watch .fps")?.ok_or("no fps counter")?; Ok(x.dyn_into::()?) } fn go() -> JSResult { - let x = document().query_selector("button")?.ok_or("no go button")?; + let x = document().query_selector("section.watch button")?.ok_or("no go button")?; Ok(x.dyn_into::()?) } -- cgit v1.3