Skip to content

Commit

Permalink
Merge pull request #16 from coffeedoughnuts/master
Browse files Browse the repository at this point in the history
added bower install instructions to README.md
  • Loading branch information
lindell committed Sep 5, 2014
2 parents 7710344 + 11f8d1d commit ab29ee8
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ The plugin uses Html5Canvas to generate draw the barcodes
* ITF (Interleaved 2 of 5)
* ITF14

Bower
----
As well as downloading the files and including them regularly,
you can use [Bower](http://bower.io) to install and manage the library
````
bower install jsbarcode --save
````

Use
----
####There are two ways of using the library:
Expand Down Expand Up @@ -59,27 +67,27 @@ $("#barcode").JsBarcode("Hi!");

#### Will generate this image:
![Result](http://lindell.github.io/JsBarcode/README_images/hi.png)



#### This code:
````javascript
$("#barcode").JsBarcode("Javascript is fun!",{width:1,height:25});
````
#### Will generate this image:
![Result](http://lindell.github.io/JsBarcode/README_images/javascript_is_fun.png)



#### This code:
````javascript
$("#barcode").JsBarcode("9780199532179",{format:"EAN",displayValue:true,fontSize:20});
````
#### Will generate this image:
![Result](http://lindell.github.io/JsBarcode/README_images/ean.png)



#### This code:
````javascript
setInterval(function(){
Expand All @@ -105,4 +113,4 @@ Use the [closure compiler](http://closure-compiler.appspot.com/home) with this i
// @code_url https://raw.github.com/lindell/JsBarcode/master/ITF14.js
// @code_url https://raw.github.com/lindell/JsBarcode/master/JsBarcode.js
// ==/ClosureCompiler==
````
````

0 comments on commit ab29ee8

Please sign in to comment.