jQuery Plugin To Show The Value Of One Bitcoin - jmybitcoin

jQuery Plugin To Show The Value Of One Bitcoin - jmybitcoin
File Size: 3.15 KB
Views Total: 850
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

jmybitcoin is a plugin worked with jQuery and PHP that has the ability to cache and show the current value of one bitcoin by using blockchain.info's API, which is one of the most popular online bitcoin wallets. To avoid overloading the server with queries, the price is cached for 15 minutes. The "cache" folder must have read and write permissions (chmod 777).

How to use it:

1. Upload the bitcoin.php, jquery.jmybitcoin.js and cache folder to your web server.

2. Include the jQuery jmybitcoin plugin after jQuery library on your web page..

<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="jquery.jmybitcoin.js"></script>

3. Create an empty container to output the value of one bitcoin.

<div>A Bitcoin currently wort <span class="eur"></span> €</div>
<div>A Bitcoin currently wort <span class="us"></span> $</div>

4. Call the plugin and you're done.

<script>
$(function(){
$('.eur').jmybitcoin('EUR');
$('.us').jmybitcoin();
});
</script>

This awesome jQuery plugin is developed by vicentegarcia. For more Advanced Usages, please check the demo page or visit the official website.