Skip to content

alfg/jquery-btc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

work-in-progress

jQuery-BTC

jQuery Bitcoin utilities.

JS Fiddle: http://jsfiddle.net/alfg/za2pyhm5/

Usage

  1. Include jQuery:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
  2. Include plugin's code:

    <script src="dist/jquery.btc.min.js"></script>
  3. Add markup

<div class="btc" data-usd="10.00">$10.00</div>
  1. 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.

License

MIT License © Alfred Gutierrez