KankenOnline/kanken_online/static/kanji.js

4 lines
156 B
JavaScript
Raw Permalink Normal View History

2024-10-14 10:22:40 +00:00
const kanjiElem = document.getElementById("kanji");
kanjiElem.addEventListener("click", (_) => {
navigator.clipboard.writeText(kanjiElem.innerText);
});