@shardlabs/polkadot-donation-widget

1.0.2 • Public • Published

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>

Package Sidebar

Install

npm i @shardlabs/polkadot-donation-widget

Weekly Downloads

7

Version

1.0.2

License

Apache-2.0

Unpacked Size

2.86 MB

Total Files

4

Last publish

Collaborators

  • boto_shardlabs
  • fabijanc
  • edi_shard_labs
  • jakic007