PageSourceSearch

http://koch-auto.ru/wp-content/themes/kora/js/scripts.js?ver=1.2

js koch-auto.ru collected 2026-10-05 00:00:37 UTC 11,628 bytes, 315 lines download raw bytes

1/* ---------------------------------------------------------------------------
2 * jQuery(document).ready
3 * --------------------------------------------------------------------------- */
4jQuery(document).ready(function() {
5	
6	
7	/* ---------------------------------------------------------------------------
8     * Sticky header
9     * --------------------------------------------------------------------------- */
10	jQuery(".sticky-header #Top_area").sticky({topSpacing:0});
11	
12	
13	/* ---------------------------------------------------------------------------
14     * Content sliders
15     * --------------------------------------------------------------------------- */
16	new MfnPostsSlider();
17	new MfnOfferSlider();
18	new MfnClientsSlider();
19
20    
21    /* ---------------------------------------------------------------------------
22	 * Testimonials
23	 * --------------------------------------------------------------------------- */
24	jQuery(".testimonial ul.slider").responsiveSlides({
25		
26		auto:			true,	// Boolean: Animate automatically, true or false
27		timeout:		7000,	// Integer: Time between slide transitions, in milliseconds
28		
29		prevText:		"<i class='icon-chevron-left'></i>",
30		nextText:		"<i class='icon-chevron-right'></i>",
31		pager:			false,
32		nav:			true
33		
34	});
35    
36	
37	/* ---------------------------------------------------------------------------
38	 * Fancybox
39	 * --------------------------------------------------------------------------- */
40	jQuery("a.fancybox, .gallery-icon a, .the_content .attachment a").fancybox({
41		'overlayShow'	: false,
42		'transitionIn'	: 'elastic',
43		'transitionOut'	: 'elastic'
44	});
45		
46	jQuery("a.iframe").fancybox({
47		'transitionIn'	: 'none',
48		'transitionOut'	: 'none'
49	});
50	
51	jQuery("a.fancyboxFull").fancybox({
52		'transitionIn'	: 'elastic',
53		'transitionOut'	: 'elastic',
54		'autoScale'		: false
55	});
56
57	
58	/* ---------------------------------------------------------------------------
59	 * WP Gallery
60	 * --------------------------------------------------------------------------- */
61	jQuery(".gallery-icon a").attr("rel","gallery");
62	jQuery(".gallery-item img").css("height","auto").css("width","100%");
63		
64	
65	/* ---------------------------------------------------------------------------
66	 * Add classes first/last
67	 * --------------------------------------------------------------------------- */
68	jQuery(".Recent_comments li:last-child, .Recent_posts li:last-child, .Twitter li:last-child, #Footer .container .column:last-child, .get_in_touch li:last-child, .pricing-box .plan-inside ul li:last-child").addClass("last");
69	jQuery(".commentlist li li .comment-body:last-child, #Footer .copyrights .menu_bottom > ul > li:last-child").addClass("last");
70	jQuery(".offer-page hr:last-child").css("display", "none");
71	jQuery(".commentlist li .comment-body:last-child").addClass("lastBorder");
72	jQuery(".widget ul.menu li:last-child, .widget_links ul li:last-child, .widget_meta ul li:last-child").addClass("last");
73	jQuery(".our-offer .boxes .box:nth-child(3n)").addClass("last");
74	jQuery(".Twitter ul li:first-child, .Recent_comments li:first-child, .Recent_posts li:first-child").addClass("first");
75
76	
77	/* ---------------------------------------------------------------------------
78	 * Main menu
79	 * --------------------------------------------------------------------------- */
80	jQuery("#menu > ul").muffingroup_menu({
81		delay:			0,
82		hoverClass:		'hover',
83		arrows:			true,
84		animation:		'fade'
85	});
86	
87	
88	/* ---------------------------------------------------------------------------
89	 * Widget menu
90	 * --------------------------------------------------------------------------- */
91	jQuery(".aside_left .widget_mfn_menu ul li a").append('<i class="icon-caret-right"></i>');
92	jQuery(".aside_right .widget_mfn_menu ul li a").append('<i class="icon-caret-left"></i>');
93	
94	
95	/* ---------------------------------------------------------------------------
96	 * IE placeholder fix
97	 * --------------------------------------------------------------------------- */
98	jQuery("[placeholder]").each(function(){
99		if( jQuery(this).val() === "" && jQuery(this).attr("placeholder") !== "" ){
100			jQuery(this).val(jQuery(this).attr("placeholder"));
101			jQuery(this).focus(function(){
102				if(jQuery(this).val() === jQuery(this).attr("placeholder")) { jQuery(this).val(""); }
103			});
104			jQuery(this).blur(function(){
105				if( jQuery(this).val() === "" ) { jQuery(this).val(jQuery(this).attr("placeholder")); }
106			});
107		}
108	});
109
110	
111	/* ---------------------------------------------------------------------------
112	 * Tabs
113	 * --------------------------------------------------------------------------- */
114	jQuery(".jq-tabs").tabs();
115	
116	
117	/* ---------------------------------------------------------------------------
118	 * mfn accordion/faq
119	 * --------------------------------------------------------------------------- */
120	jQuery(".mfn-acc .question:not(:first)").children(".answer").hide();
121	jQuery(".mfn-acc .question:first").addClass("active");
122	jQuery(".mfn-acc .question > h5").append('<span class="icon"></span>');
123	
124	jQuery(".mfn-acc .question > h5").click(function() {
125		if(jQuery(this).parent().hasClass("active")) {
126			jQuery(this).parent().removeClass("active").children(".answer").slideToggle(200);
127		}
128		else
129		{
130			jQuery(".mfn-acc .question").each(function() {
131				if(jQuery(this).hasClass("active")) {
132					jQuery(this).removeClass("active").children(".answer").slideToggle(200);
133				}
134			});
135			jQuery(this).parent().addClass("active");
136			jQuery(this).next(".answer").slideToggle(200);
137		}
138	});
139	
140
141    /* ---------------------------------------------------------------------------
142	 * Ajax contact form
143	 * --------------------------------------------------------------------------- */
144    function mfn_contact_validate(){
145		var error = false;
146		jQuery('.contact_form input.required, .contact_form textarea.required').removeClass('inp_error');
147		
148		jQuery('.contact_form input.required, .contact_form textarea.required').each(function() {
149			if ( (! this.value) || ( this.value === this.defaultValue ) || ( this.value === jQuery(this).attr('placeholder') ) ) {
150				jQuery(this).addClass('inp_error');
151				error = true;
152			}
153		});
154
155		var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
156		if( ! emailReg.test(jQuery('.contact_form #Email').val()) )
157		{
158			jQuery('.contact_form #Email').addClass('inp_error');
159			error = true;
160		}
161			
162		if( error ){
163			return false;
164		}
165		return true;
166	}
167	
168	function mfn_contact_processJson(data){
169		if( data.status && data.status === 'ok' ){
170			jQuery('.contact_form .alert_success').show();
171		} else {
172			jQuery('.contact_form .alert_error').show();
173		}
174	}
175	
176	jQuery('#json_contact_form').ajaxForm({ 
177        dataType:		'json', 
178		beforeSubmit:	mfn_contact_validate,
179        success:		mfn_contact_processJson 
180    }); 
181	
182	
183	/* ---------------------------------------------------------------------------
184	 * Go to top
185	 * --------------------------------------------------------------------------- */	
186	jQuery('#back_to_top').click(function(){
187		jQuery('body,html').animate({
188			scrollTop: 0
189		}, 500);
190		return false;
191	});
192	
193	
194	/* ---------------------------------------------------------------------------
195	 * hoverdir
196	 * --------------------------------------------------------------------------- */
197	jQuery('.da-thumbs > li:not(.header_li)').each( function() { jQuery(this).hoverdir({
198		hoverDelay : 75
199	}); } );
200	
201	jQuery('.Projects_inside_wrapper .portfolio_item').each( function() { jQuery(this).hoverdir({
202		hoverDelay : 75
203	}); } );
204	
205	
206	/* ---------------------------------------------------------------------------
207	 * isotope
208	 * --------------------------------------------------------------------------- */
209	function mfnIsotope(domEl,isoWrapper){
210		var filter = domEl.attr('rel');
211		isoWrapper.isotope({ filter: filter });
212		
213		domEl.parents('ul').find('li.current-cat').removeClass('current-cat');
214		domEl.parent().addClass('current-cat');
215	}
216	
217	jQuery('.portfolio-isotope .categories a').click(function(e){
218		e.preventDefault();
219		mfnIsotope(jQuery(this),jQuery('.portfolio-isotope .Projects_inside_wrapper'));
220	});
221	
222	jQuery('#Projects .categories a').click(function(e){
223		e.preventDefault();
224		mfnIsotope(jQuery(this),jQuery('#Projects .Projects_inside_wrapper'));
225	});
226	
227});
228
229
230/* ---------------------------------------------------------------------------
231 * jQuery(window).load
232 * --------------------------------------------------------------------------- */
233jQuery(window).load(function() {
234	
235	/* ---------------------------------------------------------------------------
236	 * isotope
237	 * --------------------------------------------------------------------------- */
238	jQuery('.portfolio-isotope .Projects_inside_wrapper').isotope({
239		itemSelector: '.column',
240		layoutMode: 'fitRows'
241	});
242	jQuery('#Projects .Projects_inside_wrapper').isotope({
243		itemSelector: '.column',
244		layoutMode: 'fitRows'
245	});
246    
247});
248
249
250/* ---------------------------------------------------------------------------
251 * Sliders configuration
252 * --------------------------------------------------------------------------- */
253function MfnPostsSlider(){
254	
255	var mfn_slider_posts = window.mfn_slider_posts;
256	
257	mfn_slider_posts.wrap			= 'both';
258	mfn_slider_posts.scroll			= 1;
259	mfn_slider_posts.buttonPrevHTML	= '<a class="slider_control slider_control_prev"><i class="icon-chevron-left"></i></a>';
260	mfn_slider_posts.buttonNextHTML	= '<a class="slider_control slider_control_next"><i class="icon-chevron-right"></i></a>';
261	
262	// column 1/4 - 1/3
263	var mfn_slider_posts_1 = mfn_slider_posts;
264	mfn_slider_posts_1.visible = 1;
265	jQuery(".one-fourth > .Latest_posts ul.latest-post-slider-wrapper").jcarousel( mfn_slider_posts_1 );
266	jQuery(".one-third > .Latest_posts ul.latest-post-slider-wrapper").jcarousel( mfn_slider_posts_1 );
267
268	// column 1/2 - 2/3
269	var mfn_slider_posts_2 = mfn_slider_posts;
270	mfn_slider_posts_2.visible = 2;
271	jQuery(".one-second > .Latest_posts ul.latest-post-slider-wrapper").jcarousel( mfn_slider_posts_2 );
272	jQuery(".two-third > .Latest_posts ul.latest-post-slider-wrapper").jcarousel( mfn_slider_posts_2 );
273
274	// column 3/4 - 1/1
275	var mfn_slider_posts_3 = mfn_slider_posts;
276	mfn_slider_posts_3.visible = 3;
277	jQuery(".three-fourth > .Latest_posts ul.latest-post-slider-wrapper").jcarousel( mfn_slider_posts_3 );
278	jQuery(".one > .Latest_posts ul.latest-post-slider-wrapper").jcarousel( mfn_slider_posts_3 );
279}
280
281function MfnOfferSlider(){
282	
283	function initCallback(carousel) {
284		jQuery('.offer .slider_control_prev').bind('click', function() { carousel.prev(); return false; });
285		jQuery('.offer .slider_control_next').bind('click', function() { carousel.next(); return false; });
286	}
287	
288	var mfn_slider_offer = window.mfn_slider_offer;
289	
290	mfn_slider_offer.wrap			= 'both';
291	mfn_slider_offer.scroll			= 1;
292	mfn_slider_offer.initCallback	= initCallback;
293	mfn_slider_offer.buttonNextHTML	= null;
294	mfn_slider_offer.buttonPrevHTML	= null;
295	
296	jQuery(".offer ul.jcarousel-skin-tango").jcarousel( mfn_slider_offer );
297}
298
299function MfnClientsSlider(){
300	
301	function initCallback(carousel) {
302		jQuery('.Our_clients_slider .slider_control_prev').bind('click', function() { carousel.prev(); return false; });
303		jQuery('.Our_clients_slider .slider_control_next').bind('click', function() { carousel.next(); return false; });
304	}
305	
306	var mfn_slider_clients = window.mfn_slider_clients;
307	
308	mfn_slider_clients.wrap				= 'both';
309	mfn_slider_clients.scroll			= 1;
310	mfn_slider_clients.initCallback		= initCallback;
311	mfn_slider_clients.buttonNextHTML	= null;
312	mfn_slider_clients.buttonPrevHTML	= null;
313	
314	jQuery(".Our_clients_slider .inside > ul").jcarousel( mfn_slider_clients );
315}

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.