From dc14296594633eec0ea2a061e708e6b5e2331375 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 12 Jul 2024 17:37:40 +0000 Subject: [PATCH] Wipe copied indicator after 2 seconds --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } }); -- 2.39.5