-
-
Save mkreyman/31a1d7a2ea3f4d79ca8742da056cb8f4 to your computer and use it in GitHub Desktop.
Quick and dirty bitcoin donation button, as seen on https://gobblin.se
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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