feat(web): add click-only interaction
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user