Skip to content

kormithozine/jquery-qrcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery.qrcode.js

jquery.qrcode.js is a standalone jQuery plugin that generates QR codes. It lets you easily add QR codes to your website. It doesn't rely on external services which can go offline or add loading time. Also, it weighs less than 4 KB after minify + gzip, and it doesn't download any images.

This library is based on qrcode-generator, a library that generates QR codes in various programming languages. jquery.qrcode.js acts as a wrapper for this library, letting you easily include it in your own code.

Example

First, include jquery.qrcode.js in your website with a script tag:

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

Second, create a container to hold the generated QR code:

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

To finish, add the QR code to the container using:

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

See a finished example here.

You can also set the width and height of the generated QR code:

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

Support

jquery.qrcode.js is available on GitHub under the MIT license. If you find bugs, please open issues on GitHub. Feel free to fork, modify, and have fun with the library :)

About

qrcode generation standalone (doesn't depend on external services)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.0%
  • HTML 12.9%
  • Makefile 3.1%