]> git.bitcoin.ninja Git - satsto.me/commitdiff
Fix address copy wipe timer and make it hover-interactive
authorMatt Corallo <git@bluematt.me>
Tue, 16 Jul 2024 18:37:46 +0000 (18:37 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 16 Jul 2024 18:37:46 +0000 (18:37 +0000)
index.html

index 51d1326524e3ac9cd68b7d102f7e1a681859c6aa..02cca34febb731ee892b01147bdccb2507ff59c6 100644 (file)
                                float: right;
                                cursor: pointer;
                        }
+                       .address-copy:hover {
+                               transform: scale(0.9, 0.9);
+                       }
                        .clipboard-logo {
                                height: 17px;
                        }
                                        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);
                                }
                        });
                </script>