commit 00413be4e5a102d11be802b56d60c230d7d30d45 parent b89ba105493b17dca8e33a6ab7d5e5825be338a7 Author: Alisa Lain <60989682+al1-ce@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:48:32 +0300 Update index.js Diffstat:
| M | public/index.js | | | 18 | ++---------------- |
1 file changed, 2 insertions(+), 16 deletions(-)
diff --git a/public/index.js b/public/index.js @@ -1,17 +1,4 @@ -{ - const copyButton = app.querySelector(".copy-button"); - const copyIcon = copyButton.querySelector("img"); - const urlInput = app.querySelector(".url-input"); - - copyButton.addEventListener("click", async () => { - await navigator.clipboard.writeText(urlInput.value); - copyIcon.src = "/clipboard-check.svg"; - - setTimeout(() => { - copyIcon.src = "/clipboard.svg"; - }, 2000); - }); -} + /* BANG FORMAT @@ -121,4 +108,4 @@ doRedirect(); // if (!searchUrl) return null; // return searchUrl; -// } -\ No newline at end of file +// }