资源说明:Dynamic checkout button for MtGox
![MtGox](https://payment.mtgox.com/img/mt.gox.png) The MtGox Checkout Button is a simple cross-browser checkout button that update in real-time based on the current bitcoin price and can be implemented very easily on a website. Documentation ============= See the following files: * [src/less/mtgox.less](http://mtgox.github.com/checkout-button/html/src-less-mtgox.html) ([source](https://github.com/MtGox/checkout-button/blob/master/src/less/mtgox.less)) * [src/coffee/mtgox.coffee](http://mtgox.github.com/checkout-button/mtgox.html) ([source](https://github.com/MtGox/checkout-button/blob/master/src/coffee/mtgox.coffee)) Building ======== To build the distribution files just run the following commands from the main folder ```bash # install dependencies [user@host]$ npm install # build everything [user@host]$ ./jake ``` To build only parts of the dist/doc, see ```./jake --tasks``` and run ```./jake taskname``` Usage ===== The user needs to add 2 components in its page, a span using the class **mtgox** and three **data-** tags: - **data-id**: The transaction id - **data-amount**: The transaction amount - **data-currency**: The transaction currency The content of the span element is to the user discretion but it is recommended to provide an alternate button with the payment link statically provided inside. Exemple of a recommended default: Once that span is on the page, the user includes our javascript file and all tags will be automatically transformed Internal -------- This is the HTML generated by the javascript file:
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。