1(function () { 2 LeadCoreEnv = { 3 servicePath: { 4 baseUri: "https://cdn.leadgenic.ru", 5 location: "/lg_widgets/" 6 }, 7 mode: "production" // dev | labs | production 8 }; 9 function init_LGWG_scripts() { 10 const utilsLink = LeadCoreEnv.servicePath.baseUri + LeadCoreEnv.servicePath.location + "lgwg_utils.js"; 11 const serviceLink = LeadCoreEnv.servicePath.baseUri + LeadCoreEnv.servicePath.location + "lgwg_service.js"; 12 Promise.all([utilsLink, serviceLink].map(_ => load_LGWG_script(_))); 13 } 14 function load_LGWG_script(link) { 15 return new Promise(function(resolve, reject){ 16 const script = document.createElement('script'); 17 18 script.setAttribute("type", "text/javascript"); 19 script.setAttribute("charset", "UTF-8"); 20 script.setAttribute("defer", ""); 21 22 script.addEventListener('load', function() { 23 this.removeEventListener('load', arguments.callee); 24 resolve(true); 25 }); 26 27 script.src = link; 28 document.getElementsByTagName("body")[0].appendChild(script); 29 }) 30 } 31 init_LGWG_scripts(); 32})();
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.