1.0.2 • Published 3 years ago

@shardlabs/polkadot-donation-widget v1.0.2

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
3 years ago

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>