PageSourceSearch

https://altegrosky.ru/bitrix/cache/js/s1/altegro/template_98fce9e8…7bb130d213d847124a166d_v1.js?17879042703928

js altegrosky.ru collected 2026-10-02 05:09:40 UTC 3,928 bytes, 187 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:57:"/local/templates/.default/js/custom_new.js?17406363681758";s:6:"source";s:42:"/local/templates/.default/js/custom_new.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3function  sendOtp() {
4	let err=0;
5
6
7
8	obj = {};
9	$( "#fb-form-new" ).parent().parent().find('input').each(function( index ) {
10		req = $( this ).attr('required');
11		if (req=='required'){
12			v = $( this ).val();
13			n = $( this ).attr('name');
14			if (v==''){
15				console.log( index + ": " + $( this ).val() );
16				$( this ).addClass('err');
17				err=1;
18			}
19			else{
20				$( this ).removeClass('err');
21				obj[n]=v;
22			}
23
24				
25		}
26		else{
27			v = $( this ).val();
28			n = $( this ).attr('name');
29			obj[n]=v;
30
31		}
32	  	
33	});
34
35
36
37
38
39	$( "#fb-form-new" ).parent().parent().find('textarea').each(function( index ) {
40		req = $( this ).attr('required');
41		if (req=='required'){
42			v = $( this ).val();
43			n = $( this ).attr('name');
44			if (v==''){
45				console.log( index + ": " + $( this ).val() );
46				$( this ).addClass('err');
47				err=1;
48			}
49			else{
50				$( this ).removeClass('err');
51				obj[n]=v;
52			}
53				
54		}
55		else{
56			v = $( this ).val();
57			n = $( this ).attr('name');
58			obj[n]=v;
59
60			console.log('v='+v);
61			console.log('n='+n);
62			if (n=='g-recaptcha-response'){
63
64				if (v==''){
65						err=1;
66						$('#rc-anchor-container').addClass('err');
67				}
68			}
69			
70
71		}
72	  	
73	});
74
75
76	if (err==0){
77
78
79
80
81		console.log(obj);
82
83		$.ajax({
84			type: "POST",
85			data: {
86				"obj": obj,
87			},
88			dataType: "json",
89			url: "/ajax/scr/sendOtp.php",
90			beforeSend: function () {
91				//$result.html('<div>Секунду...</div>');
92			},
93			success: function (data) {
94	
95				console.log(data);
96				if (data.success){
97					$( "#fb-form-new" ).parent().parent().html('<div class="resp">Спасибо! Ваша заявка принята.</div>');
98				}
99
100
101
102
103			},
104		});
105
106
107	}
108	
109}
110/* End */
111;
112; /* Start:"a:4:{s:4:"full";s:85:"/bitrix/components/bitrix/map.yandex.view/templates/.default/script.js?16817168371540";s:6:"source";s:70:"/bitrix/components/bitrix/map.yandex.view/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
113if (!window.BX_YMapAddPlacemark)
114{
115	window.BX_YMapAddPlacemark = function(map, arPlacemark)
116	{
117		if (null == map)
118			return false;
119
120		if(!arPlacemark.LAT || !arPlacemark.LON)
121			return false;
122
123		var props = {};
124		if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0)
125		{
126			var value_view = '';
127
128			if (arPlacemark.TEXT.length > 0)
129			{
130				var rnpos = arPlacemark.TEXT.indexOf("\n");
131				value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos);
132			}
133
134			props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />');
135			props.hintContent = value_view;
136		}
137
138		var obPlacemark = new ymaps.Placemark(
139			[arPlacemark.LAT, arPlacemark.LON],
140			props,
141			{balloonCloseButton: true}
142		);
143
144		map.geoObjects.add(obPlacemark);
145
146		return obPlacemark;
147	}
148}
149
150if (!window.BX_YMapAddPolyline)
151{
152	window.BX_YMapAddPolyline = function(map, arPolyline)
153	{
154		if (null == map)
155			return false;
156
157		if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1)
158		{
159			var arPoints = [];
160			for (var i = 0, len = arPolyline.POINTS.length; i < len; i++)
161			{
162				arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]);
163			}
164		}
165		else
166		{
167			return false;
168		}
169
170		var obParams = {clickable: true};
171		if (null != arPolyline.STYLE)
172		{
173			obParams.strokeColor = arPolyline.STYLE.strokeColor;
174			obParams.strokeWidth = arPolyline.STYLE.strokeWidth;
175		}
176		var obPolyline = new ymaps.Polyline(
177			arPoints, {balloonContent: arPolyline.TITLE}, obParams
178		);
179
180		map.geoObjects.add(obPolyline);
181
182		return obPolyline;
183	}
184}
185/* End */
186;; /* /local/templates/.default/js/custom_new.js?17406363681758*/
187; /* /bitrix/components/bitrix/map.yandex.view/templates/.default/script.js?16817168371540*/

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.