Fetches addresses and amounts from P2Pool's patron_sendmany
.
Obtain jquery.min.js
and p2pool-donation.min.js
.
Insert
<script type="text/javascript" src="link/to/jquery.min.js"></script>
<script type="text/javascript" src="link/to/p2pool-donation.min.js"></script>
into the head
section of the webpage, adjusting the paths.
Insert
<div id="p2pool-donation"></div>
where you want the button to appear. Use <span>
for inline alignment.
Insert
<script type="text/javascript">
$(document).ready(function () {
var button = new P2PoolDonationButton({id: "p2pool-donation", url: "http://your.address:9332/"});
button.create();
});
</script>
into the head
section of the webpage, adjusting the address
(keep the trailing slash at the end).
id
*: ID of the placeholder.url
*: Base URL of P2Pool's web interface. If the button appears on P2Pool's stats page the URL can simply be"/"
.coin
: Displayed currency."BTC"
by default.min
: Minimum donation amount.0.001
by default.
* required