8000 GitHub - chezinut/coinwidget: The Bitcoin, Litecoin, Dogecoin and Dash Donation Button
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chezinut/coinwidget

 
 

Repository files navigation

coinwidget++

The Bitcoin, Litecoin, Dogecoin and Dashcoin Donation Button

Donations are welcome and will go towards further development of this project as well as other crypto related projects. Use the wallet addresses below to donate.

BTC: 34tCGYAz3nhVHrR2mVghX1CmzCRn42Xjnd
LTC: LiQx6gwLwXM8C1EHVAF7DqVdNFvgHgojmj
DOGE: DAiPWww7JFK8pJV8c2SaXVugLHgWmU5yey

Thank you for your support !

Installation

A. Grab the latest version from GitHub: https://github.com/chezinut/coinwidget

B. Open widget/coin.js and find: source: 'http://coinwidget.com/widget/' Change the URL portion of this line to your own server/path.

C. Include js and css in the head of the page.

<script type="text/javascript" src="./res/coin.js"></script>

D. Paste this code where you want to see the button

<div id="load_here"></div>

and to end of html goes

<script type="text/javascript">
	CoinWidgetCom.go({
		wallet_address: "34tCGYAz3nhVHrR2mVghX1CmzCRn42Xjnd"
		, currency: "bitcoin"
		, counter: "count"
		, alignment: "bl"
		, qrcode: false
		, auto_show: false
		, auto_show: true
		, lbl_button: "buy me a beer"
		, lbl_address: "Donate Bitcoin to this Address:"
		, lbl_count: "donations"
		, lbl_amount: "BTC"
	}, "#load_here");
</script>

E. Customize!

Option Default Value Acceptable Values Description
qrcode true true - false Set to true if you want to show the QR code generator that appears at the bottom left of the window. Set to false to hide the QR code icon.
auto_show false true - false Set to true if you want the window to auto appear as soon as the counter finishes loading.
lbl_button Donate Bitcoin (anything) Change the text of the label on the main button.
lbl_address My Bitcoin Address: (anything) The text that appears above your wallet address within the window.
onShow null function Execute a function when the window opens.
onHide null function Execute a function when the window closes.

F. (optional) Open lookup.php and consider implementing a caching method based on your own style and preference.

Example Code

See the file: code-sample.html

The complete list of the options and acceptable values can be found on http://coinwidget.com/.

You can also use the wizard on http://coinwidget.com/ to generate linking codes, just be sure to change: <script src="http://coinwidget.com/widget/coin.js"></script> to use your own hosted copy of coin.js.

Authors

License

All code is licensed under The MIT License (see LICENSE file for details).

About

The Bitcoin, Litecoin, Dogecoin and Dash Donation Button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 82.6%
  • JavaScript 9.3%
  • CSS 6.6%
  • HTML 1.5%
0