PageSourceSearch

https://xn--100-hddj4df6a.com/assets/js/user-init.js?v=180749

js xn--100-hddj4df6a.com collected 2026-10-07 18:08:11 UTC 9,181 bytes, 317 lines download raw bytes

1/*куки*/
2$(document).ready(function() {    
3    $('.submit-button-inner').click(function() { 
4        var date = new Date();
5        var minutes = 1440;
6        date.setTime(date.getTime() + (minutes * 60 * 1000));
7    	$.cookie('was', true, {
8    	expires: date,
9    		path: '/'
10    	});
11    	$(".cookie-notification").removeClass('showc');
12    	$('.cookie-notification').addClass('hidec');
13    });
14	if (!$.cookie('was')) {
15        if(!$('.cookie-notification').hasClass('hidec')){
16            $(".cookie-notification").addClass('showc');
17        }
18    }
19});
20//
21$('.input-radio').click(function() {
22    $(this).prev().prop('checked', true);
23});
24$(document).ready(function() {
25    var swiper = new Swiper('[data-slider="gallery"]', {
26        slidesPerView: 1,
27        loop: true,
28        loopAdditionalSlides: 1,
29        spaceBetween: 24,
30        watchOverflow: true,
31        watchSlidesVisibility: true,
32        watchSlidesProgress: true,
33        slideToClickedSlide: true,
34        centeredSlides: true,
35        navigation: {
36            nextEl: '.slider-next',
37            prevEl: '.slider-prev',
38            },
39        });
40        
41    var swiper2 = new Swiper('[data-slider="people"]', {
42        slidesPerView: 1,
43        spaceBetween: 24,
44        navigation: {
45            nextEl: '.people-next',
46            prevEl: '.people-prev',
47        },
48        breakpoints: {
49            576: {
50                slidesPerView: 2,
51            },
52            768: {
53                slidesPerView: 2,
54            },
55            992: {
56                slidesPerView: 3,
57            },
58            1200: {
59                slidesPerView: 4,
60            }
61        }
62    });
63    var swiper3 = new Swiper('[data-slider="action"]', {
64        slidesPerView: 1,
65        spaceBetween: 24,
66        watchOverflow: true,
67        watchSlidesVisibility: true,
68        watchSlidesProgress: true,
69        slideToClickedSlide: true,
70        pagination: {
71            el: '.swiper-pagination',
72            type: 'bullets',
73            clickable: true
74        },
75        breakpoints: {
76            992: {
77                spaceBetween: 110,
78                loop: true,
79                loopAdditionalSlides: 1,
80                initialSlide: 0,
81                centeredSlides: true
82            }
83        }
84    });
85    var swiper4 = new Swiper('[data-slider="page-action"]', {
86        slidesPerView: "auto",
87        spaceBetween: 24,
88        watchOverflow: true,
89        watchSlidesVisibility: true,
90        watchSlidesProgress: true,
91        slideToClickedSlide: true,
92        pagination: {
93            el: '.swiper-pagination',
94            type: 'bullets',
95            clickable: true
96        },
97        breakpoints: {
98            992: {
99                slidesPerView: 2,
100                pagination: false
101            }
102        }
103    });
104});
105$(document).ready(function(){
106    /*КВИЗ*/
107    var current_fs, next_fs, previous_fs;
108    var opacity;
109    $(".qend").click(function(){
110        current_fs = $(this).parents("fieldset");
111        next_fs = $("fieldset.first");
112        var v_phone = $(this).closest('form').find('[name=phone]').val();
113        if ($("fieldset").index(current_fs) === 6) {
114        	if(v_phone.length !== 0) {
115        		current_fs.animate({opacity: 0}, {
116        			step: function(now) {
117        			opacity = 1 - now;
118        			current_fs.css({
119        			'display': 'none',
120        			'position': 'relative'
121        			});
122        			next_fs.css({'opacity': opacity});
123        			},
124        			duration: 600
125        		});
126        		next_fs.show();
127        	}
128        	else {
129        		if(v_phone.length === 0) {
130        		    $(v_phone).addClass("error");
131        		    $(v_phone).next('.form-error').addClass("error").html("Поле обязательно для заполнения");
132        		}
133        	}
134        }
135    });
136    $(".qnext").click(function(){
137        current_fs = $(this).parents("fieldset");
138        next_fs = $(this).parents("fieldset").next();
139    	next_fs.show();
140    	current_fs.animate({opacity: 0}, {
141    		step: function(now) {
142    		opacity = 1 - now;
143    		current_fs.css({
144    		'display': 'none',
145    		'position': 'relative'
146    		});
147    		next_fs.css({'opacity': opacity});
148    		},
149    		duration: 600
150    	});
151    	$('html, body').animate({
152            scrollTop: $('#form-quiz').offset().top
153        });
154    });
155    $(".qprev").click(function(){
156        current_fs = $(this).parents("fieldset");
157        previous_fs = $(this).parents("fieldset").prev();
158        previous_fs.show();
159        current_fs.animate({opacity: 0}, {
160        step: function(now) {
161        opacity = 1 - now;
162        current_fs.css({
163        'display': 'none',
164        'position': 'relative'
165        });
166        previous_fs.css({'opacity': opacity});
167        },
168        duration: 600
169        });
170        $('html, body').animate({
171            scrollTop: $('#form-quiz').offset().top
172        });
173    });
174});
175/*$(document).ready(function(){
176    $(document).snowfall({image :"/assets/images/img/snow1.png", minSize: 10, maxSize:15});
177});
178*/
179
180//Замена заголовка модалки
181const exampleModal = document.getElementById('zakaz');
182if (exampleModal) {
183  exampleModal.addEventListener('show.bs.modal', event => {
184    const button = event.relatedTarget;
185    const recipient = button.getAttribute('data-name');
186    const modalTitle = exampleModal.querySelector('.modal-title');
187    const modalBodyInput = exampleModal.querySelector('#product');
188    modalTitle.textContent = recipient;
189    modalBodyInput.value = recipient;
190  });
191}
192const exampleModal2 = document.getElementById('card');
193if (exampleModal2) {
194  exampleModal.addEventListener('show.bs.modal', event => {
195    const button = event.relatedTarget;
196    const recipient = button.getAttribute('data-name');
197    const time = button.getAttribute('data-time');
198    const modalTitle = exampleModal.querySelector('.modal-title');
199    const modalTitleDesc = exampleModal.querySelector('.modal-time');
200    const modalBodyInput = exampleModal.querySelector('#product');
201    const modalBodyInput2 = exampleModal.querySelector('#time');
202    modalTitle.textContent = recipient;
203    modalBodyInput.value = recipient;
204    modalTitleDesc.textContent = time;
205    modalBodyInput2.value = time;
206  });
207}
208//Сообщение об успешной отправке
209$(document).ready(function() {
210    if (typeof AjaxForm !== "undefined") {
211        AjaxForm.Message.success = function() { };
212        $(document).on('af_complete', function(event, response) { 
213            var form = response.form;
214            if (response.success) { 
215                form.parents('.modal').modal('hide');
216                $('#success .modal-body').html(response.message);
217                $('#success').modal('show');
218            }
219        });
220    }
221});
222
223
224
225
226
227    $(document).ready(function(){
228        $('.WY_link').fancybox();
229    });
230
231
232
233	
234	
235
236/***PHONE_MASK***/
237$(function(){
238  $(".form-phone").mask("+7 (999) 999-99-99");
239});
240
241
242function myFunction() {
243    var video = document.getElementById("myVideo");
244    var btn = document.getElementById("myBtn");
245    var overlay = document.getElementById("video__overlay");
246    if (video.paused) {
247        video.play();
248        btn.classList.add("active");
249        overlay.classList.add("active");
250    } else {
251        video.pause();
252        btn.classList.remove("active");
253        overlay.classList.remove("active");
254    }
255}
256
257function myFunction2() {
258    var video = document.getElementById("myVideo2");
259    var btn = document.getElementById("myBtn2");
260    var overlay = document.getElementById("video__overlay2");
261    if (video.paused) {
262        video.play();
263        btn.classList.add("active");
264        overlay.classList.add("active");
265    } else {
266        video.pause();
267        btn.classList.remove("active");
268        overlay.classList.remove("active");
269    }
270}
271function myFunction3() {
272    var video = document.getElementById("myVideo3");
273    var btn = document.getElementById("myBtn3");
274    var overlay = document.getElementById("video__overlay3");
275    if (video.paused) {
276        video.play();
277        btn.classList.add("active");
278        overlay.classList.add("active");
279    } else {
280        video.pause();
281        btn.classList.remove("active");
282        overlay.classList.remove("active");
283    }
284}
285
286
287$(function() {
288    $('.navbar-toggler').click(function(e) {
289        $('#top').toggleClass('active');
290    });
291});
292
293var startFlag = 0;
294if ($('#top').length) {
295    startFlag = 1;
296}
297$(window).on('scroll', function() {
298    if ($(document).width() > 1200) {
299        if (window.pageYOffset > 0 && !$('#top').hasClass('bgcolor')) {
300            $('#top').addClass('bgcolor');
301        } else if (window.pageYOffset === 0 && $('#top').hasClass('bgcolor')) {
302            $('#top').removeClass('bgcolor');
303        }
304    }
305});
306$(document).ready(function() {
307    if ($(document).width() > 1200) {
308        if (window.pageYOffset > 0 && !$('#top').hasClass('bgcolor')) {
309            $('#top').addClass('bgcolor');
310        } else if (window.pageYOffset === 0 && $('#top').hasClass('bgcolor')) {
311            if (startFlag === 0) {
312                $('#top').removeClass('bgcolor');
313            }
314        }
315    }
316});
317

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.