(function(){ document.querySelectorAll('.brce-roof-ticks').forEach(function(ticks){ if (!ticks.children.length) for(var i=0;i<20;i++) ticks.appendChild(document.createElement('i')); }); document.querySelectorAll('.brce-qr[data-spayd]').forEach(function(holder){ if (!window.BRCE_QRCode) return; try { var qr=new window.BRCE_QRCode(-1,0); // QR error correction M. qr.addData(holder.getAttribute('data-spayd')); qr.make(); var n=qr.getModuleCount(), ns='http://www.w3.org/2000/svg'; var svg=document.createElementNS(ns,'svg'); svg.setAttribute('viewBox','0 0 '+(n+8)+' '+(n+8)); svg.setAttribute('role','img'); svg.setAttribute('aria-label',holder.getAttribute('data-label')); svg.setAttribute('shape-rendering','crispEdges'); var bg=document.createElementNS(ns,'rect'); bg.setAttribute('width','100%'); bg.setAttribute('height','100%'); bg.setAttribute('fill','#fff'); svg.appendChild(bg); var d=''; for(var r=0;r