PageSourceSearch

https://www.bgznk.ru/bitrix/js/arturgolubev.ecommerce/script_event_mode.js?17823091812843

js bgznk.ru collected 2026-10-05 19:46:33 UTC 2,843 bytes, 107 lines download raw bytes

1window.ag_ec_request_count = 0;
2window.ag_ec_request_active = 1;
3window.ag_ec_request_sended = 0;
4
5function ag_ecommerce_request(){
6	if(!window.ag_ec_request_active){
7		return false;
8	}
9	if(window.ag_ec_request_count < 1){
10		return false;
11	}
12	
13	// console.log('AG_Ecommerce: start r: c = ' + window.ag_ec_request_count + ', a = ' + window.ag_ec_request_active);
14	
15	window.ag_ec_request_active = 0;
16	window.ag_ec_request_sended++;
17	
18	var x = window.location.pathname;
19	
20	BX.ajax({   
21		url: '/bitrix/tools/arturgolubev.ecommerce/getscripts_v2.php',
22		data: {'loc': x, 'rnum': window.ag_ec_request_sended},
23		method: 'POST',
24		dataType: 'script',
25		timeout: 30,
26		async: true,
27		processData: true,
28		scriptsRunFirst: true,
29		// emulateOnload: true,
30		start: true,
31		cache: false,
32		onsuccess: function(data){
33			if(window.ag_ec_request_count > 1){
34				window.ag_ec_request_count = 1;
35			}else{
36				window.ag_ec_request_count--;
37			}
38			
39			window.ag_ec_request_active = 1;
40			
41			setTimeout('ag_ecommerce_request();', 1000);
42		},
43		onfailure: function(){
44			if(window.ag_ec_request_count > 1){
45				window.ag_ec_request_count = 1;
46			}else{
47				window.ag_ec_request_count--;
48			}
49			
50			window.ag_ec_request_active = 1;
51		}
52	});
53}
54
55
56document.addEventListener('DOMContentLoaded', function(){
57	BX.addCustomEvent('onAjaxSuccess', function(e, params){
58		var work = 1;
59		
60		if(typeof params === 'object' && params !== null){
61			if(params.url){
62				if(params.url == '/bitrix/tools/arturgolubev.ecommerce/getscripts_v2.php') work = 0;
63				if(params.url.indexOf("logictim/bonus.ajax") >= 0) work = 0;
64				if(params.url.indexOf("tools/public_session.php") >= 0) work = 0;
65			}
66		}
67		
68		if(work){
69			// console.log('BX Ajax', params.url);
70			window.ag_ec_request_count++;
71			ag_ecommerce_request();
72		}
73	});
74
75	try {
76		$(document).ajaxSuccess(function(event, request, settings){
77			var work = 1;
78			
79			if(!!settings){
80				if(settings.url.indexOf("dadata.ru") >= 0) work = 0;
81				
82				if(settings.url.indexOf("ipol.") >= 0) work = 0;
83				if(settings.url.indexOf("intec.") >= 0) work = 0;
84				if(settings.url.indexOf("corsik.") >= 0) work = 0;
85				if(settings.url.indexOf("up.boxberrydelivery") >= 0) work = 0;
86				
87				if(settings.url.indexOf("concept.phoenix/ajax/hide_adv.php") >= 0) work = 0;
88				if(settings.url.indexOf("concept.phoenix/ajax/basket/get_ajax_basket.php") >= 0) work = 0;
89			}
90			
91			if(work){
92				// console.log('JQuery Ajax', settings.url);
93				window.ag_ec_request_count++;
94				ag_ecommerce_request();
95			}
96		});
97	}catch(err){
98		// console.log("AG_Ecommerce: JQuery ajax not defined");
99	}
100});
101
102BX.ready(function(){
103	// console.log('AG_Ecommerce: start page request');
104	
105	window.ag_ec_request_count++;
106	ag_ecommerce_request();
107});

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.