diff --git a/lots_of_kanji.apkg b/lots_of_kanji.apkg deleted file mode 100644 index 93333fea1318eed5e1bb2eeb32ef946027d929ff..0000000000000000000000000000000000000000 Binary files a/lots_of_kanji.apkg and /dev/null differ diff --git a/templates/kanji/animation.js b/templates/kanji/animation.js index 8013fe4202caae56479e0b7079063b4c244b8b79..d271d46af948a44f378ceba86ff474306963840c 100644 --- a/templates/kanji/animation.js +++ b/templates/kanji/animation.js @@ -2,7 +2,6 @@ import HanziWriter from "hanzi-writer" const kanji = document.getElementById("kanji").innerText -const hanziWriterContainer = document.createElement("div") -document.body.appendChild(hanziWriterContainer) +const hanziWriterContainer = document.getElementById("kanji-animation") HanziWriter.create(hanziWriterContainer, kanji).animateCharacter() diff --git a/templates/kanji/back.html b/templates/kanji/back.html index b368e5be6d2b83426803a000eaa11489003f6e48..be7b33362ed5423a5a55c46b82e72431d90f2a40 100644 --- a/templates/kanji/back.html +++ b/templates/kanji/back.html @@ -2,11 +2,10 @@ <hr id="answer"> -<dl> - <dt>Kanji</dt> - <dd id="kanji">{{Back}}</dd> -</dl> +<div id="kanji">{{Back}}</div> + +<div id="kanji-animation"></div> <script type="module"> import "./animation.js" -</script> +</script> \ No newline at end of file