Download
User Rating: 3.1/5 ( 2 votes)
ClassyQR is a jQuery plugin that will allow you to embed QR codes into your web pages.
QR codes are a popular type of two-dimensional barcode. They are also known as hardlinks or physical world hyperlinks.
QR codes store up to 4,296 alphanumeric characters of arbitrary text. This text can be anything, for example URL, contact information, a telephone number, even a poem! QR codes can be read by an optical device with the appropriate software. Such devices range from dedicated QR code readers to mobile phones.
Source: class.pm
1. INCLUDE JS FILES
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/jquery.classyqr.min.js"></script>
2. HTML
<img src="#" id="qr1" alt="" />
3. JAVASCRIPT
$("#qr1").ClassyQR({
type: 'text',
text: 'This is the text to embed'
});
4. OPTIONS
-
size - size of the QR code. Can be omitted, default is 230
-
encoding - encoding of the QR. Can be omitted, could be one of: UTF-8, Shift_JISorISO-8859-1, default is UTF-8
-
type - QR type. Can be: text, url, sms, email, call, location, wifi or contact, default is text
-
create - whether the plugin will create an image tag inside the container or just replace the src of an already existing image tag, can be true or false, default is false
-
text - the text to encode in the QR. Only needed for text, email or sms QR codes
-
number - the phone number if you want to create a sms or call QR code
-
email - the email address in case you want to create an email QR code
-
subject - the subject in case you want to create an email QR code
-
latitude - the geographical latitude for the geolocation QR code
-
longitude - the geographical longitude for the geolocation QR code
-
address - the home address in case you want to create a contact QR code
-
name - the name of the person in case you want to create a contact QR code
-
url - the URL address in case you want to create an url or contact QR code
-
alt - the alt code for the created/replaced image. Can be omitted
-
note - a note in case you want to create a contact QR code