@shardlabs/polkadot-donation-widget
v1.0.2
Published
## Install
Downloads
21
Readme
Polkadot Donation Widget
Install
Using CDN: Add the following script to the end of your <head>
section.
<script src="https://unpkg.com/@shardlabs/polkadot-donation-widget@latest/dist/bundle.min.js"></script>
Usage
Binding the widget
<script>
polkadotDonationWidget.bind(document.body, {
beneficiary: "14nKKuW8ZH...",
});
</script>
Use custom button element
<script>
polkadotDonationWidget.bind(document.body, {
beneficiary: "14nKKuW8ZH...",
element: document.getElementById("my-button"),
});
</script>