Skip to content

A jQuery plugin to include QR images in your sites

Notifications You must be signed in to change notification settings

leison/jQuery-QR-Image-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

It is very easy to use this plugin. 

The very first thing you have to do is to include jQuery (obviously). Then, you'll have to include the plugin. 

Once you've done that, you can try this:





$("img").loadQRText("Hello world"); // This will turn every image into a QR Image which says "Hello world"
$("#my_first_image").loadQRUrl("brauliovaldivielso.eu"); //This will turn the image whose id is "my_first_image" into a QR Code which says 'https://brauliovaldivielso.eu'
$(".image_class").loadQRPhone("612879545"); // I guess that you know what this does





In addition, you can use callback functions. Those are like:





function callback(myTextInQR)
{
  alert(myTextInQR);
}





$("#qr_image").loadQRPhone('645645645', callback); // This would show you "tel:645645645" in addition to show the image







So I think that that's everything.

About

A jQuery plugin to include QR images in your sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published