Skip to content

Instantly share code, notes, and snippets.

@joar
Last active September 27, 2023 07:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save joar/5725101 to your computer and use it in GitHub Desktop.
Save joar/5725101 to your computer and use it in GitHub Desktop.
Quick and dirty bitcoin donation button, as seen on https://gobblin.se
<style>
.donate-button {
text-align: center;
}
.donate-button .bitcoin-address {
font-size: 1.5em;
}
</style>
<div class="donate-button">
<a class="donate-button-link" href="#donate">
<img src="http://ef3ae845b6eed6ec4024-8a0a46e5f1a5cc9854958bc3503f0f88.r40.cf1.rackcdn.com/donate_64.png" alt="Donate Ƀitcoin" />
</a>
<div class="bitcoin-address">Ƀitcoin address: <code>1Q3p3N5Eu7roSFFmjMevD7eymtpfC7urSk</code> <3</div>
</div>
<script>
$(document).ready(function () {
$('.donate-button-link').on('click', function (e) {
e.preventDefault();
$(this).slideUp(100);
$('.bitcoin-address').slideDown(100);
});
});
// Hide address immediately if JS is enabled
document.querySelector('.bitcoin-address').style.display = 'none';
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment