1window.agec_rcount = 0; 2window.agec_ractive = 1; 3window.agec_rsend = 0; 4 5function ag_ecommerce_request(){ 6 if(!window.agec_ractive || window.agec_rcount < 1){ 7 return false; 8 } 9 10 window.agec_ractive = 0; 11 window.agec_rsend++; 12 13 var x = window.location.pathname; 14 if(window.location.search){ 15 x = x + window.location.search; 16 } 17 18 BX.ajax.runAction('arturgolubev:ecommerce.Ajax.getScript', { 19 data: {'loc': x, 'rnum': window.agec_rsend} 20 }).then(function (response) { 21 // console.log('response succ', response) 22 if(!!response.data.script){ 23 BX.ajax.processScripts([{"isInternal": true, "JS": response.data.script, "bRunFirst": true}]); 24 } 25 26 window.agec_rcount = (window.agec_rcount > 1) ? 1 : 0; 27 window.agec_ractive = 1; 28 29 setTimeout('ag_ecommerce_request();', 1000); 30 }, function (response) { 31 // console.log('response err', response); 32 33 window.agec_rcount = (window.agec_rcount > 1) ? 1 : 0; 34 window.agec_ractive = 1; 35 }); 36} 37 38 39document.addEventListener('DOMContentLoaded', function(){ 40 BX.addCustomEvent('onAjaxSuccess', function(e, params){ 41 var work = 1; 42 43 if(typeof params === 'object' && params !== null){ 44 if(params.url){ 45 // console.log(params); 46 47 if(params.url == '/bitrix/tools/arturgolubev.ecommerce/getscripts_v2.php') work = 0; 48 if(params.url.indexOf("analytics.bitrix.info") >= 0) work = 0; 49 if(params.url.indexOf("logictim/bonus.ajax") >= 0) work = 0; 50 if(params.url.indexOf("tools/public_session.php") >= 0) work = 0; 51 if(params.url.indexOf("hotlab.remarketing") >= 0) work = 0; 52 if(params.url.indexOf("arturgolubev.cssinliner") >= 0) work = 0; 53 if(params.url.indexOf("arturgolubev.abandoned") >= 0) work = 0; 54 if(params.url.indexOf("arturgolubev.gremarketing") >= 0) work = 0; 55 if(params.url.indexOf("yandex_metrika.Ajax") >= 0) work = 0; 56 if(params.url.indexOf("ecommerce.Ajax") >= 0) work = 0; 57 58 if(typeof params.data == 'string'){ 59 if(params.data.indexOf("q=") >= 0 && params.data.indexOf("INPUT_ID=") >= 0) work = 0; // search 60 } 61 } 62 } 63 64 if(work){ 65 // console.log('BX Ajax params', params, params.url); 66 window.agec_rcount++; 67 ag_ecommerce_request(); 68 } 69 }); 70 71 try { 72 $(document).ajaxSuccess(function(event, request, settings){ 73 var work = 1; 74 75 if(!!settings){ 76 if(settings.url.indexOf("dadata.ru") >= 0) work = 0; 77 78 if(settings.url.indexOf("ipol.") >= 0) work = 0; 79 if(settings.url.indexOf("corsik.") >= 0) work = 0; 80 if(settings.url.indexOf("up.boxberrydelivery") >= 0) work = 0; 81 if(settings.url.indexOf("arturgolubev.abandoned") >= 0) work = 0; 82 83 if(settings.url.indexOf("concept.phoenix/ajax/hide_adv.php") >= 0) work = 0; 84 if(settings.url.indexOf("concept.phoenix/ajax/basket/get_ajax_basket.php") >= 0) work = 0; 85 86 if(settings.url.indexOf("/ajax/getAjaxBasket.php") >= 0) work = 0; // aspro 87 if(settings.url.indexOf("/ajax/UpdateBakset.php") >= 0) work = 0; // deluxe 88 if(settings.url.indexOf("yandex_metrika.Ajax") >= 0) work = 0; 89 if(settings.url.indexOf("ecommerce.Ajax") >= 0) work = 0; 90 } 91 92 if(work){ 93 // console.log('JQuery Ajax settings', settings, settings.url); 94 window.agec_rcount++; 95 ag_ecommerce_request(); 96 } 97 }); 98 }catch(err){ 99 // console.log("AG_Ecommerce: JQuery ajax not defined"); 100 } 101}); 102 103document.addEventListener("DOMContentLoaded", function(){ 104 window.agec_rcount++; 105 ag_ecommerce_request(); 106});
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.