feat(web): add click-only interaction

This commit is contained in:
2026-08-22 19:56:26 +02:00
parent 726d35aaea
commit d1eb2d0706
3 changed files with 83 additions and 34 deletions
+9
View File
@@ -10,12 +10,21 @@
data,
progress = null,
insert_guess = null,
solving = $bindable(true),
}: {
data: Promise<EvaluateWordsResult>;
progress: EvaluateWordsProgress | null;
insert_guess: ((word: string[]) => void) | null;
solving: boolean;
} = $props();
$effect(() => {
solving = true;
data.finally(() => {
solving = false;
});
});
function renderMath(txt: string | null) {
return (element: HTMLElement) => {
if (txt) {