@shardlabs/polkadot-donation-widget

Using CDN: Add the following script to the end of your <head> section.

Usage no npm install needed!

<script type="module">
  import shardlabsPolkadotDonationWidget from 'https://cdn.skypack.dev/@shardlabs/polkadot-donation-widget';
</script>

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>