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 /src/lib.rs | |
| parent | 51acf14143ed39302acadf5308e5bf4fe80f8179 (diff) | |
| download | polyring-8197bb1657d2f8ded4aec30ddff2b7df2a13a23a.tar.gz polyring-8197bb1657d2f8ded4aec30ddff2b7df2a13a23a.zip | |
add watch section and bench section
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,17 +25,17 @@ fn document() -> web_sys::Document { } fn canvas() -> JSResult<web_sys::HtmlCanvasElement> { - 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::<web_sys::HtmlCanvasElement>()?) } fn fps() -> JSResult<web_sys::HtmlElement> { - 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::<web_sys::HtmlElement>()?) } fn go() -> JSResult<web_sys::HtmlElement> { - 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::<web_sys::HtmlElement>()?) } |
