المشاريع
عرض على GitHub
datalog/qrcode-svg
حول
QR Code generator. Lightweight, dependency-free, vanilla JavaScript.
التصميم والوسائطالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- +٢
- خلال 15 يومًا
- +٢
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلQR Code svg generator
Pure javascript QR Code generator. Armed with elegant method for creating SVG nodes.
QR Code svg generator (Live demo)
Easy to start
After qrcode.min.js is downloaded and connected to your html5 page, call:
var
svgNode = QRCode("Hello World!");
All other options:
var
svgNode = QRCode({
msg : "Your message here"
,dim : 300
,pad : 6
,mtx : 7
,ecl : "H"
,ecb : 0
,pal : ["#000000", "#f2f4f8"]
,vrb : 1
});
Options
- msg - QR Code
message, obviously, this is mandatory parameter. - dim - is equal to needed dimention (width or height) in pixels, default value is
256. - pad - white space padding, default value is
4blocks, set0for no padding. - mtx - mask pattern from
0to7, default value is-1and best suitable mask is choosen automatically - ecl - error correction level:
L,M,H,Q, default value isM. - ecb - error correction level boost, default value is
1, set0if no boost needed. - pal - is array of [
color,background-color] strings that represent hex color codes, default value is ['#000'] along with transparent background. Set ['#000','#fff'] to make background opaque. - vrb - svg node is optimized to be compact and default value is
0, set this parameter to1in case you need more verbose output.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…