diff options
| author | mrdog233o5 <mr.dog233o5@gmail.com> | 2024-04-11 21:32:09 +0800 |
|---|---|---|
| committer | mrdog233o5 <mr.dog233o5@gmail.com> | 2024-04-11 21:32:09 +0800 |
| commit | 8fb9d2d5376e6cb19cf277b9fdfc200d84bda2d6 (patch) | |
| tree | fd95bb03a64a24e5cbd13fef7f61433f8fd0048c /website/main.js | |
| parent | a06f91f9e0ef42eec9d1ad8a69923b6f258c6998 (diff) | |
added styles for website
Diffstat (limited to 'website/main.js')
| -rw-r--r-- | website/main.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/website/main.js b/website/main.js index 184d2b3..9c9c456 100644 --- a/website/main.js +++ b/website/main.js @@ -94,7 +94,8 @@ MÂ <¯ >˘ ?¿ - `.split("\n"); + +\n\n`.split("\n"); function convert(input, mode) { input = input.split(""); @@ -136,8 +137,8 @@ function autoConvert() { window.requestAnimationFrame(autoConvert); } -copyBtn.onclick = event => { - navigator.clipboard.writeText(output.innerText); -} +copyBtn.addEventListener("click", (event) => { + navigator.clipboard.writeText(output.value); +}); autoConvert();
\ No newline at end of file |
