scottycc/coinwidget.com — pull request #11 by q-- (2014-01-07 13:10:11+00:00)
Title: Allow asynchronous loading of CoinWidget

Currently, CoinWidget needs to wait until the `coin.js` script is loaded, blocking the loading of a page.

With the new code, it will be possible to do it as follows:

Bottom of the page:

//Asynchronous: replace an element with the CoinWidget
CoinWidgetCom.go({

/* make sure you update the wallet_address or you will not get your donations */
wallet_address: "122MeuyZpYz4GSHNrF98e6dnQCXZfHJeGS"

, currency: "bitcoin"
, counter: "count"
, alignment: "bl"
, qrcode: true
, auto_show: false
, lbl_button: "Donate"
, lbl_address: "Donate Bitcoin to this Address:"
, lbl_count: "donations"
, lbl_amount: "BTC"
}, "#put_coinwidget_here");