Closed workwyz closed 10 years ago
$(document).ready(function(){
'use strict';
var $ = jQuery;
var options = {
render: "image",
minVersion: 6,
radius: 0.5,
quiet: 1,
mode: 4,
mSize: 0.15,
mPosX: 0.5,
mPosY: 0.5,
//fill: "#800080",
fill: "#000000",
background: "#ffffff",
ecLevel: "M",
size: 300,
text: 'http://o2o.mljia.cn/100130',
image: $("#img-buffer")[0]
//label: '',
//fontname: '',
//fontcolor: '',
//image: $("#img-buffer")[0]
};
$("#container").empty().qrcode(options);
});
BUT IE10 AND firefox to test is ok. ????
I have never coded jquery version of qrcode generator. Where do you get it? Although I see there are some forks that use canvas to render are do not work on old IE.
I tested my code below on IE8, 9, 10, firefox, chrome and so on. It uses embed image source instead of canvas.
https://kazuhikoarase.github.io/qrcode-generator/
thank you.