PageSourceSearch

https://dvernoymaster.by/bitrix/templates/main/js/custom.js

js dvernoymaster.by collected 2026-10-07 16:16:39 UTC 16,529 bytes, 484 lines download raw bytes

1$(document).ready(function() {
2	
3	$('.price-sel-box .selector a').on('click',function(){
4			$('.price-sel-box .selector a').removeClass('active');
5			$(this).addClass('active');
6			var t = $(this).attr('data-block');
7			$('.price-box').removeClass('active');
8			$('.'+t).addClass('active');
9			return false;
10		});
11	
12	
13	if (($(window).width() < 767)){
14		$('.price-table').addClass('to-be-hidden');
15		$('.price-table tr:first-child').on('click',function(){ 
16			
17			if ($(this).parent('tbody').parent('.price-table').hasClass('visible')){
18				$(this).parent('tbody').parent('.price-table').removeClass('visible');
19				$(this).parent('tbody').parent('.price-table').find('tr:nth-child(n+2)').hide();
20			}else{
21				$(this).parent('tbody').parent('.price-table').addClass('visible');	
22				$(this).parent('tbody').parent('.price-table').find('tr:nth-child(n+2)').fadeIn();
23			}
24			return false;
25		});	
26	}else{
27		$('.price-table').removeClass('to-be-hidden');
28	}	
29	
30	
31	
32	/*Блок удаленки begin*/
33		cookieNot = $('.block-udalenka');
34		cookieStatus = Cookies.get('cookie-notification');
35		if (cookieStatus !== 'closed') {
36			cookieNot.removeClass('_block-udalenka__hide');
37		}else{
38			cookieNot.addClass('_block-udalenka__hide');
39		}
40		$('.block-udalenka__croce svg').on('click',function(){ 
41			Cookies.set('cookie-notification', 'closed', {
42				expires: 30
43			});
44			cookieNot.addClass('_block-udalenka__hide');
45		});
46	/*Блок удаленки end*/
47	/*скрипт раскрывашек над картой*/		
48
49setTimeout(function() {
50$('body').append(' <script async type="text/javascript" src="https://api-maps.yandex.ru/2.0/?coordorder=longlat&amp;load=package.full&amp;wizard=constructor&amp;lang=ru-RU"></script>');
51}, 5000);
52
53				
54	$('._container-footer__map .container-footer-map__back').on('click',function(){ 
55		$('._container-footer__map .container-footer-map__back').addClass('container-footer-map__back-hide');
56		//$(this).find('#main_map').append('<script type="text/javascript" src="https://api-maps.yandex.ru/2.0/?coordorder=longlat&amp;load=package.full&amp;wizard=constructor&amp;lang=ru-RU"></script>');
57		
58		ymaps.ready(function(){
59			var map = new ymaps.Map("main_map",{
60				center: [27.5666700,53.9000000],
61				zoom: 11,
62				type: "yandex#publicMap"
63			});
64
65			map.geoObjects.options.set({
66				openBalloonOnClick: true
67			});
68
69			map.controls
70			.add("zoomControl", {top: 45, left : 8})
71			.add("mapTools", {top: 8, left : 8})
72			.add(new ymaps.control.TypeSelector(["yandex#map", "yandex#satellite", "yandex#hybrid", "yandex#publicMap"]), {top: 8, right: 8});
73
74			var MyIconContentInfoLayoutClass = ymaps.templateLayoutFactory.createClass(
75				'<img class="dimg" src="/bitrix/templates/main/css/img/baloon.png" alt="$[properties.balloonContent]" title="$[properties.balloonContent]" />'
76			);
77			
78			
79			map.geoObjects 
80				.add(new ymaps.Placemark([27.6835594,53.9493591], {
81						balloonContent: "г. Минск, ул. Ложинская 179",
82					}, 
83					{ 
84						iconImageHref: '', 
85						iconImageSize: [43, 71], 
86						iconImageOffset: [-21, -70], 
87						draggable: false, 
88						iconContentLayout: MyIconContentInfoLayoutClass 
89					}))
90					
91					
92				.add(new ymaps.Placemark([27.6175073,53.9527854], { 
93					balloonContent: "г. Минск, ул. Логойский Тракт 27",
94					}, 
95					{ 
96						iconImageHref: '', 
97						iconImageSize: [43, 71], 
98						iconImageOffset: [-21, -70], 
99						
100						draggable: false, 
101						iconContentLayout: MyIconContentInfoLayoutClass 
102					}))
103				.add(new ymaps.Placemark([27.4647046,53.9412697], { 
104					balloonContent: "г. Минск, ул. Проспект Победителей 131",
105					}, 
106					{ 
107						iconImageHref: '', 
108						iconImageSize: [43, 71], 
109						iconImageOffset: [-21, -70], 
110						
111						draggable: false, 
112						iconContentLayout: MyIconContentInfoLayoutClass 
113					}))	
114					
115					
116				.add(new ymaps.Placemark([27.4284488,53.9079987], { 
117					balloonContent: "г. Минск, ул. Притыцкого 158",
118					}, 
119					{ 
120						iconImageHref: '', 
121						iconImageSize: [43, 71], 
122						iconImageOffset: [-21, -70], 
123						
124						draggable: false, 
125						iconContentLayout: MyIconContentInfoLayoutClass 
126					}))
127				.add(new ymaps.Placemark([27.6674581,53.8633423], { 
128					balloonContent: "г. Минск. Партизанский пр.144",
129					}, 
130					{ 
131						iconImageHref: '', 
132						iconImageSize: [43, 71], 
133						iconImageOffset: [-21, -70], 
134						
135						draggable: false, 
136						iconContentLayout: MyIconContentInfoLayoutClass 
137					}))	
138				.add(new ymaps.Placemark([27.474398,53.851495], { 
139					balloonContent: "г. Минск Пр. Дзержинского 122",
140					}, 
141					{ 
142						iconImageHref: '', 
143						iconImageSize: [43, 71], 
144						iconImageOffset: [-21, -70], 
145						
146						draggable: false, 
147						iconContentLayout: MyIconContentInfoLayoutClass 
148					}))
149				
150
151				.add(new ymaps.Placemark([27.644112,53.8947548], { 
152					balloonContent: "г. Минск. Ваупшасова 10",
153					}, 
154					{ 
155						iconImageHref: '', 
156						iconImageSize: [43, 71], 
157						iconImageOffset: [-21, -70], 
158						
159						draggable: false, 
160						iconContentLayout: MyIconContentInfoLayoutClass 
161					}))
162				.add(new ymaps.Placemark([27.5336748,53.9644113], { 
163					balloonContent: "г. Минск. Долгиновский тракт 178",
164					}, 
165					{ 
166						iconImageHref: '', 
167						iconImageSize: [43, 71], 
168						iconImageOffset: [-21, -70], 
169						
170						draggable: false, 
171						iconContentLayout: MyIconContentInfoLayoutClass 
172					}))
173				.add(new ymaps.Placemark([27.4322756,53.8822214], { 
174					balloonContent: "г. Минск. Шаранговича 52",
175					}, 
176					{ 
177						iconImageHref: '', 
178						iconImageSize: [43, 71], 
179						iconImageOffset: [-21, -70], 
180						
181						draggable: false, 
182						iconContentLayout: MyIconContentInfoLayoutClass 
183					}))
184				.add(new ymaps.Placemark([27.5529437,53.8723706], { 
185					balloonContent: "г. Минск. Аэродромная 109",
186					}, 
187					{ 
188						iconImageHref: '', 
189						iconImageSize: [43, 71], 
190						iconImageOffset: [-21, -70], 
191						
192						draggable: false, 
193						iconContentLayout: MyIconContentInfoLayoutClass 
194					}))
195				.add(new ymaps.Placemark([27.5496924,53.9042783], { 
196					balloonContent: "г. Минск. Немига 4",
197					}, 
198					{ 
199						iconImageHref: '', 
200						iconImageSize: [43, 71], 
201						iconImageOffset: [-21, -70], 
202						
203						draggable: false, 
204						iconContentLayout: MyIconContentInfoLayoutClass 
205					}));	
206		});
207		return false;
208	});
209
210
211
212
213
214
215
216
217
218		
219
220		
221		
222	if (($(window).width() < 767)){
223			var t=$('.mobile_going_down').html();
224		/* 	$('.mobile_going_down').remove();
225			$('.insert').after(t); */
226			
227			var t2=$('.insert .first').html();
228			var t3=$('.insert .first').attr('href');
229			$('body').append("<a href='"+t3+"' class='fixed_down d-none'> <span>Cрочный вызов мастера</span>"+t2+"</a>");
230			
231			
232			 var linepos=$('.insert').offset().top;
233				 if ($(document).scrollTop()>linepos) {
234					  $('.fixed_down').removeClass('d-none');
235				  }
236				 window.onscroll = function(){ 
237				  if ($(document).scrollTop()>linepos) {
238					  $('.fixed_down').removeClass('d-none');
239				  }
240				  else {
241					   $('.fixed_down').addClass('d-none');
242				  }
243				 }
244
245				$('.mobile-empty').remove();
246				//$('.howmuch').insertBefore('.call-for-form');
247				$('a.howweworktel').css('color', '#2086ca');
248		
249		//телефон в раскрывашку закреплённой шапки
250		$('.header__top>.phone__wrapper').appendTo('.navbar-collapse');
251		}
252
253
254
255
256
257
258
259$('.openform').on('click',function(){ 
260			$('.hidden-from-box').fadeIn();
261			$('.darkness-uned-form').fadeIn();
262			return false;
263		});
264
265		$('.darkness-uned-form').on('click',function(){ 
266			$('.hidden-from-box').fadeOut();
267			$('.darkness-uned-form').fadeOut();
268			return false;
269		});
270
271		$('.close-f').on('click',function(){ 
272			$('.hidden-from-box').fadeOut();
273			$('.darkness-uned-form').fadeOut();
274			return false;
275		});
276
277					function getadress(){ 
278							$(".titol").hide();
279							$(".dimg").show();
280							if ($(this).hasClass("opened")){
281								$(this).find("img").show();
282								$(this).find("span").hide();
283								$(this).removeClass("opened");
284							}else{
285								$(this).find("img").hide();
286								$(this).find("span").show();
287								$(this).addClass("opened");
288							}
289							
290							return false;
291							};
292
293
294
295//цели
296$('a').on('mouseup', function(){
297	if ($(this).attr('href').indexOf('tel:')>-1 && $(this).closest('.hidden-awayform-box').length<1)  events(1);
298});
299	
300	
301	/*var items_count = $(".numered-renewal__list li").length;
302	$(".numered-renewal__list li").slice(0, Math.ceil(items_count / 2)).wrapAll( "<div class='numered-renewal__block'></div>" );
303	$(".numered-renewal__list li").slice(Math.ceil(items_count / 2), items_count).wrapAll( "<div class='numered-renewal__block'></div>" );
304	if($(".numered-renewal__list .numered-renewal__notes").length != 0){
305		$(".numered-renewal__notes").appendTo(".numered-renewal__block:nth-child(2)");
306	}*/
307	var items_count = $(".numered-renewal__list .numered-renewal__item").length;
308	$(".numered-renewal__list .numered-renewal__item").slice(0, Math.ceil(items_count / 2)).wrapAll( "<div class='numered-renewal__block'></div>" );
309	$(".numered-renewal__list .numered-renewal__item").slice(Math.ceil(items_count / 2), items_count).wrapAll( "<div class='numered-renewal__block'></div>" );
310	if($(".numered-renewal__list .numered-renewal__notes").length != 0){
311		$(".numered-renewal__notes").appendTo(".numered-renewal__block:nth-child(2)");
312	}
313	
314	
315	
316	
317	
318	//$(".numered-renewal__list .numered-renewal__block").eq(1).
319	/*if(items_count == 1){
320	}else if(items_count == 2){
321	}else{
322		
323	}*/
324	if($('._list-bold').length > 0){
325		var val=0;
326		var val_it = 0;
327		$('._list-bold').each(function() {
328			if ( $(this).attr("start")){
329				val =  $(this).attr("start");
330				val_it = val;
331				var item_list = 0;
332				$(this).children('li').each(function(){
333					item_list = $(this).index()+1;
334					console.log(val);
335					$("head").append('<style>._list-bold[start="'+val+'"] li:nth-child('+item_list+'):before{content: "'+val_it+'. ";}</style>');
336					val_it++;
337				});
338			}
339			
340			
341			
342		});
343	}
344	
345				
346});	
347console.log('Cобытия загружены');
348function events(num) {
349	var name='';
350	if (num==1) {
351		name='klik-nomer';
352		gtag('config', 'UA-54467589-27', {
353  'page_path': '/tyrtyrknopka'
354});
355	}
356	if (num==2) name='zaya_success';
357	if (num==3) {
358		name='zaya_wrong';
359		//ga('send', 'event', 'form', 'submit');
360		gtag('event', 'submit');
361	}
362	if (num==4) name='klik-nomer-akciia';
363	if (num==5) name='zaya_success_akciia';
364	yaCounter50691355.reachGoal(name);
365	console.log('Событие '+num+' '+name);
366}
367
368
369
370//уход с сайта
371!function(e,n){"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n(require,exports,module):e.ouibounce=n()}(this,function(e,n,o){return function(e,n){"use strict";function o(e,n){return"undefined"==typeof e?n:e}function i(e){var n=24*e*60*60*1e3,o=new Date;return o.setTime(o.getTime()+n),"; expires="+o.toUTCString()}function t(){s()||(L.addEventListener("mouseleave",u),L.addEventListener("mouseenter",r),L.addEventListener("keydown",c))}function u(e){e.clientY>k||(D=setTimeout(m,y))}function r(){D&&(clearTimeout(D),D=null)}
371function c(e){g||e.metaKey&&76===e.keyCode&&(g=!0,D=setTimeout(m,y))}function d(e,n){return a()[e]===n}function a(){for(var e=document.cookie.split("; "),n={},o=e.length-1;o>=0;o--){var i=e[o].split("=");n[i[0]]=i[1]}return n}function s(){return d(T,"true")&&!v}function m(){s()||(e&&(e.style.display="block"),E(),f())}function f(e){var n=e||{};"undefined"!=typeof n.cookieExpire&&(b=i(n.cookieExpire)),n.sitewide===!0&&(w=";path=/"),"undefined"!=typeof n.cookieDomain&&(x=";domain="+n.cookieDomain),"undefined"!=typeof n.cookieName&&(T=n.cookieName),document.cookie=T+"=true"+b+x+w,L.removeEventListener("mouseleave",u),L.removeEventListener("mouseenter",r),L.removeEventListener("keydown",c)}var l=n||{},v=l.aggressive||!1,k=o(l.sensitivity,20),p=o(l.timer,1e3),y=o(l.delay,0),E=l.callback||function(){},b=i(l.cookieExpire)||"",x=l.cookieDomain?";domain="+l.cookieDomain:"",T=l.cookieName?l.cookieName:"viewedOuibounceModal",w=l.sitewide===!0?";path=/":"",D=null,L=document.documentElement;setTimeout(t,p);var g=!1;return{fire:m,disable:f,isDisabled:s}}});
372
373
374
375// if you want to use the 'fire' or 'disable' fn,
376// you need to save OuiBounce to an object
377var _ouiBounce = ouibounce(document.getElementById('ouibounce-modal'), {
378cookieExpire: 10,
379//aggressive: true,
380timer: 0,
381callback: function() { console.log('ouiBounce fired!'); }
382});
383
384$('.underlay').on('click', function() {
385$('#ouibounce-modal').hide();
386_ouiBounce.disable({ cookieExpire: 5, sitewide: true });
387
388});
389
390$('#ouibounce-modal .close-f').on('click', function() {
391$('#ouibounce-modal').hide();
392_ouiBounce.disable({ cookieExpire: 5, sitewide: true });
393});
394
395$('#ouibounce-modal .modal').on('click', function(e) {
396e.stopPropagation();
397});
398
399
400document.addEventListener("DOMContentLoaded", () => {
401	const header = document.querySelector("header .row");
402	const scrollToHeader = header.offsetTop;
403	const headerheight = header.getBoundingClientRect().height;
404	const container = document.querySelector("header .container");
405	const menuContainer = document.querySelector(".navbar-collapse")
406	const phoneClone = document.querySelector(".phone.tpped").cloneNode(true);
407
408	const logo = document.querySelector('.navbar-brand');
409	const pyamentBlock = document.querySelector(".payment__block");
410	const phoneWrapper = document.querySelector(".phone__wrapper");
411	const phoneWrapperClone = phoneWrapper.cloneNode(true);
412	const paymentBlockClone = pyamentBlock.cloneNode(true);
413	const menuClone = document.querySelector('.navbar.navbar-expand-xl.navbar-light.sticky-top').cloneNode(true);
414
415	function responsiveHeader (){
416		if (window.matchMedia("(max-width: 1200px)").matches) {
417			document.querySelector('.header__top').insertAdjacentElement('afterbegin', menuClone);
418			menuClone.insertAdjacentElement('afterbegin', logo);
419			logo.insertAdjacentElement('afterend', phoneWrapperClone);
420			paymentBlockClone.classList.add('_mobile-payment');
421			phoneWrapperClone.classList.add('_mobile-phone');
422			document.querySelector('.row.mobile_going_up').insertAdjacentElement('afterend', paymentBlockClone);
423		} else {
424			menuClone.remove();
425			paymentBlockClone.remove();
426			phoneWrapperClone.remove();
427			document.querySelector('.header__top').insertAdjacentElement('afterbegin', logo);
428		}
429
430		if (header.classList.contains("_fixed")) {
431			pyamentBlock.insertAdjacentElement('beforebegin', menuClone);
432		}
433
434	}
435
436	window.addEventListener('resize', responsiveHeader);
437	window.addEventListener('scroll', responsiveHeader);
438	responsiveHeader();
439
440	menuClone.classList.add("_clone-menu");
441	
442	document.addEventListener("scroll", () => {
443		window.pageYOffset > scrollToHeader ? header.classList.add("_fixed") : header.classList.remove("_fixed")
444		header.classList.contains("_fixed") ? container.style.paddingTop = `${headerheight}px` : container.style.paddingTop = `unset`
445
446		if (header.classList.contains("_fixed")) {
447			document.querySelector('.header .row').style.height = '70px';
448			pyamentBlock.insertAdjacentElement('beforebegin', menuClone);
449		} else {
450			menuClone.remove();
451			document.querySelector('.header .row').style.height = 'auto';
452		}
453		
454		if (window.innerWidth < 1200 && window.pageYOffset > scrollToHeader) {
455			document.querySelector('.navbar-brand').insertAdjacentElement('afterend', phoneClone);
456			phoneClone.style = `display: block; margin-left: auto;margin-right: 31px;`;
457			if (window.innerWidth < 575 && window.pageYOffset > scrollToHeader) {
458				menuContainer.insertAdjacentElement('beforeend', phoneClone);
459				phoneClone.style = `padding: 29px 0 57px 0; display: block`;
460				menuContainer.style.height = `${window.innerHeight}px`
461			}
462		} else {
463			phoneClone.style = `display: none;`;
464		}
465	})
466})
467
468
469const questions = document.querySelectorAll('.faq-question');
470questions.forEach(question => {
471    const answer = question.nextElementSibling;
472    const toggle = question.querySelector('.toggle');
473
474    question.addEventListener('click', () => {
475        if (answer.classList.contains('show')) {
476            answer.classList.remove('show');
477            toggle.textContent = '+';
478        } else {
479            answer.classList.add('show');
480            toggle.textContent = '-';
481        }
482    });
483});
484

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.