]> git.bitcoin.ninja Git - satsto.me/commitdiff
Fix copy jumping to top of page
authorMatt Corallo <git@bluematt.me>
Fri, 12 Jul 2024 20:20:33 +0000 (20:20 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 12 Jul 2024 20:20:33 +0000 (20:20 +0000)
index.html

index 97bee845a5c38b740921b10772579e57e034dfce..9324e10f75b2662449502d18a428047e0b052e8a 100644 (file)
                        }
                        .address-copy {
                                float: right;
+                               cursor: pointer;
                        }
                </style>
                <title>BIP 353 Human Readable Names Resolver</title>
                                        var addr_idx = 0;
                                        const base_and_params = bip353.substring(8).split("?");
                                        const push_table_entry = function(ty, uri_pfx, contents) {
-                                               var value = "<h2 class='address-type'>" + ty + "<a class='address-copy' id='addr_copy_" + addr_idx + "' href='#' onclick=\"copy('" + contents + "', " + addr_idx + ")\">" + CLIPBOARD_SVG + "</a></h2>";
+                                               var value = "<h2 class='address-type'>" + ty + "<a class='address-copy' id='addr_copy_" + addr_idx + "' onclick=\"copy('" + contents + "', " + addr_idx + ")\">" + CLIPBOARD_SVG + "</a></h2>";
                                                if (!/^[\p{ASCII}]*$/u.test(contents)) {
                                                        value = "Invalid";
                                                } else {