Skip to content

Shard-Labs/polkadot-donation-widget

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published