Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
d4tis authored Feb 12, 2024
1 parent 243a973 commit 1bb8c1f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ <h2><a href="lightning:zap@d4tis.me" style="text-decoration:none;color:inherit;"
<a href="https://bitcoin.rocks" class="ping-button" target="_blank"></a>

<script>
// JavaScript to handle LNURL button click
document.getElementById('lnurl-button').addEventListener('click', function() {
document.getElementById('qr-popup').style.display = 'flex';
});
// JavaScript to handle LNURL button click
document.getElementById('lnurl-button').addEventListener('click', function() {
document.getElementById('qr-popup').style.display = 'flex';
});

// Close popup when close button is clicked
document.getElementById('popup-close').addEventListener('click', function() {
document.getElementById('qr-popup').style.display = 'none';
});
</script>
// Close popup when close button is clicked
document.getElementById('popup-close').addEventListener('click', function(event) {
event.preventDefault(); // Prevent the default behavior of the anchor tag
document.getElementById('qr-popup').style.display = 'none';
});
</script>
</body>
</html>

0 comments on commit 1bb8c1f

Please sign in to comment.