On Fri, Nov 14, 2025 at 04:08:40PM -0800, Jacob Lifshay via ffmpeg-devel wrote:
> On Fri, Nov 14, 2025 at 1:45 PM Michael Niedermayer via ffmpeg-devel
> <[email protected]> wrote:
> > +        <span onclick="revealAndCopy('emn')">
> > +          <img 
> > src="https://ethereum.org/images/assets/svgs/eth-diamond-black.svg"; 
> > alt="Ethereum" width="32" height="32">
> > +          <img 
> > src="https://upload.wikimedia.org/wikipedia/commons/4/4a/Circle_USDC_Logo.svg";
> >  alt="USDC" width="32" height="32">
> > +        </span>
> > +        <span onclick="revealAndCopy('bmn')">
> > +          <img 
> > src="https://upload.wikimedia.org/wikipedia/commons/4/46/Bitcoin.svg"; 
> > alt="Bitcoin" width="32" height="32">
> > +        </span>
> > +        <span id='emn' 
> > style='display:none'>0x688233B52Df5fcf563c8181b576728619567DFbb</span><br>
> > +        <span id='bmn' 
> > style='display:none'>bc1q55est04pzyvf0yezf2h7a98m72aunrxdt24jt8</span><br>
> 
> Please make it work when JavaScript is not available/disabled, which
> some people like to do for security, ad-blocking, or because their
> favorite browser doesn't support JavaScript at all (e.g. Lynx).

ok,

below can probably be formatted better but it should do the trick

diff --git a/src/donations b/src/donations
index 54c7388..73499c2 100644
--- a/src/donations
+++ b/src/donations
@@ -72,14 +72,35 @@
         <div class="text-center">
         <a class="btn btn-success btn-lg"
            href="https://paypal.me/niedermayermichael";>PayPal</a><br><br>
-        <div class="pp-amounts">
-        </div>
+        <div class="text-center">
+        <span onclick="revealAndCopy('emn')">
+          <img 
src="https://ethereum.org/images/assets/svgs/eth-diamond-black.svg"; 
alt="Ethereum" width="32" height="32">
+          <img 
src="https://upload.wikimedia.org/wikipedia/commons/4/4a/Circle_USDC_Logo.svg"; 
alt="USDC" width="32" height="32">
+        </span>
+        <span onclick="revealAndCopy('bmn')">
+          <img 
src="https://upload.wikimedia.org/wikipedia/commons/4/46/Bitcoin.svg"; 
alt="Bitcoin" width="32" height="32">
+        </span><br>
+        <span id='emn'>0x688233B52Df5fcf563c8181b576728619567DFbb</span><br>
+        <span id='bmn'>bc1q55est04pzyvf0yezf2h7a98m72aunrxdt24jt8</span><br>
       </div>
     </div> <!-- well -->
   </div> <!-- col -->
 </div> <!-- row -->


+<script>
+function revealAndCopy(id) {
+  var c = document.getElementById(id);
+
+  c.style.display = c.style.display === "none" ? "block" : "none";
+
+  navigator.clipboard.writeText(c.innerHTML);
+}
+
+document.getElementById("emn").style.display = "none";
+document.getElementById("bmn").style.display = "none";
+</script>
+
 <div class="row">
   <div class="col-md-offset-4 col-md-8">
   </div>


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to