From 8687daecfd941c378e800923fe8a9f06a0fd41fa Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 15 Aug 2024 14:29:36 +1000 Subject: [PATCH] fix: Update tooltip to say copied when you copy a crypto address --- server.py | 2 +- templates/donate.html | 4 ++++ templates/index.html | 11 ++++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 1f19ac9..c7d1ab3 100644 --- a/server.py +++ b/server.py @@ -710,7 +710,7 @@ def donate(): + '" alt="QR Code" style="width: 100%; max-width: 200px; margin: 20px auto;">' ) - copyScript = '' + copyScript = '' cryptoHTML += copyScript return render_template( diff --git a/templates/donate.html b/templates/donate.html index 80979bd..3f19858 100644 --- a/templates/donate.html +++ b/templates/donate.html @@ -151,6 +151,10 @@ textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); + const tooltips = document.querySelectorAll('.tooltip-inner'); + tooltips.forEach(tooltip => { + tooltip.innerText = 'Copied!'; + }); } const btc = document.getElementById('btc'); diff --git a/templates/index.html b/templates/index.html index 5df76b6..754bff0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -194,7 +194,7 @@ Check them out here!   Github
  •   Stripe
  • -

    HNS:
    nathan.woodburn{{HNS}}
    BTC:
    {{BTC}}
    SOL:
    woodburn.sol{{SOL}}
    ETH:
    woodburn.au{{ETH}}OTHER OPTIONS

    +

    HNS:
    nathan.woodburn{{HNS}}
    BTC:
    hushedmercury55@walletofsatoshi.com{{BTC}}
    SOL:
    woodburn.sol{{SOL}}
    ETH:
    woodburn.au{{ETH}}OTHER OPTIONS

    @@ -222,6 +222,11 @@ Check them out here!