mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Added: Svelte component
This commit is contained in:
parent
244aade836
commit
34c1dfd849
2 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
<div>
|
||||||
|
Hello from svelte
|
||||||
|
</div>
|
|
@ -5,7 +5,9 @@
|
||||||
@typescript-eslint/no-unused-vars: "off",
|
@typescript-eslint/no-unused-vars: "off",
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { mount } from "svelte";
|
||||||
import "./index.scss"
|
import "./index.scss"
|
||||||
|
import ReviewerBottom from "./index.svelte"
|
||||||
|
|
||||||
let time: number; // set in python code
|
let time: number; // set in python code
|
||||||
let timerStopped = false;
|
let timerStopped = false;
|
||||||
|
@ -64,3 +66,7 @@ function selectedAnswerButton(): string {
|
||||||
return node.dataset.ease;
|
return node.dataset.ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mount(
|
||||||
|
ReviewerBottom,
|
||||||
|
{target: document.body},
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue