PageSourceSearch

https://mickrozaim.ru/local/assets/js/custom_inner.js?17120377198427

js mickrozaim.ru collected 2026-10-09 21:46:18 UTC 8,427 bytes, 322 lines download raw bytes

1$(document).ready(function() {
2
3$('.modalXs1 .collapse_wrap').click(function(){
4 $(this).closest('.modalXs1').toggleClass('closed');
5});
6
7//$('.modalXs1 .close').click(function(){
8$('.modalXs1 [data-dismiss="modal"]').click(function(){
9 $(this).closest('.modalXs1').toggleClass('closed');
10 $(this).closest('.calcCedit_filter').toggleClass('opened').toggleClass('closed');
11});
12
13
14 $(window).resize(function() {
15  if ($(window).width() < 991) {
16     $('.modalXs1.closed .filter_radioTrigger').click(function(event) {
17      $(this).closest('.modal').modal('show');
18      $(this).closest('.modal').removeClass('closed');
19    });
20  }
21});
22 if ($(window).width() < 991) {
23     $('.modalXs1.closed .filter_radioTrigger').click(function(event) {
24      $(this).closest('.modal').modal('show');
25      $(this).closest('.modal').removeClass('closed');
26    });
27  }
28
29
30
31
32
33//кнопка сравнения для карточек
34$(document).on("click", ".no_active.compare_btn" , function() {
35  $(this).removeClass('no_active');
36  $(this).addClass('active');
37  $(this).find('.text').text('В сравнении')
38  $(this).find('.tooltip_block').text('Добавлено к сравнению').show().delay(1000).fadeOut();
39});
40$(document).on("click", ".active.compare_btn" , function() {
41  $(this).removeClass('active');
42  $(this).addClass('no_active');
43  $(this).find('.text').text('К сравнению');
44  $(this).find('.tooltip_block').text('Удалено из сравнения').show().delay(1000).fadeOut();
45});
46
47
48$('.readmore_block').readmore({
49	moreLink: '<a href="#" class="txt_green mt-2 d-inline-block">Подробнее&nbsp;<span class="ml-2"><i class="fa fa-angle-right" aria-hidden="true"></i></span></a>',
50	lessLink: '<a href="#" class="txt_green mt-2 d-inline-block">Свернуть&nbsp;<span class="ml-2"><i class="fa fa-angle-up" aria-hidden="true"></i></span></a>',
51	collapsedHeight: 90,
52	speed: 500,
53
54});
55
56
57//  $('.text_block ').append('<div class="readMore">Читать далее</div>');
58//  $('.text_block ').append('<div class=" readLess d-none">Свернуть</div>');
59//  $('.text_block .readMore').on('click' ,function(){
60//   $(this).siblings('.readmore_blockSm').addClass('opened');
61//   $(this).fadeOut();
62//   $(this).closest('.text_block').find('.readLess').fadeIn();
63// });
64
65if(document.documentElement.clientWidth<=974){
66  $('.readmore_blockSm').readmore({
67   moreLink: '<a href="#" class="r_link txt_lblue mt-2 d-inline-block">Читать далее&nbsp;<span class="ml-2"><i class="fa fa-angle-right" aria-hidden="true"></i></span></a>',
68   lessLink: '<a href="#" class="r_link txt_lblue mt-2 d-inline-block">Свернуть&nbsp;<span class="ml-2"><i class="fa fa-angle-up" aria-hidden="true"></i></span></a>',
69   collapsedHeight: 41,
70   speed: 500,
71   startOpen:true,
72 });
73}else{
74  $('.readmore_blockSm').readmore({
75 moreLink: '<a href="#" class="r_link txt_lblue mt-2 d-inline-block">Читать далее&nbsp;<span class="ml-2"><i class="fa fa-angle-right" aria-hidden="true"></i></span></a>',
76 lessLink: '<a href="#" class="r_link txt_lblue mt-2 d-inline-block">Свернуть&nbsp;<span class="ml-2"><i class="fa fa-angle-up" aria-hidden="true"></i></span></a>',
77 collapsedHeight: 41,
78 speed: 500,
79});
80}
81//  $('.readmore_blockSm').readmore({
82//   moreLink: '<a href="#" class="r_link txt_lblue mt-2 d-inline-block">Читать далее&nbsp;<span class="ml-2"><i class="fa fa-angle-right" aria-hidden="true"></i></span></a>',
83//   lessLink: '<a href="#" class="r_link txt_lblue mt-2 d-inline-block">Свернуть&nbsp;<span class="ml-2"><i class="fa fa-angle-up" aria-hidden="true"></i></span></a>',
84//   collapsedHeight: 41,
85//   speed: 500,
86// });
87
88
89
90//слайдеры
91
92function createSlickSteps(){
93
94	$('.steps_wrapper').not('.slick-initialized').slick({
95
96	  slidesToShow: 6,
97	  slidesToScroll: 1,
98	  infinite: false,
99	  settings: "slick",
100    initialSlide: 1,
101    // infinite: true,
102    // rtl: true,
103
104	  responsive: [
105          {
106              breakpoint: 991,
107              settings: "unslick"
108          }
109      ]
110	});
111
112}
113createSlickSteps();
114$(window).on( 'resize', createSlickSteps );
115
116
117//KRR - немного треш - этот код чтобы сдвинуть слайдер на странице О компании к 2024 году
118    $('.steps_wrapper').find('.slick-next').click();
119    setTimeout(function() {
120        $('.steps_wrapper').find('.slick-next').click();
121        setTimeout(function() {
122          $('.steps_wrapper').find('.slick-next').click();        
123        }, 500);    
124    }, 500);
125
126
127
128var $slickElement = $('.compare_row');
129
130$slickElement.on('init reInit afterChange', function (event, slick, currentSlide, nextSlide) {
131    //currentSlide is undefined on init -- set it to 0 in this case (currentSlide is 0 based)
132    var i = (currentSlide ? currentSlide : 0) + 1;
133});
134
135
136$slickElement.slick({
137   slidesToShow: 4,
138   arrows: true,
139   draggable: false,
140   asNavFor: ' .compare_row',
141   prevArrow: $('.compare_table__arrows .prev_arrow'),
142   nextArrow: $('.compare_table__arrows .next_arrow'),
143   responsive: [
144    {
145      breakpoint: 1200,
146      settings: {
147        slidesToShow: 3,
148
149      }
150    },
151    {
152      breakpoint: 991,
153      settings: {
154        slidesToShow: 2,
155      }
156    },
157    {
158      breakpoint: 768,
159     settings: {
160            slidesToShow: 2,
161          }
162    },
163    ]
164});
165
166
167
168 $('.compare_cell .close_btn').on('click', function() {
169    if ($(this).closest('.compare_row').find('.slick-slide').length < 2) {
170       $('.compare_table').hide();
171       $('.compare_filter .delete_label').hide();
172    }
173    i = $(this).closest(".slick-slide").attr("data-slick-index");
174    $slickElement.slick('slickRemove', i).slick('refresh');
175});
176
177
178// $('.cards_slider').slick({
179//     slidesToShow: 4,
180//     dots: true,
181//     responsive: [
182//     {
183//       breakpoint: 1200,
184//       settings: {
185//         slidesToShow: 3,
186//       }
187//     },
188//     {
189//         breakpoint: 991,
190//         settings: {
191//         slidesToShow: 2,
192
193//       }
194//     },
195//     {
196//         breakpoint: 768,
197//         settings: {
198//         slidesToShow: 1,
199
200//       }
201//     },
202//     ]
203// });
204
205
206
207
208$('.zodiak_card__slider').slick({
209     dots: false,
210	 infinite: true,
211	 speed: 300,
212	 slidesToShow: 1,
213   arrows: false,
214	 centerMode: true,
215	 variableWidth: true,
216     mobileFirst: true,
217     responsive: [
218      {
219          breakpoint: 768,
220          settings: 'unslick'
221      }
222    ]
223  });
224window.onresize = function(event) {
225	$('.zodiak_card__slider').slick({
226		 dots: false,
227		 infinite: true,
228		 speed: 300,
229		 slidesToShow: 1,
230		 centerMode: true,
231		 variableWidth: true,
232	     mobileFirst: true,
233	     responsive: [
234	      {
235	          breakpoint: 768,
236	          settings: 'unslick'
237	      }
238	    ]
239		});
240
241	};
242
243
244
245
246// // input autocoplte ui
247// var selectedItems= [];
248//
249// var availableTags = [
250//    "Альфабанк",
251//    "Сбербанк",
252//    "ВТБ",
253//    "Тинькофф",
254//    "Росбанк",
255//    "Россельхозбанк",
256// ];
257//
258//
259// $('.bank_name').autocomplete({
260//     source: availableTags,
261//     minLength: 0,
262//
263//     select:function(event, ui) {
264//
265//         selectedItems.push(ui.item.label);
266//       }
267// }).focus(function () {
268//     try {
269//         $(this).autocomplete("search");
270//     }
271//     catch (e) {
272//
273//     }
274// });
275// $('.bank_nameCalc').autocomplete({
276//     source: availableTags,
277//     minLength: 0,
278//     appendTo: ".autocomplete_wrap",
279//     select:function(event, ui) {
280//
281//         selectedItems.push(ui.item.label);
282//       }
283// }).focus(function () {
284//     try {
285//         $(this).autocomplete("search");
286//     }
287//     catch (e) {
288//
289//     }
290// });
291
292
293
294
295
296
297
298$('.readmore_list ul').each(function(){
299    if($(this).children('li').length){
300      $(this).children('li:lt(3)').show();
301
302    }
303     if($(this).children('li').length > 3){
304      $(this).append('<div class="fullList_trigger txt_lblue mt-2 cursor_p ml-1">Другие</div>');
305     }
306  });
307  $('.fullList_trigger').click(function () {
308      $(this).parent('.readmore_list ul').children('li').show();
309      $(this).hide(); // use gt instead of lt
310  });
311
312
313
314 $('.active_border .collapse').on('shown.bs.collapse', function () {
315        $(this).prev().addClass('active');
316    });
317
318    $('.active_border .collapse').on('hidden.bs.collapse', function () {
319        $(this).prev().removeClass('active');
320    });
321
322});

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.