work-in-progress
jQuery Bitcoin utilities.
JS Fiddle: http://jsfiddle.net/alfg/za2pyhm5/
-
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
-
Include plugin's code:
<script src="dist/jquery.btc.min.js"></script>
-
Add markup
<div class="btc" data-usd="10.00">$10.00</div>
-
Call the plugin:
$(".btc").btc();
That's all! jquery-btc will fetch the current rates from Coinbase (via Firebase) and append the conversion after your price.
MIT License © Alfred Gutierrez