1var create_qrcode = function(text, typeNumber, errorCorrectionLevel, mode, mb) { 2 qrcode.stringToBytes = qrcode.stringToBytesFuncs[mb]; 3 if (typeNumber == 0) { 4 // typeNumber = suggestTypeNumber(text); 5 } 6 7 var qr = qrcode(typeNumber || 4, errorCorrectionLevel || 'M'); 8 qr.addData(text, mode); 9 qr.make(); 10 11 return qr 12}; 13!function() { 14 // console.log('======url',url); 15 // var text='https://mobsandboxprod.paymebiz.hsbc.com.hk/2ab38c6e-6cd0-492d-b4ef-49ff2f975c26' 16 console.log(text) 17 // var t = form.elements['t'].value; 18 // console.log(t) 19 // var e = form.elements['e'].value; 20 // var m = 'Byte'; 21 // var mb = 'UTF-8'; 22 // var consumer = form.elements['consumer'].checked; 23 // console.log(consumer); 24 var qr = create_qrcode(text, 0, 'M', 'Byte', 'UTF-8'); 25 var canvas = document.getElementById('payCodeCanvas'); 26 canvas.width = 250; 27 canvas.height = 250; 28 var ctx = canvas.getContext('2d'); 29 // var logo = document.getElementById('logo'); 30 var logo=new Image() 31 logo.src='/venia-static-assets/images/Icon-192.png' 32 logo.width='30' 33 logo.height='30' 34 console.log('@@@@@@@@@@@logo,logo') 35 ctx.setTransform(1, 0, 0, 1, 0, 0); 36 ctx.clearRect(0, 0, canvas.width, canvas.height); 37 drawPayCode(qr, canvas, 7, logo, false); 38}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.