Need help with jquery-qrcode?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jeromeetienne
4.7K Stars 2.5K Forks MIT License 37 Commits 87 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 1,985
HTML
JavaScr...
Shell
a-frame
16 commits
# 76,430
solidit...
rtl
HTML
smart-c...
1 commit
# 397
Zsh
Bootstr...
Nim
assembl...
1 commit
# 81,542
HTML
JavaScr...
1 commit
# 65,483
Emacs
emacs-l...
keymap
Clojure
1 commit
# 81,501
C#
HTML
1 commit
# 81,535
HTML
JavaScr...
1 commit
# 24,346
Ansible
tempera...
thinkpa...
Symfony
1 commit

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, don't 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


Then create a DOM element which gonna contains the generated qrcode image. Lets say a 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 :)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.