Skip to content

vicengd/jquery-jmybitcoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

jMyBitcoin: A jQuery Bitcoin plugin. Shows the value of bitcoin in the currency of our choice.

This plugin uses the API of blockchain.info and the data is cached for 15 min. The "cache" folder must have read and write permissions (chmod 777).

Getting Started

  1. Include the JS file into your page after jQuery:
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="jquery.jmybitcoin.js"></script>
  1. Create you empty container and give it a class:
	<div>Un bitcoin vale actualmente <span class="jbtc"></span> €</div>
  1. Call the jmybitcoin function to any element:
	<script>
		$(function()
		{
			$('.jbtc').jmybitcoin('EUR');
		});
	</script>

License

Copyright (c) 2014 Vicente García. Licensed under the MIT license.

About

A jQuery Bitcoin plugin. Shows the value of bitcoin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published