diff options
| author | mrdog233o5 <mr.dog233o5@gmail.com> | 2024-04-11 22:25:45 +0800 |
|---|---|---|
| committer | mrdog233o5 <mr.dog233o5@gmail.com> | 2024-04-11 22:25:45 +0800 |
| commit | 9fc4db8e8cb589645409f882808ff230d262db9f (patch) | |
| tree | 05313d749537c7aa4013051dbb6eff0c46bd7a32 | |
| parent | 15e949c180984d5556a945f0fdc0486ade90f7b0 (diff) | |
made button larger and removed console.log
| -rw-r--r-- | website/main.js | 9 | ||||
| -rw-r--r-- | website/style.css | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/website/main.js b/website/main.js index fe676e0..34d376a 100644 --- a/website/main.js +++ b/website/main.js @@ -138,17 +138,14 @@ function autoConvert() { // for css if (input.value != '') { - console.log(input.value) output.classList.add('havOutput'); } else { output.classList.remove('havOutput'); } if (currentCopy != res) { - copyBtn.removeAttribute('disabled', true) - } else { - console.log(currentCopy, res) + copyBtn.removeAttribute('disabled', true); } - return res + return res; } @@ -156,7 +153,7 @@ function autoConvert() { copyBtn.onclick = event => { navigator.clipboard.writeText(output.value); currentCopy = res; - copyBtn.setAttribute('disabled', true) + copyBtn.setAttribute('disabled', true); } input.oninput = event => { diff --git a/website/style.css b/website/style.css index e382557..ca7e058 100644 --- a/website/style.css +++ b/website/style.css @@ -62,7 +62,9 @@ textarea:focus { padding: 10px; border-radius: 8px; transition: all 0.3s; + font-size: 20px; width: 100%; + height: 100px; } #copyBtn:focus { |
