All Projects → chuckfairy → Vanillaqr.js

chuckfairy / Vanillaqr.js

Licence: mit
The galaxy's most resilient javascript QR code generator

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vanillaqr.js

QR Attendance
This project is an attendance system which provides attendance on scanning QR code. The attendance is stored in Excel sheet named with the date of attendance taken. In this folder a file named Generate.py is used to generate the QR code for given input file. Attend.py file is for scanning the QR code
Stars: ✭ 17 (-67.92%)
Mutual labels:  qrcode, qrcode-generator
Ngx Kjua
Angular QR-Code generator component using kjua.
Stars: ✭ 51 (-3.77%)
Mutual labels:  qrcode-generator, qrcode
qr
🔲 Generate QR Codes straight in your terminal!
Stars: ✭ 34 (-35.85%)
Mutual labels:  qrcode, qrcode-generator
qrcode
A simple library for generating QR codes in C.
Stars: ✭ 23 (-56.6%)
Mutual labels:  qrcode, qrcode-generator
Php Qrcode
A QR Code generator for PHP7.4+
Stars: ✭ 685 (+1192.45%)
Mutual labels:  qrcode-generator, qrcode
pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (-56.6%)
Mutual labels:  qrcode, qrcode-generator
Barcode
a barcode creation lib for golang
Stars: ✭ 953 (+1698.11%)
Mutual labels:  qrcode-generator, qrcode
wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (+290.57%)
Mutual labels:  qrcode, qrcode-generator
Efqrcode
A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
Stars: ✭ 4,121 (+7675.47%)
Mutual labels:  qrcode-generator, qrcode
Fehelper
😍FeHelper--Web前端助手(Awesome!Chrome & Firefox & MS-Edge Extension, All in one Toolbox!)
Stars: ✭ 3,880 (+7220.75%)
Mutual labels:  qrcode-generator, qrcode
Qrcode
QR-code encoder/decoder (no image recognition)
Stars: ✭ 34 (-35.85%)
Mutual labels:  qrcode-generator, qrcode
Qml Snippet
some qml snippet.
Stars: ✭ 9 (-83.02%)
Mutual labels:  qrcode-generator, qrcode
art-qr
JavaScript library to generate beautiful QR code in browser 艺术二维码
Stars: ✭ 19 (-64.15%)
Mutual labels:  qrcode, qrcode-generator
qr-code-unity-3d-read-generate
Generating a QR code / Scanning a QR code in Unity 3D. Pre-build DLL and sample code from old Unity
Stars: ✭ 70 (+32.08%)
Mutual labels:  qrcode, qrcode-generator
ips-qr-code
IPS QR Code Generator
Stars: ✭ 30 (-43.4%)
Mutual labels:  qrcode, qrcode-generator
qrencode.cr
Crystal bindings for libqrencode (qrencode), a library for QR code generation
Stars: ✭ 28 (-47.17%)
Mutual labels:  qrcode, qrcode-generator
js-qrcode
The library is for generating QR codes like SVG, HTML5 Canvas, PNG and JPG files, or text.
Stars: ✭ 35 (-33.96%)
Mutual labels:  qrcode, qrcode-generator
otp-authenticator-webapp
A 'Google Authenticator' like Single Page Application
Stars: ✭ 69 (+30.19%)
Mutual labels:  qrcode, qrcode-generator
Swiftscan
A barcode and qr code scanner( 二维码/条形码扫描、生成,仿微信、支付宝)
Stars: ✭ 293 (+452.83%)
Mutual labels:  qrcode-generator, qrcode
Qrcode
A QRCode generator written in Swift.
Stars: ✭ 695 (+1211.32%)
Mutual labels:  qrcode-generator, qrcode

VanillaQR clientside javascript QR code generator

A small javascript file for creating qr codes on the fly using the HTML5 Canvas element. By default VanillaQR.js will output a canvas element as it's domElement. If the canvas element and 2d context is not supported, it will create a table instead. Tables will not be able to output images so be sure to check that the image element exists.

How to use

<script src="VanillaQR.min.js"></script>
<script>

//Create qr object
//Minus the url, these are the defaults
var qr = new VanillaQR({

    url: "https://github.com/chuckfairy/VanillQR.js",
    size: 280,

    colorLight: "#ffffff",
    colorDark: "#000000",

    //output to table or canvas
    toTable: false,

    //Ecc correction level 1-4
    ecclevel: 1,

    //Use a border or not
    noBorder: false,

    //Border size to output at
    borderSize: 4

});

//Canvas or table is stored in domElement property
document.body.appendChild(qr.domElement);

//Alternatively you can create an image from the canvas
//png, jpg, jpeg, webp, gif, bmp, tiff, x-icon, svg+xml, xxx
//Currently canvas dataURL mime types are not the same
var imageElement = qr.toImage("png");

if(imageElement) {
    document.body.appendChild(imageElement);
}


//You can recreate the qr code to a new url like so
//If you have appended the domElement it will change
qr.url = "https://github.com/chuckfairy";
qr.colorLight = "#0000000";
qr.colorDark = "#ffffff";
qr.init();

</script>

Through module

import VanillaQR from "VanillaQR"


//See above for more
var qr = new VanillaQR({
    url: "https://github.com/chuckfairy/VanillQR.js",
});

Browser support

All browsers with canvas and canvas 2d context support

  • Chrome > 30
  • IE > 8
  • Firefox > 33
  • Opera > 25
  • Safari > 7.0
  • Android > 4.0

Table support fallback

  • Chrome
  • IE > 6
  • Firefox
  • Opera
  • Safari
  • Andriod

Vanilla QR is based on a port of a java qr code library that I can no longer find. When I do find it I'll be sure to give it proper credit. Thank you and have a nice day!

Live Demos

Special Thanks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].