1//QR Code Download 2 3jQuery(window).on('load', function(){ 4 jQuery('.ht_qrcode').each(function(){ 5 jQuery(this).find('canvas').hide(); 6 }); 7}); 8 9jQuery(document).ready(function($) { 10 'use strict'; 11 12 $("body").on("click",".qrcode-download",function (e) { 13 function dataURItoBlob(dataURI) { 14 for (var byteString = atob(dataURI.split(",")[1]), mimeString = dataURI.split(",")[0].split(":")[1].split(";")[0], ab = new ArrayBuffer(byteString.length), ia = new Uint8Array(ab), i = 0; i < byteString.length; i++) ia[i] = byteString.charCodeAt(i); 15 var blob; 16 return new Blob([ab], { 17 type: mimeString 18 }) 19 } 20 var dataTarget = $(this).data('target'), 21 dataUri = $(dataTarget).children("img").last().attr("src"); 22 if (navigator.msSaveBlob) { 23 var blob = dataURItoBlob(dataUri); 24 return navigator.msSaveBlob(blob, dataUri + "-qrcode.png") 25 } else { 26 $(this).attr("href", dataUri), $(this).attr("download", "QR_Code.png"); 27 } 28 }); 29}); 30 31//QR Code Print 32printDivCSS = new String (); 33function printDiv(divId) { 34 window.frames["qrcode_print_frame"].document.body.innerHTML=printDivCSS + document.getElementById(divId).innerHTML; 35 window.frames["qrcode_print_frame"].window.focus(); 36 window.frames["qrcode_print_frame"].window.print(); 37}
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.