diff --git a/app.js b/app.js index bc2b007..b5a74cf 100644 --- a/app.js +++ b/app.js @@ -12,9 +12,7 @@ document.querySelector('.value-block').addEventListener('toggle', function() { setTimeout(() => { valueBlock.scrollIntoView({ behavior: "smooth" }); }, 150); - } else { - // Scroll to top of button list when value block is closed - } + } }); // @@ -122,3 +120,15 @@ document.querySelector("#doge-qr-link a").addEventListener("click", function(){ }, 150); } }); + +// An attempt at replacing the browser alert with something nicer +// Watch for click on BTC wallet address +//document.getElementById("btcwall").addEventListener("click", function(){ +// // Copy BTC address to clipboard +// navigator.clipboard.writeText(btcadd); +// // Display alert to confirm the address was added to clipboard +// btcwall.insertAdjacentHTML("afterend", "
Copied
"); +// setTimeout(() => { +// document.querySelector("#btc-js-copy").remove(); +// }, 2000); +//});