README.md
44 lines
| 1 | # QRCode.js |
| 2 | QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. |
| 3 | QRCode.js has no dependencies. |
| 4 | |
| 5 | ## Basic Usages |
| 6 | ``` |
| 7 | <div id="qrcode"></div> |
| 8 | <script type="text/javascript"> |
| 9 | new QRCode(document.getElementById("qrcode"), "http://jindo.dev.naver.com/collie"); |
| 10 | </script> |
| 11 | ``` |
| 12 | |
| 13 | or with some options |
| 14 | |
| 15 | ``` |
| 16 | var qrcode = new QRCode("test", { |
| 17 | text: "http://jindo.dev.naver.com/collie", |
| 18 | width: 128, |
| 19 | height: 128, |
| 20 | colorDark : "#000000", |
| 21 | colorLight : "#ffffff", |
| 22 | correctLevel : QRCode.CorrectLevel.H |
| 23 | }); |
| 24 | ``` |
| 25 | |
| 26 | and you can use some methods |
| 27 | |
| 28 | ``` |
| 29 | qrcode.clear(); // clear the code. |
| 30 | qrcode.makeCode("http://naver.com"); // make another code. |
| 31 | ``` |
| 32 | |
| 33 | ## Browser Compatibility |
| 34 | IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC. |
| 35 | |
| 36 | ## License |
| 37 | MIT License |
| 38 | |
| 39 | ## Contact |
| 40 | twitter @davidshimjs |
| 41 | |
| 42 | [](https://bitdeli.com/free "Bitdeli Badge"](https://bitdeli.com/free "Bitdeli Badge"](https://bitdeli.com/free "Bitdeli Badge") |
| 43 | |
| 44 |