4 lines
156 B
JavaScript
4 lines
156 B
JavaScript
const kanjiElem = document.getElementById("kanji");
|
|
kanjiElem.addEventListener("click", (_) => {
|
|
navigator.clipboard.writeText(kanjiElem.innerText);
|
|
}); |