diff --git a/app.js b/app.js
index 35c7dfb..5fca775 100644
--- a/app.js
+++ b/app.js
@@ -64,27 +64,39 @@ document.querySelector("#doge-qr-link a").addEventListener("click", function(eve
// Watch for click on BTC QR code link
document.querySelector("#btc-qr-link a").addEventListener("click", function(){
- console.log('BTC QR Clicked');
// Hide all other QR codes
-
+ if (document.contains(document.querySelector("#eth-js-qr"))) {
+ document.querySelector("#eth-js-qr").remove();
+ }
+ if (document.contains(document.querySelector("#doge-js-qr"))) {
+ document.querySelector("#doge-js-qr").remove();
+ }
// Display BTC QR code
-
+ document.querySelector("#btcwall").insertAdjacentHTML("afterend", "");
});
// Watch for click on ETH QR code link
document.querySelector("#eth-qr-link a").addEventListener("click", function(){
- console.log('ETH QR Clicked');
// Hide all other QR codes
-
+ if (document.contains(document.querySelector("#btc-js-qr"))) {
+ document.querySelector("#btc-js-qr").remove();
+ }
+ if (document.contains(document.querySelector("#doge-js-qr"))) {
+ document.querySelector("#doge-js-qr").remove();
+ }
// Display ETH QR code
-
+ document.querySelector("#ethwall").insertAdjacentHTML("afterend", "
");
});
// Watch for click on DOGE QR code link
document.querySelector("#doge-qr-link a").addEventListener("click", function(){
- console.log('DOGE QR Clicked');
// Hide all other QR codes
-
+ if (document.contains(document.querySelector("#btc-js-qr"))) {
+ document.querySelector("#btc-js-qr").remove();
+ }
+ if (document.contains(document.querySelector("#eth-js-qr"))) {
+ document.querySelector("#eth-js-qr").remove();
+ }
// Display DOGE QR code
-
+ document.querySelector("#dogewall").insertAdjacentHTML("afterend", "
");
});
diff --git a/index.html b/index.html
index a869b56..4354d26 100644
--- a/index.html
+++ b/index.html
@@ -74,9 +74,9 @@
PayPal
bc1qxj26ssa24a7x8mp0rykn80d6v088p996mt0kcc
0x41C1689FF03a11205aB22dd0d97889065E971D7f
DC27kzyjxVgSjuPj6NJkadKibbf4S9UgGd
bc1qxj26ssa24a7x8mp0rykn80d6v088p996mt0kcc
0x41C1689FF03a11205aB22dd0d97889065E971D7f
DC27kzyjxVgSjuPj6NJkadKibbf4S9UgGd