pay-with-bitcoin.html (824B)
1 --- 2 --- 3 4 <script> 5 function copyAddress() { 6 const text = document.getElementById("btc-address").textContent; 7 8 navigator.clipboard.writeText(text).then(() => { 9 console.log("Address copied!"); 10 }).catch(err => { 11 console.error("Copy failed:", err); 12 }); 13 } 14 </script> 15 16 <div class="btc-card"> 17 <div class="btc-header"> 18 <i class="btc-icon fa-brands fa-bitcoin fa-3x"></i> 19 </div> 20 21 <div class="btc-qr"> 22 {{< qr text="bc1q6px9f0tl3r8qf5l304g2plyae5fgvw6yetzvcu" />}} 23 </div> 24 25 <div class="btc-address-row"> 26 <p class="btc-address" id="btc-address">bc1q6px9f0tl3r8qf5l304g2plyae5fgvw6yetzvcu</p> 27 <button class="btc-copy-icon" onclick="copyAddress()"> 28 <i class="fa-solid fa-copy"></i> 29 </button> 30 </div> 31 <p class="btc-note">Scan or copy the address to send Bitcoin</p> 32 </div> 33