From: Matt Corallo Date: Tue, 16 Jul 2024 18:37:46 +0000 (+0000) Subject: Fix address copy wipe timer and make it hover-interactive X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=86f40e78c42625d3f0027f2c2a24407e5eafdacf;p=satsto.me Fix address copy wipe timer and make it hover-interactive --- diff --git a/index.html b/index.html index 51d1326..02cca34 100644 --- a/index.html +++ b/index.html @@ -172,6 +172,9 @@ float: right; cursor: pointer; } + .address-copy:hover { + transform: scale(0.9, 0.9); + } .clipboard-logo { height: 17px; } @@ -462,9 +465,9 @@ navigator.clipboard.writeText(text); const copy_elem = document.getElementById("addr_copy_" + element_id); copy_elem.innerHTML = CLIPBOARD_CHECK_SVG; - setInterval(function() { + setTimeout(function() { copy_elem.innerHTML = CLIPBOARD_SVG; - }, 2000); + }, 1500); } });