From: Matt Corallo Date: Fri, 12 Jul 2024 17:37:40 +0000 (+0000) Subject: Wipe copied indicator after 2 seconds X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=dc14296594633eec0ea2a061e708e6b5e2331375;p=satsto.me Wipe copied indicator after 2 seconds --- diff --git a/index.html b/index.html index 3a3a08c..cdda863 100644 --- a/index.html +++ b/index.html @@ -216,7 +216,11 @@ } window.copy = function(text, element_id) { navigator.clipboard.writeText(text); - document.getElementById("addr_copy_" + element_id).innerHTML = CLIPBOARD_CHECK_SVG; + const copy_elem = document.getElementById("addr_copy_" + element_id); + copy_elem.innerHTML = CLIPBOARD_CHECK_SVG; + setInterval(function() { + copy_elem.innerHTML = CLIPBOARD_SVG; + }, 2000); } });