diff --git a/kanken_online/static/kanji.js b/kanken_online/static/kanji.js new file mode 100644 index 0000000..afc9db4 --- /dev/null +++ b/kanken_online/static/kanji.js @@ -0,0 +1,4 @@ +const kanjiElem = document.getElementById("kanji"); +kanjiElem.addEventListener("click", (_) => { + navigator.clipboard.writeText(kanjiElem.innerText); +}); \ No newline at end of file