Donation button for cryptocurrencies
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
build
config
coverage
public
scripts
src
.gitignore
LICENSE.md
README.md
_config.yml
package.json
screenshot.png
setupTests.js
yarn.lock

README.md

Cryptotip

Cryptotip screenshot

Donation button for cryptocurrencies.

coverage

Usage

  1. import the css and js files
<head>
    ...
    <link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/vincentdnl/Cryptotip/master/build/static/css/main.c0757ce9.css">
    ...
</head>
<body>
    ...
    <!-- Here goes the div --> 
    <script src="https://cdn.rawgit.com/vincentdnl/Cryptotip/master/build/static/js/main.84eed617.js"></script>
    ...
</body>
  1. create your donation box widget
<div
        id="cryptotip"
        data-bitcoin-address="3CahdmxRvrCiZVZLMpFchbDMVsdLyu69uF"
        data-bitcoin-label="My donation address"
        data-modal-title="Support my work with Bitcoin!"
></div>

Reference

  • data-bitcoin-address: your bitcoin address
  • data-bitcoin-label: the label in the donation uri (see: BIP-0021)
  • data-modal-title: the title that will be displayed on the modal

Licenses

See LICENSE.md

Icons are under Creative Commons Attribution 4.0: https://fontawesome.com/license