Only showing small logos, that show and copy the address when clicked
Signed-off-by: Michael Niedermayer <[email protected]>
---
src/donations | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/donations b/src/donations
index 54c7388..c92c438 100644
--- a/src/donations
+++ b/src/donations
@@ -1,5 +1,15 @@
<h1>Donate to FFmpeg</h1>
+<script>
+function revealAndCopy(id) {
+ var c = document.getElementById(id);
+
+ c.style.display = c.style.display === "none" ? "block" : "none";
+
+ navigator.clipboard.writeText(c.innerHTML);
+}
+</script>
+
<p class="with-icon">
<span class="pull-left" style="color: #e55"><i class="fa fa-heart
fa-5x"></i></span>
Donations will be used to fund expenses related to development
@@ -72,8 +82,16 @@
<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>
+ <span id='emn'
style='display:none'>0x688233B52Df5fcf563c8181b576728619567DFbb</span><br>
+ <span id='bmn'
style='display:none'>bc1q55est04pzyvf0yezf2h7a98m72aunrxdt24jt8</span><br>
</div>
</div> <!-- well -->
</div> <!-- col -->
--
2.51.0
_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]