No description
Find a file
Bjarte Johansen 386c0b4353 Fixed gray lines in between blocks.
The distance between the highest point the next point can be and the
lowest point the current can be is calculated and then it fills from
the closest integer to the current point.

Conflicts:

	src/jquery.qrcode.js
2012-03-26 13:13:25 +02:00
examples fix error in table renderer 2011-11-11 13:01:40 +01:00
src Fixed gray lines in between blocks. 2012-03-26 13:13:25 +02:00
index.html debugging table renderer 2011-09-29 15:00:21 +02:00
jquery.qrcode.min.js debugging table renderer 2011-09-29 15:00:21 +02:00
Makefile bug fi in deployment 2011-04-07 14:35:15 +02:00
MIT-LICENSE.txt more work 2011-04-07 09:22:32 +02:00
README.md with a new line, so markdown formats it properly 2011-11-11 10:53:38 +01:00

jquery.qrcode.js

jquery.qrcode.js is jquery plugin for a pure browser qrcode generation. It allow you to easily add qrcode to your webpages. It is standalone, less than 4k after minify+gzip, no image download. It doesnt rely on external services which go on and off, or add latency while loading. It is based on a library which build qrcode in various language. jquery.qrcode.js wraps it to make it easy to include in your own code.

Show, dont tell, here is a example

How to Use It

Let me walk you thru it. First include it in your webpage with the usual script tag

<script type="text/javascript" src="jquery.qrcode.min.js"></script>

Then create a DOM element which gonna contains the generated qrcode image. Lets say a div

<div id="qrcode"></div>

Then you add the qrcode in this container by

jquery('#qrcode').qrcode("this plugin is great");

This is it. see it live.

You can set the height and width of the generated qrcode:

jquery('#qrcode').qrcode({width: 64,height: 64,text: "size doesn't matter"});

Conclusion

jquery.qrcode.js is available on github here under MIT license. If you hit bugs, fill issues on github. Feel free to fork, modify and have fun with it :)