Add script to copy kanji on click
This commit is contained in:
parent
447f8d4770
commit
2c07a48313
4
kanken_online/static/kanji.js
Normal file
4
kanken_online/static/kanji.js
Normal file
@ -0,0 +1,4 @@
|
||||
const kanjiElem = document.getElementById("kanji");
|
||||
kanjiElem.addEventListener("click", (_) => {
|
||||
navigator.clipboard.writeText(kanjiElem.innerText);
|
||||
});
|
Loading…
Reference in New Issue
Block a user