Add script to copy kanji on click

This commit is contained in:
Kiril Kovachev 2024-10-14 11:22:40 +01:00
parent 447f8d4770
commit 2c07a48313

View File

@ -0,0 +1,4 @@
const kanjiElem = document.getElementById("kanji");
kanjiElem.addEventListener("click", (_) => {
navigator.clipboard.writeText(kanjiElem.innerText);
});