1(function($) { 2 'use strict'; 3$(document).ready(function () { 4 function QRCShortcode() { 5 jQuery(".qrc_canvass").each(function() { 6 7 console.log(datas.size); 8 var options = { 9 shape: datas.shape, 10 width: datas.size, 11 height: datas.size, 12 data: $(this).data('text'), 13 margin: datas.quiet, 14 dotsOptions: { 15 color: datas.color, 16 }, 17 backgroundOptions: { 18 color: datas.background, 19 }, 20 qrOptions: { 21 errorCorrectionLevel: datas.ecLevel, 22 }, 23 }; 24 25 var ereer = $(this).attr('id'); 26 var $Mqrds = '#' + ereer; 27 var container = document.querySelector($Mqrds); 28 /* jshint esversion: 6 */ 29 const qrcode = new QRCodeStyling(options); 30 if (qrcode) { 31 qrcode.append(container); 32 } 33 34 }); 35 } 36 QRCShortcode(); 37 38 39 function QRCShortcodeButon() { 40 jQuery(".qrcdownloads").each(function(index) { 41 $(this).on("click", function() { 42 var ereer = $(this).closest('.qrcprowrapper').children('.qrc_canvass').attr('id'); 43 var $Mqrds = '#' + ereer + ' canvas'; 44 var image = document.querySelector($Mqrds).toDataURL("image/png").replace("image/png", "image/octet-stream"); 45 this.setAttribute("href", image); 46 }); 47 }); 48 49 } 50 QRCShortcodeButon(); 51 52 function qrcpromodalwrapperQRS() { 53 jQuery(".qrcpromodalwrapper").each(function() { 54 var modlabutton = $(this).find('.qrc-modal-toggle'); 55 var modla = $(this).find('.qrc_modal'); 56 $(modlabutton).on('click', function(e) { 57 e.preventDefault(); 58 $(modla).toggleClass('is-visible'); 59 }); 60 61 }); 62 63 } 64 qrcpromodalwrapperQRS(); 65 }); 66 67}(jQuery)); 68 69 70 71 72 73
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.