PageSourceSearch

https://work-zilla.com/blog/wp-content/themes/wzilla/js/common.js?ver=375b8fa53529a73fba548e145318f8d5

js work-zilla.com collected 2026-10-02 03:28:33 UTC 41,270 bytes, 1,205 lines download raw bytes

1/* common */
2$(document).ready(function() {
3	$(".protected").click(function() {
4  		window.open(this.href, 'SealVerfication', 'menubar=no,toolbar=no,personalbar=no,location=yes,status=no,resizable=yes,fullscreen=no,scrollbars=no,width=598,height=481');
5		return false;
6	});
7	if($('.main-posts.max-col-height .item-big-news1').length>0) $('.main-posts .item-big-news1').matchHeight({ byRow: false,});
8	if($('.mask').length>0) {
9		$(".mask").mask("8 (999) 999-99-99");
10	}
11	$('.check-more1 input,.check-more2 input,.help-mess1 select,.help-mess1 input').styler();
12	function ress() {
13		$('.content-page__right,.search-main__right').width($('.content-page').width()-280-30);
14		$('.container-tabs-cost-work').height($('.container-tabs-cost-work__item.active').height());
15		var $mobileMenu = $('.hide-mob-menu .sub-menu1');
16    if ($mobileMenu.length > 0 && $(".sub-menu1_header").length === 0) {
17		var $mobileMenuHeader = $('<li class="sub-menu1_header sub-menu1__icon1 menu-item"><a>Рубрики новостей</a></li>');
18		$mobileMenu.prepend($mobileMenuHeader);
19		$mobileMenuHeader.click(function(){
20			var $parent = $mobileMenu.parent();
21			$parent.removeClass("active");
22			$parent.height(55);
23		});
24    }
25    $('.hide-mob-menu .sub-menu1 li a').each(function () {
26      if ($(this).attr("href") === window.location.href) {
27        $(this).parent().addClass("active");
28        return false;
29      }
30    });
31    if ($('.hide-mob-menu .sub-menu1 li.active').length === 0) {
32      $('.hide-mob-menu .sub-menu1 li:first-child').addClass('active');
33    }
34    if ($('.hide-mob-menu .sub-menu1 li.active').length > 0) {
35      $('.hide-mob-menu .sub-menu1').css({
36        'top': -$('.hide-mob-menu .sub-menu1 li.active').position().top
37      });
38    }
39    $('.hide-mob-menu .sub-menu1 li:not(.sub-menu1_header) a').click(function () {
40      $('.hide-mob-menu .sub-menu1 li').filter(function () {
41        return !$(this).hasClass('active')
42      }).hide();
43      $('.hide-mob-menu').height(55);
44    });
45		if($('.drop-menu1__ul').length>0) {
46			$('.drop-menu1__ul').each(function() {
47				$(this).css({'top':-$(this).find('li.active').position().top});
48			});
49		}
50		$(".steps-list1__over").each(function() {
51			$(this).width($(this).parent().width()-$(this).prev().width()-15);
52		});
53		//$('.space-header').height($('.background-top').innerHeight());
54		if($('.scroll-fix-left').length>0) {
55			$('.scroll-fix-left').css({'left':$('.scroll-fix-left').parent().offset().left,'top':$('.background-top').innerHeight()+10}).width($('.scroll-fix-start').width());
56		}
57		$('.order-steps1__hide-title div').each(function() {
58			$(this).width($(this).parent().width());
59		});
60		$('.nav-tabs-cost-work__item span').each(function() {
61			$(this).width($(this).parent().width());
62		});
63		if($('.help-scroll-device1').length>0) {
64			if($(window).width()<1000) {
65				$('.help-scroll-device1').css({'max-height':$(window).height()-$('.background-top').innerHeight()-$('.foot-line-progress1').innerHeight()-50});
66			}
67			else {
68				$('.help-scroll-device1').attr('style','');
69			}
70		}
71		$('.category-tabs1__over-all-item').width($('.category-tabs1').width());
72		if(flag1==1) {
73			clearTimeout(set1);
74			set1=setTimeout(function() {
75				set2();
76			}, 100);
77		}
78	}
79	var set1;
80	function set2() {
81		$('.category-tabs1__item,.category-tabs1').attr('style','');
82		$('.category-tabs1__item').eq(in1).height($('.category-tabs1__item').eq(in1).find('.category-tabs1__over-all-item').height()+15);
83		$('.category-tabs1').height($('.category-tabs1__item').eq(in1).height());
84	}
85	ress();
86	$(window).resize(function() {
87		ress();
88	});
89	$(window).load(function() {
90		ress();
91		if($('.aimation-circle1').length>0) {
92			$('.aimation-circle1').addClass('active');
93		}
94		scroltop1();
95	});
96	$('.video-btn a,.fancy').fancybox({
97		helpers		: {
98			overlay: {
99				locked: false
100			},
101			media : {},
102			buttons : {}
103		}
104	});
105	$('.nav-tabs-cost-work__item:not(.disabled)').click(function(e) {
106		e.preventDefault();
107		$('.position-relative1').addClass('active');
108		$(this).addClass('active').siblings().removeClass('active').addClass('active2');
109		$('.container-tabs-cost-work__item').eq($(this).index()).addClass('active').siblings().removeClass('active');
110		ress();
111		setTimeout(function() {
112			ress();
113		}, 200);
114		console.log(234324)
115	});
116	var ind2;
117	$('.nav-tabs-cost-work__item.disabled').click(function(e) {
118		e.preventDefault();
119		ind2=$(this).index();
120		$('.js-animation-category1').addClass('active');
121		$('.container-tabs-cost-work.mod1').removeClass('disabled');
122		if($('.nav-tabs-cost-work.mod3').length>0) {
123			setTimeout(function() {
124				$('.nav-tabs-cost-work.mod3 .nav-tabs-cost-work__item').eq(ind2).click();
125			}, 500);
126		}
127		else {
128			$('.nav-tabs-cost-work.mod1 .nav-tabs-cost-work__item').eq($(this).index()).click();
129		}
130		setTimeout(function() {
131			$('.container-tabs-cost-work.mod1').addClass('moment1');
132		}, 500);
133		var o1=$('.order-steps1__item').eq(0).attr('item');
134		var o2=$('.order-steps1__item').eq(0).attr('offset');
135		var o3=$('.order-steps1__item').eq(0).attr('arrow');
136		help1(o1,o2,o3,1);
137		if($('.nav-tabs-cost-work.mod2-1').length>0) {
138			$('body,html').animate({scrollTop:$('.over-device-scroll1').offset().top-$('.background-top').height()}, 500);
139		}
140	});
141	$('.hide-mob-menu_button').click(function() {
142		$(this).parent().addClass('active').height($(this).prev().height());
143	});
144	/*$(document).mouseup(function(e){
145	   var menu = $('.hide-mob-menu');
146	   if (!menu.is(e.target)
147	   && menu.has(e.target).length === 0)
148	   {
149	      $('.hide-mob-menu').removeClass('active').attr('style','');
150	   }
151	});*/
152	$(document).click(function(e){
153	    if ($(e.target).closest(".hide-mob-menu").length) return;
154		$('.hide-mob-menu').removeClass('active').attr('style','');
155	    e.stopPropagation();
156	});
157	$('html').on('touchstart', function(e) {
158	    $('.hide-mob-menu').removeClass('active').attr('style','');
159	})
160	$(".hide-mob-menu").on('touchstart',function(e) {
161	    e.stopPropagation();
162	});
163	$('.js-copy').html($('.hide-mob-menu .sub-menu1').html());
164	var speed2=200;
165	if($('.speed-chose1').length>0) {
166		speed2=parseInt($('.speed-chose1').attr('speed'));
167	}
168	$('.hide-text__title').click(function() {
169		if($(this).attr('dt')==0) {
170			$(this).attr('dt','1').parent().find('.hide-text__text-hidden').slideDown(speed2);
171			$(this).parent().addClass('active');
172		}
173		else {
174			$(this).attr('dt','0').parent().find('.hide-text__text-hidden').slide
174Up(speed2+100);
175			$(this).parent().removeClass('active');
176		}
177	});
178	if($('.scroll-fix-left').length>0) {
179		if($('.scroll-fix-left').innerHeight()+50>$(window).height()){
180			$('.scroll-fix-left').addClass('disable');
181		}
182	}
183	$(window).scroll(function() {
184		if($('.scroll-fix-left').length>0) {
185			if($(this).scrollTop()>$('.content-page').offset().top+$('.content-page').innerHeight()-$('.scroll-fix-left .sub-menu1').innerHeight()-$('.scroll-fix-left .sidebar-bunner').innerHeight()-60-$('.background-top').innerHeight()+10-head2) {
186				$('.scroll-fix-left').addClass('fix-disabled');
187			}
188			else {
189				$('.scroll-fix-left').removeClass('fix-disabled');
190			}
191			if($(this).scrollTop()>$('.scroll-fix-start').offset().top-10-$('.background-top').innerHeight()+25-20-head2) {
192				$('.scroll-fix-left').addClass('fix-active');
193			}
194			else {
195				$('.scroll-fix-left').removeClass('fix-active');
196			}
197		}
198		scroltop1();
199	});
200	function scroltop1() {
201		if($(window).scrollTop()>25) {
202			$('.background-top').addClass('active');
203		}
204		else {
205			$('.background-top').removeClass('active');
206		}
207	}
208	scroltop1();
209	$('.file-input1 span').click(function() {
210		$(this).parent().find('input').click();
211	});
212	$('.file-input1 input').change(function() {
213		$(this).parent().find('span').text($(this).val().replace("C:\\fakepath\\", ""));
214	});
215	$('.slider-drag1').slider({
216		range:'min',
217		min: 0,
218		max: 500,
219		value: 100
220	});
221	$('.step-social1__input').click(function() {
222		$(this).addClass('focus');
223		$(this).find('input').focus();
224	});
225	$('.step-social1__input input').blur(function() {
226		if($(this).val()=='') {
227			$(this).parent().parent().removeClass('focus');
228		}
229	});
230	$('.open1').click(function() {
231		if($(this).attr('dt')=='0') {
232			$(this).parent().addClass('active').siblings().removeClass('active').find('.open1').attr('dt','0').next().slideUp(300);
233			$(this).attr('dt','1').next().slideDown(300);
234		}
235		else {
236			$(this).parent().removeClass('active');
237			$(this).attr('dt','0').next().slideUp(300);
238		}
239	});
240	$('.tooltip-help1').click(function() {
241		$('.tooltip-help1,.tooltip-help2,.help-mess1').addClass('active');
242	});
243	$('.tooltip-help2').click(function() {
244		$('.tooltip-help1,.tooltip-help2,.help-mess1').removeClass('active');
245	});
246	$('.next-step1').click(function() {
247		nextstep1();
248		$('.tooltip-help2').click();
249	});
250	$('.prev-step1').click(function() {
251		prevstep1();
252		$('.tooltip-help2').click();
253	});
254	var sld1=$('.order-steps1__item').length;
255	var sld2=0;
256	function nextstep1() {
257		if(sld2!=sld1-1) {
258			$('.order-steps1__item').eq(sld2).next().addClass('active').find('.order-steps1__over').slideDown(300);
259			$('.order-steps1__item').eq(sld2).next().find('.order-steps1__hide-title').hide();
260			$('.order-steps1__item').eq(sld2).removeClass('active').find('.order-steps1__over').slideUp(300);
261			$('.order-steps1__item').eq(sld2).find('.order-steps1__hide-title').slideDown(300);
262			var o1=$('.order-steps1__item').eq(sld2).next().attr('item');
263			var o2=$('.order-steps1__item').eq(sld2).next().attr('offset');
264			var o3=$('.order-steps1__item').eq(sld2).next().attr('arrow');
265			var o4=$('.order-steps1__item').eq(sld2).next().attr('help');
266			help1(o1,o2,o3,o4);
267			$('body,html').animate({scrollTop:(105*o1)+30}, 1);
268			sld2++;
269			ress();
270		}
271		else {
272			alert('end page')
273		}
274	}
275	function prevstep1() {
276		if(sld2>0) {
277			$('.order-steps1__item').eq(sld2).prev().addClass('active').find('.order-steps1__over').slideDown(300);
278			$('.order-steps1__item').eq(sld2).prev().find('.order-steps1__hide-title').hide();
279			$('.order-steps1__item').eq(sld2).removeClass('active').find('.order-steps1__over').slideUp(300);
280			$('.order-steps1__item').eq(sld2).find('.order-steps1__hide-title').slideDown(300);
281			var o1=$('.order-steps1__item').eq(sld2).prev().attr('item');
282			var o2=$('.order-steps1__item').eq(sld2).prev().attr('offset');
283			var o3=$('.order-steps1__item').eq(sld2).prev().attr('arrow');
284			var o4=$('.order-steps1__item').eq(sld2).prev().attr('help');
285			help1(o1,o2,o3,o4);
286			$('body,html').animate({scrollTop:(105*o1)+30}, 1);
287			sld2--;
288			ress();
289		}
290		else {
291			alert('end start page')
292		}
293	}
294	function gostep1(e) {
295		var y1=parseInt(e);
296		$('.order-steps1__item').eq(y1).addClass('active').find('.order-steps1__over').slideDown(300);
297		$('.order-steps1__item').eq(y1).find('.order-steps1__hide-title').hide();
298		$('.order-steps1__item').eq(y1).siblings().removeClass('active').find('.order-steps1__over').slideUp(300);
299		$('.order-steps1__item').eq(y1).siblings().find('.order-steps1__hide-title').slideDown(300);
300		var o1=$('.order-steps1__item').eq(y1).attr('item');
301		var o2=$('.order-steps1__item').eq(y1).attr('offset');
302		var o3=$('.order-steps1__item').eq(y1).attr('arrow');
303		var o4=$('.order-steps1__item').eq(y1).attr('help');
304		help1(o1,o2,o3,o4);
305		$('body,html').animate({scrollTop:(105*o1)+30}, 1);
306		sld2=y1;
307		ress();
308	}
309	$('.order-steps1__hide-title').click(function() {
310		gostep1($(this).parent().index());
311		$('.tooltip-help2').click();
312	});
313
314	var v1=$('.order-steps1__item').eq(0).attr('item');
315	var v2=$('.order-steps1__item').eq(0).attr('offset');
316	var v3=$('.order-steps1__item').eq(0).attr('arrow');
317	var v4=$('.order-steps1__item').eq(0).attr('help');
318	help1(v1,v2,v3,v4);
319
320	function help1(q,w,e,r) {
321		var e1=parseInt(q);
322		var e2=parseInt(w);
323		var e3=parseInt(e);
324		var e4=parseInt(r);
325		$('.help-mess1').css({'top':105*e1+e2});
326		$('.help-mess1__arrow1').css({'top':e3});
327		$('.help-mess1__item').eq(e4).addClass('active').siblings().removeClass('active');
328	}
329	if($('.sub-menu1.js-copy').height()>$('.content-page__right').height()) {
330		$('.scroll-fix-left').addClass('disable');
331	}
332	var hh1=0;
333	$('.drop-menu1__current').click(function() {
334		if($(this).attr('dt')=='0') {
335			$('.drop-menu1__current').attr('dt','0').parent().removeClass('active').find('.drop-menu1__dropdown').attr('style','');
336			if($(window).width()>750) {
337				hh1=50;
338				if($('.archive-chose1__text.mod1').length>0) {
339					//hh1=71;
340				}
341			}
342			else {
343				hh1=45;
344			}
345			$(this).attr('dt','1').parent().addClass('active').find('.drop-menu1__dropdown').height($(this).parent().find('.drop-menu1__drop-item').length*hh1);
346		}
347		/*else {
348			$(this).attr('dt','0').parent().removeClass('active').find('.drop-menu1__dropdown').attr('style','');
349		}*/
350	});
351	$(document).click(function(e){
352	    if ($(e.target).closest(".drop-menu1").length) return;
353		$('.drop-menu1__current').attr('dt','0').parent().removeClass('active').find('.drop-menu1__dropdown').attr('style','');
354	    e.stopPropagation();
355	});
356	$('html').on('touchstart', function(e) {
357	    $('.drop-menu1__current').attr('dt','0').parent().removeClass('active').find('.drop-menu1__dropdown').attr('style','');
358	})
359	$(".drop-menu1").on('touchstart',function(e) {
360	    e.stopPropagation();
361	});
362	var not1=0;
363	$('.notify-link1 a,.vacancy-block1__subscribe').click(function(e){
364		e.preventDefault();
365		if(not1==0) {
366			not1=1;
367			$('.subscribe-over1').slideDown(200);
368			$('.subscribe-hide-place1,.arrow-subscribe,.vacancy-block1__arrow').addClass('active');
369		}
370		else {
371			not1=0;
372			$('.subscribe-over1').slideUp(200);
373			$('.subscribe-hide-place1,.arrow-subscribe,.vacancy-block1__arrow').removeClass('active');
374		}
375	});
376	$('.search-main__input').focus(function() {
377		$('.search-main__form').removeClass('active');
378		$('.search-main__form-drop').slideUp(100);
379		$(this).parent().addClass('active').find('.search-main__form-drop').slideDown(100);
380	});
381	$(document).click(function(e){
382	    if ($(e.target).closest(".search-main__form").length) return;
383		$('.search-main__form').removeClass('active');
384		$('.search-main__form-drop').slideUp(100);
385	    e.stopPropagation();
386	});
387	var speed1=300;
388	$('.category-faq1__open').click(function() {
389		if($(this).attr('dt')=='0') {
390			$('.category-faq1__open').attr('dt','0').slideDown(0).next().slideUp(0).parent().parent().removeClass('active');
391			$(this).parent().parent().addClass('active');
392			$(this).attr('dt','1').slideUp(0).next().slideDown(speed1);
393			//$('body,html').scrollTop({scrollTop:$(this).next().offset().top-20-$('.background-top').height()}, speed1);
394		}
395	});
396	var fake1=0;
397	$('.category-faq1__hide').click(function() {
398		$(this).slideUp(speed1);
399		$(this).attr('title-fake',fake1);
400		setTimeout(function() {
401			$('.category-faq1__hide[title-fake='+fake1+']').prev().attr('dt','0').slideDown(0).parent().parent().removeClass('active');
402			fake1++;
403		}, speed1);
404	});
405	$('.help-form-hide1__open1').click(function() {
406		$(this).parent().slideUp(200).next().slideDown(200);
407	});
408	$('.list-people1__visible-information1').click(function() {
409		if($(this).parent().parent().attr('dt')=='0') {
410			$(this).parent().parent().siblings().attr('dt','0').removeClass('active').find('.list-people1__hide-information').slide
410Up(200);
411			$(this).parent().parent().attr('dt','1').addClass('active').find('.list-people1__hide-information').slideDown(200);
412		}
413		else {
414			$(this).parent().parent().attr('dt','0').removeClass('active').find('.list-people1__hide-information').slideUp(200);
415		}
416	});
417	$('.vacancy-click-js1').click(function(){
418		if($(this).attr('dt')=='0') {
419			$(this).parent().siblings().find('.vacancy-click-js1').attr('dt','0').parent().removeClass('active').find('.list-vacancy1__text2').slideUp(300).parent().find('.list-vacancy1__text1').slideDown(300);
420			$(this).attr('dt','1').parent().addClass('active').find('.list-vacancy1__text1').slideUp(300).parent().find('.list-vacancy1__text2').slideDown(300);
421		}
422		else {
423			$(this).attr('dt','0').parent().removeClass('active').find('.list-vacancy1__text2').slideUp(300).parent().find('.list-vacancy1__text1').slideDown(300);
424		}
425	});
426	$('.sub-menu1__drop1-item a').each(function(){
427		if($(this).text().length>25) {
428			$(this).html('<i>'+$(this).html()+'</i>');
429		}
430	});
431	var flag1=0;
432	var in1;
433	var in2=0;
434	var in3=0;
435	var protect1=0;
436	var set3;
437	$('.list-category-order1__over').click(function(e) {
438		e.preventDefault();
439		in1=$(this).parent().index();
440		$('.category-tabs1__item').attr('style','');
441		$(this).parent().removeClass('active2').addClass('active1').siblings().addClass('active2').removeClass('active1');
442		$('.category-tabs1__item').eq(in1).addClass('active').siblings().removeClass('active');
443		$('.category-tabs1__item').eq(in1).height($('.category-tabs1__item').eq(in1).find('.category-tabs1__over-all-item').height()+15);
444		$('.category-tabs1').height($('.category-tabs1__item').eq(in1).height());
445		if(flag1==0) {
446			flag1=1;
447			$('.category-tabs1,.list-category-order1,.nav-tabs-cost-work.mod3').addClass('active');
448		}
449
450		$('.position-relative1').addClass('active');
451		$('.nav-tabs-cost-work.mod3 .nav-tabs-cost-work__item').eq($(this).parent().index()).removeClass('active2').addClass('active1 active').siblings().addClass('active2').removeClass('active1 active');
452	});
453	$('.nav-tabs-cost-work.mod3 .nav-tabs-cost-work__item').click(function(e) {
454		e.preventDefault();
455		in1=$(this).index();
456		$('.category-tabs1__item').attr('style','');
457		$(this).removeClass('active2').addClass('active1').siblings().addClass('active2').removeClass('active1');
458		$('.category-tabs1__item').eq(in1).addClass('active').siblings().removeClass('active');
459		$('.category-tabs1__item').eq(in1).height($('.category-tabs1__item').eq(in1).find('.category-tabs1__over-all-item').height()+15);
460		$('.category-tabs1').height($('.category-tabs1__item').eq(in1).height());
461		if(flag1==0) {
462			flag1=1;
463			$('.category-tabs1,.list-category-order1,.nav-tabs-cost-work.mod3').addClass('active');
464		}
465
466		$('.list-category-order1__item').eq($(this).index()).removeClass('active2').addClass('active1').siblings().addClass('active2').removeClass('active1');
467	});
468	$(document).click(function(e){
469	    if ($(e.target).closest(".list-category-order1,.category-tabs1,.position-relative1,.nav-tabs-cost-work").length) return;
470		flag1=0;
471		$('.category-tabs1').removeClass('active');
472		setTimeout(function() {
473			$('.category-tabs1,.category-tabs1__item,.list-category-order1,.nav-tabs-cost-work.mod3').attr('style','').removeClass('active');
474			$('.list-category-order1__item,.nav-tabs-cost-work__item').removeClass('active1 active2');
475			$('.nav-tabs-cost-work__item').removeClass('active');
476		}, 100);
477		setTimeout(function() {
478			$('.position-relative1').removeClass('active');
479			//in2=0;
480			//in3=0;
481		}, 500);
482	    e.stopPropagation();
483	});
484	$('.make-best1').click(function(e) {
485		e.preventDefault();
486		$('.block-raiting1').slideUp(300);
487		$('.block-raiting2').slideDown(300);
488		//$('body,html').scrollTop($('.block-raiting2').offset().top-$('.background-top').innerHeight()+2);
489	});
490	$('.make-best2').click(function(e) {
491		e.preventDefault();
492		$('.block-raiting2').slideUp(300);
493		$('.block-raiting1').slideDown(300);
494		$('body,html').scrollTop($('.block-raiting1').offset().top-$('.background-top').innerHeight()+2);
495	});
496	$('.slider-rewiev-content1').slick({
497	    arrows: false,
498	    asNavFor: '.carousel-rewiev1',
499	    fade: true,
500	    speed: 1100
501	});
502	$('.carousel-rewiev1').slick({
503	    arrows: false,
504	    asNavFor: '.slider-rewiev-content1',
505		centerMode: true,
506		focusOnSelect: true,
507		slidesToShow: 5,
508		//infinite: false,
509		speed: 1100,
510		responsive: [
511		{
512			breakpoint: 1001,
513			settings: {
514				slidesToShow: 3
515			}
516		},
517		{
518			breakpoint: 751,
519			settings: {
520				slidesToShow: 2
521			}
522		}
523		]
524	});
525	var ew1;
526	$('.list-sub-category2__item a').attr('dt','0');
527	$('.list-sub-category2__item a').click(function(e){
528		e.preventDefault();
529		if($(window).width()<750) {
530			ew1=76-10;
531		}
532		else if($(window).width()>1000) {
533			ew1=103;
534		}
535		else {
536			ew1=113;
537		}
538		if($(this).attr('dt')=='0') {
539			$(this).attr('dt','1');
540			$(this).parent().addClass('active').siblings().removeClass('active').find('a').attr('dt','0');
541
542			if($(this).parent().parent().attr('dt')=='0') {
543				$(this).parent().parent().attr('dt','1');
544				$('.category-tabs1__item.active').height($('.category-tabs1').height()+ew1);
545				$('.category-tabs1').addClass('nodelay-item').height($('.category-tabs1').height()+ew1);
546				$(this).parent().parent().parent().parent().parent().parent().parent().find('.hide-link-start1').slideDown(200);
547				setTimeout(function() {
548					$('.category-tabs1').removeClass('nodelay-item');
549				}, 250);
550			}
551		}
552		else {
553			$(this).attr('dt','0');
554			$(this).parent().removeClass('active');
555
556			$(this).parent().parent().attr('dt','0');
557			$('.category-tabs1__item.active').height($('.category-tabs1').height()-ew1);
558			$('.category-tabs1').addClass('nodelay-item').height($('.category-tabs1').height()-ew1);
559			$(this).parent().parent().parent().parent().parent().parent().parent().find('.hide-link-start1').slideUp(200);
560			setTimeout(function() {
561				$('.category-tabs1').removeClass('nodelay-item');
562			}, 250);
563		}
564	});
565	var speed3=2000;
566	$('.over-five-lider-freelance1').slick({
567		prevArrow:'<div class="prev">123</div>',
568		nextArrow:'<div class="next">123</div>',
569		arrows: false,
570		draggable: false,
571		touchMove: false,
572	    slidesToShow: 5,
573	    infinite: false,
574	    speed: 400,
575	    autoplay: true,
576        autoplaySpeed: speed3,
577        pauseOnHover: false,
578        pauseOnFocus: false,
579		/*responsive: [
580		{
581			breakpoint: 1321,
582			settings: {
583				slidesToShow: 4
584			}
585		},
586		{
587			breakpoint: 1001,
588			settings: {
589				slidesToShow: 3
590			}
591		},
592		{
593			breakpoint: 751,
594			settings: {
595				slidesToShow: 1
596			}
597		}
598		]*/
599	});
600	$('.over-five-lider-freelance1').on('beforeChange', function(event, slick, slider, index, currentSlide, nextSlide){
601		recount1();
602		clearTimeout(set4);
603		set4=setTimeout(function() {
604			$('.over-five-lider-freelance1').slick('slickGoTo',0);
605		}, speed3*2);
606	});
607	var set4;
608	function recount1() {
609		setTimeout(function() {
610			$('.over-five-lider-freelance1__over').removeClass('mod1 mod2');
611		  	$('.over-five-lider-freelance1 .slick-active').eq(1).find('.over-five-lider-freelance1__over').addClass('mod1');
612		  	$('.over-five-lider-freelance1 .slick-active').eq(2).find('.over-five-lider-freelance1__over').addClass('mod2');
613		  	$('.over-five-lider-freelance1 .slick-active').eq(3).find('.over-five-lider-freelance1__over').addClass('mod1');
614		}, 10);
615	}
616	recount1();
617	$('.slider-sample-work1').slick({
618	    prevArrow:'<div class="prev"></div>',
619	    nextArrow:'<div class="next"></div>',
620	    fade: true,
621	    adaptiveHeight: true
622	});
623	$('.show-more-sample-work1 a').click(function(e) {
624		e.preventDefault();
625		$('.slider-sample-work1 .next').click();
626	});
627	$('.more-social__current').click(function() {
628		$(this).parent().toggleClass('active');
629	});
630	$(document).click(function(e){
631	    if ($(e.target).closest(".more-social").length) return;
632		$('.more-social').removeClass('active');
633	    e.stopPropagation();
634	});
635	$('html').on('touchstart', function(e) {
636		$('.more-social').removeClass('active');
637	})
638	$('.more-social').on('touchstart',function(e) {
639	    e.stopPropagation();
640	});
641	$('.link-avatar1__foto').click(function(e) {
642		e.preventDefault();
643		$(this).parent().toggleClass('active2');
644	});
645	$(document).click(function(e){
646	    if ($(e.target).closest(".link-avatar1").length) return;
647		$('.link-avatar1').removeClass('active2');
648	    e.stopPropagation();
649	});
650	$('html').on('touchstart', function(e) {
651		$('.link-avatar1').removeClass('active2');
652	})
653	$(".link-avatar1").on('touchstart',function(e) {
654	    e.stopPropagation();
655	});
656	$('.mobile-button1').click(function(e) {
657		e.preventDefault();
658		$(this).toggleClass('active');
659		$('.menu1').toggleClass('active');
660	});
661	$(document).click(function(e){
662	    if ($(e.target).closest(".menu1,.mobile-button1").length) return;
663		$('.menu1,.mobile-button1').removeClass('active');
664	    e.stopPropagation();
665	});
666	$('html').on('touchstart', function(e) {
667		$('.menu1,.mobile-button1').removeClass('active');
668	})
669	$(".menu1,.mobile-button1").on('touchstart',function(e) {
670	    e.stopPropagation();
671	});
672	var head2=0;
673	if($('.header-two').length>0) {
674		$('.scroll-fix-left,.space-header,.menu1,.link-avatar1__drop-menu').addClass('more');
675		head2=60;
676	}
677	if($('.give-job1.hide').length>0) {
678		$('.link-avatar1__drop-menu').addClass('more');
679		head2=60;
680	}
681	Share = {
682    /**
683     * Показать пользователю дилог шаринга в сооветствии с опциями
684     * Метод для использования в inline-js в ссылках
685     * При блокировке всплывающего окна подставит нужный адрес и ползволит браузеру перейти по нему
686     *
687     * @example <a href="" onclick="return share.go(this)">like+</a>
688     *
689     * @param Object _element - элемент DOM, для которого
690     * @param Object _options - опции, все необязательны
691     */
692    go: function(_element, _options) {
693        var
694            self = Share,
695            options = $.extend(
696                {
697                    type:       'vk',    // тип соцсети
698                    url:        location.href,  // какую ссылку шарим
699                    count_url:  location.href,  // для какой ссылки крутим счётчик
700                    title:      document.title, // заголовок шаринга
701                    image:        '',             // картинка шаринга
702                    text:       '',             // текст шаринга
703                },
704                $(_element).data(), // Если параметры заданы в data, то читаем их
705                _options            // Параметры из вызова метода имеют наивысший приоритет
706            );
707
708        if (self.popup(link = self[options.type](options)) === null) {
709            // Если не удалось открыть попап
710            if ( $(_element).is('a') ) {
711                // Если это <a>, то подставляем адрес и просим браузер продолжить переход по ссылке
712                $(_element).prop('href', link);
713                return true;
714            }
715            else {
716                // Если это не <a>, то пытаемся перейти по адресу
717                location.href = link;
718                return false;
719            }
720        }
721        else {
722            // Попап успешно открыт, просим браузер не продолжать обработку
723            return false;
724        }
725    },
726
727    // ВКонтакте
728    vk: function(_options) {
729        var options = $.extend({
730            url:    location.href,
731            title:  document.title,
732            image:  '',
733            text:   '',
734        }, _options);
735
736        return 'http://vkontakte.ru/share.php?'
737            + 'url='          + encodeURIComponent(options.url)
738            + '&title='       + encodeURIComponent(options.title)
739            + '&description=' + encodeURIComponent(options.text)
740            + '&image='       + encodeURIComponent(options.image)
741            + '&noparse=true';
742    },
743
744
745
746    // Facebook
747    fb: function(_options) {
748        var options = $.extend({
749            url:    location.href,
750            title:  document.title,
751            image:  '',
752            text:   '',
753        }, _options);
754
755        return 'http://www.facebook.com/sharer.php?s=100'
756            + '&p[title]='     + encodeURIComponent(options.title)
757            + '&p[summary]='   + encodeURIComponent(options.text)
758            + '&p[url]='       + encodeURIComponent(options.url)
759            + '&p[images][0]=' + encodeURIComponent(options.image);
760    },
761
762    // Твиттер
763    tw: function(_options) {
764        var options = $.extend({
765            url:        location.href,
766            count_url:  location.href,
767            title:      document.title,
768        }, _options);
769
770        return 'http://twitter.com/share?'
771            + 'text='      + encodeURIComponent(options.title)
772            + '&url='      + encodeURIComponent(options.url)
773            + '&counturl=' + encodeURIComponent(options.count_url);
774    },
775
776
777    // Открыть окно шаринга
778    popup: function(url) {
779        return window.open(url,'','toolbar=0,status=0,scrollbars=1,width=626,height=436');
780    }
781};
782	
783	$(document).on('click', '.social_share', function(){
784    	Share.go(this)
785  	});
786
787	if(location.pathname === '/')
788		$('.sub-menu1 .menu-item-type-custom').addClass('active');
789
790	// pagination
791	var $pageNavigation = $('.page-navigation1');
792	$pageNavigation.find('ol').addClass('pagination1');
793	$pageNavigation.find('li').each(function() {
794		$(this).addClass('pagination1__item');
795	});
796	var $prev = $pageNavigation.find('li').first();
797	if($prev.text() === "Предыдущая") {
798		$prev.removeClass('pagination1__item');
799		$prev.addClass('pagination1__prev');
800		$prev.find('a').html('<i>Предыдущая</i>');
801	}
802	var $next = $pageNavigation.find('li').last();
803	if($next.text() === "Следующая") {
804		$next.removeClass('pagination1__item');
805		$next.addClass('pagination1__next');
806		$next.find('a').html('<i>Следующая</i>');
807	}
808
809	var $breadcrumbs = $('.breadcrumbs');
810	if ($breadcrumbs.length === 1) {
811		var $all = $breadcrumbs.children().first();
812		if ($all.length === 1 && $all.text() === "WORK-ZILLA.COM")
813			$all.find('a').text("Все статьи");
814	}
815});
816
817
818
819
820
821
822
823
824
825/**
826* jquery.matchHeight.js master
827* http://brm.io/jquery-match-height/
828* License: MIT
829*/
830
831;(function(factory) { // eslint-disable-line no-extra-semi
832    'use strict';
833    if (typeof define === 'function' && define.amd) {
834        // AMD
835        define(['jquery'], factory);
836    } else if (typeof module !== 'undefined' && module.exports) {
837        // CommonJS
838        module.exports = factory(require('jquery'));
839    } else {
840        // Global
841        factory(jQuery);
842    }
843})(function($) {
844    /*
845    *  internal
846    */
847
848    var _previousResizeWidth = -1,
849        _updateTimeout = -1;
850
851    /*
852    *  _parse
853    *  value parse utility function
854    */
855
856    var _parse = function(value) {
857        // parse value and convert NaN to 0
858        return parseFloat(value) || 0;
859    };
860
861    /*
862    *  _rows
863    *  utility function returns array of jQuery selections representing each row
864    *  (as displayed after float wrapping applied by browser)
865    */
866
867    var _rows = function(elements) {
868        var tolerance = 1,
869            $elements = $(elements),
870            lastTop = null,
871            rows = [];
872
873        // group elements by their top position
874        $elements.each(function(){
875            var $that = $(this),
876                top = $that.offset().top - _parse($that.css('margin-top')),
877                lastRow = rows.length > 0 ? rows[rows.length - 1] : null;
878
879            if (lastRow === null) {
880                // first item on the row, so just push it
881                rows.push($that);
882            } else {
883                // if the row top is the same, add to the row group
884                if (Math.floor(Math.abs(lastTop - top)) <= tolerance) {
885                    rows[rows.length - 1] = lastRow.add($that);
886                } else {
887                    // otherwise start a new row group
888                    rows.push($that);
889                }
890            }
891
892            // keep track of the last row top
893            lastTop = top;
894        });
895
896        return rows;
897    };
898
899    /*
900    *  _parseOptions
901    *  handle plugin options
902    */
903
904    var _parseOptions = function(options) {
905        var opts = {
906            byRow: true,
907            property: 'height',
908            target: null,
909            remove: false
910        };
911
912        if (typeof options === 'object') {
913            return $.extend(opts, options);
914        }
915
916        if (typeof options === 'boolean') {
917            opts.byRow = options;
918        } else if (options === 'remove') {
919            opts.remove = true;
920        }
921
922        return opts;
923    };
924
925    /*
926    *  matchHeight
927    *  plugin definition
928    */
929
930    var matchHeight = $.fn.matchHeight = function(options) {
931        var opts = _parseOptions(options);
932
933        // handle remove
934        if (opts.remove) {
935            var that = this;
936
937            // remove fixed height from all selected elements
938            this.css(opts.property, '');
939
940            // remove selected elements from all groups
941            $.each(matchHeight._groups, function(key, group) {
942                group.elements = group.elements.not(that);
943            });
944
945            // TODO: cleanup empty groups
946
947            return this;
948        }
949
950        if (this.length <= 1 && !opts.target) {
951            return this;
952        }
953
954        // keep track of this group so we can re-apply later on load and resize events
955        matchHeight._groups.push({
956            elements: this,
957            options: opts
958        });
959
960        // match each element's height to the tallest element in the selection
961        matchHeight._apply(this, opts);
962
963        return this;
964    };
965
966    /*
967    *  plugin global options
968    */
969
970    matchHeight.version = 'master';
971    matchHeight._groups = [];
972    matchHeight._throttle = 80;
973    matchHeight._maintainScroll = false;
vendor: 7,750 bytes, lines 974-1205
974    matchHeight._beforeUpdate = null;
975    matchHeight._afterUpdate = null;
976    matchHeight._rows = _rows;
977    matchHeight._parse = _parse;
978    matchHeight._parseOptions = _parseOptions;
979
980    /*
981    *  matchHeight._apply
982    *  apply matchHeight to given elements
983    */
984
985    matchHeight._apply = function(elements, options) {
986        var opts = _parseOptions(options),
987            $elements = $(elements),
988            rows = [$elements];
989
990        // take note of scroll position
991        var scrollTop = $(window).scrollTop(),
992            htmlHeight = $('html').outerHeight(true);
993
994        // get hidden parents
995        var $hiddenParents = $elements.parents().filter(':hidden');
996
997        // cache the original inline style
998        $hiddenParents.each(function() {
999            var $that = $(this);
1000            $that.data('style-cache', $that.attr('style'));
1001        });
1002
1003        // temporarily must force hidden parents visible
1004        $hiddenParents.css('display', 'block');
1005
1006        // get rows if using byRow, otherwise assume one row
1007        if (opts.byRow && !opts.target) {
1008
1009            // must first force an arbitrary equal height so floating elements break evenly
1010            $elements.each(function() {
1011                var $that = $(this),
1012                    display = $that.css('display');
1013
1014                // temporarily force a usable display value
1015                if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') {
1016                    display = 'block';
1017                }
1018
1019                // cache the original inline style
1020                $that.data('style-cache', $that.attr('style'));
1021
1022                $that.css({
1023                    'display': display,
1024                    'padding-top': '0',
1025                    'padding-bottom': '0',
1026                    'margin-top': '0',
1027                    'margin-bottom': '0',
1028                    'border-top-width': '0',
1029                    'border-bottom-width': '0',
1030                    'height': '100px',
1031                    'overflow': 'hidden'
1032                });
1033            });
1034
1035            // get the array of rows (based on element top position)
1036            rows = _rows($elements);
1037
1038            // revert original inline styles
1039            $elements.each(function() {
1040                var $that = $(this);
1041                $that.attr('style', $that.data('style-cache') || '');
1042            });
1043        }
1044
1045        $.each(rows, function(key, row) {
1046            var $row = $(row),
1047                targetHeight = 0;
1048
1049            if (!opts.target) {
1050                // skip apply to rows with only one item
1051                if (opts.byRow && $row.length <= 1) {
1052                    $row.css(opts.property, '');
1053                    return;
1054                }
1055
1056                // iterate the row and find the max height
1057                $row.each(function(){
1058                    var $that = $(this),
1059                        display = $that.css('display');
1060
1061                    // temporarily force a usable display value
1062                    if (display !== 'inline-block' && display !== 'flex' && display !== 'inline-flex') {
1063                        display = 'block';
1064                    }
1065
1066                    // ensure we get the correct actual height (and not a previously set height value)
1067                    var css = { 'display': display };
1068                    css[opts.property] = '';
1069                    $that.css(css);
1070
1071                    // find the max height (including padding, but not margin)
1072                    if ($that.outerHeight(false) > targetHeight) {
1073                        targetHeight = $that.outerHeight(false);
1074                    }
1075
1076                    // revert display block
1077                    $that.css('display', '');
1078                });
1079            } else {
1080                // if target set, use the height of the target element
1081                targetHeight = opts.target.outerHeight(false);
1082            }
1083
1084            // iterate the row and apply the height to all elements
1085            $row.each(function(){
1086                var $that = $(this),
1087                    verticalPadding = 0;
1088
1089                // don't apply to a target
1090                if (opts.target && $that.is(opts.target)) {
1091                    return;
1092                }
1093
1094                // handle padding and border correctly (required when not using border-box)
1095                if ($that.css('box-sizing') !== 'border-box') {
1096                    verticalPadding += _parse($that.css('border-top-width')) + _parse($that.css('border-bottom-width'));
1097                    verticalPadding += _parse($that.css('padding-top')) + _parse($that.css('padding-bottom'));
1098                }
1099
1100                // set the height (accounting for padding and border)
1101                $that.css(opts.property, (targetHeight - verticalPadding) + 'px');
1102            });
1103        });
1104
1105        // revert hidden parents
1106        $hiddenParents.each(function() {
1107            var $that = $(this);
1108            $that.attr('style', $that.data('style-cache') || null);
1109        });
1110
1111        // restore scroll position if enabled
1112        if (matchHeight._maintainScroll) {
1113            $(window).scrollTop((scrollTop / htmlHeight) * $('html').outerHeight(true));
1114        }
1115
1116        return this;
1117    };
1118
1119    /*
1120    *  matchHeight._applyDataApi
1121    *  applies matchHeight to all elements with a data-match-height attribute
1122    */
1123
1124    matchHeight._applyDataApi = function() {
1125        var groups = {};
1126
1127        // generate groups by their groupId set by elements using data-match-height
1128        $('[data-match-height], [data-mh]').each(function() {
1129            var $this = $(this),
1130                groupId = $this.attr('data-mh') || $this.attr('data-match-height');
1131
1132            if (groupId in groups) {
1133                groups[groupId] = groups[groupId].add($this);
1134            } else {
1135                groups[groupId] = $this;
1136            }
1137        });
1138
1139        // apply matchHeight to each group
1140        $.each(groups, function() {
1141            this.matchHeight(true);
1142        });
1143    };
1144
1145    /*
1146    *  matchHeight._update
1147    *  updates matchHeight on all current groups with their correct options
1148    */
1149
1150    var _update = function(event) {
1151        if (matchHeight._beforeUpdate) {
1152            matchHeight._beforeUpdate(event, matchHeight._groups);
1153        }
1154
1155        $.each(matchHeight._groups, function() {
1156            matchHeight._apply(this.elements, this.options);
1157        });
1158
1159        if (matchHeight._afterUpdate) {
1160            matchHeight._afterUpdate(event, matchHeight._groups);
1161        }
1162    };
1163
1164    matchHeight._update = function(throttle, event) {
1165        // prevent update if fired from a resize event
1166        // where the viewport width hasn't actually changed
1167        // fixes an event looping bug in IE8
1168        if (event && event.type === 'resize') {
1169            var windowWidth = $(window).width();
1170            if (windowWidth === _previousResizeWidth) {
1171                return;
1172            }
1173            _previousResizeWidth = windowWidth;
1174        }
1175
1176        // throttle updates
1177        if (!throttle) {
1178            _update(event);
1179        } else if (_updateTimeout === -1) {
1180            _updateTimeout = setTimeout(function() {
1181                _update(event);
1182                _updateTimeout = -1;
1183            }, matchHeight._throttle);
1184        }
1185    };
1186	
1187
1188    /*
1189    *  bind events
1190    */
1191
1192    // apply on DOM ready event
1193    $(matchHeight._applyDataApi);
1194
1195    // update heights on load and resize events
1196    $(window).bind('load', function(event) {
1197        matchHeight._update(false, event);
1198    });
1199
1200    // throttled update heights on resize events
1201    $(window).bind('resize orientationchange', function(event) {
1202        matchHeight._update(true, event);
1203    });
1204
1205});

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.