PageSourceSearch

https://startuphighway.com/wp-content/themes/magnis/js/custom.js?ver=5.3.2

js startuphighway.com collected 2026-09-26 00:18:29 UTC 27,648 bytes, 828 lines download raw bytes

1(function( $ ){
2
3	$.fn.magnisSort = function( options ) {
4		
5		var $this = $(this),
6			$filters = $this.find('.sorting-filters a'),
7			$toSort = $this.find('.sort-item'),
8			showAll = options['showAll'];
9			
10		if (showAll) {
11			$toSort.show();
12		} else {
13			$toSort.each(function() {
14				if ($(this).hasClass($filters.eq(0).attr('data-filter'))) {
15					$(this).show();
16				}
17			});
18		}
19		
20		$filters.click(function(e) {
21			e.preventDefault();
22			$filters.removeClass('active');
23			$(this).addClass('active');
24			var value = $(this).attr('data-filter'),
25				qty = $toSort.length;
26			$toSort.hide();
27			for (var $i = 0; $i < qty; $i++) {
28				if ($toSort.eq($i).hasClass(value)) {
29					$toSort.eq($i).show();
30				} else if (value == '*') {
31					$toSort.show();
32				}
33			}
34		});
35	};		
36	
37
38	$('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal').each(function() {
39		$(this).height($(this).width());
40	});
41	$('.latest-projects-wrapper li').each(function() {
42		var $this = $(this),
43			w = $this.width(),
44			$img = $this.find('> img').eq(0),
45			h = $img.height(),
46			temp = new Image(),
47			index = $(this).index(),
48			imgW;
49			$img.show(),
50		temp.src = $img.attr('src');
51		imgW = Math.round(temp.width * (h/temp.height));
52		$img.attr('width', imgW).css('margin-left', '-' + ($img.width() - w)/2 + 'px');
53		$('.fa-search', $(this)).parent().colorbox();
54	});
55	
56	if ($('body').width() < 768) {
57		$('.magnis-shopping-cart-details-table-wrapper').css('overflow','scroll');
58	} else {
59		$('.magnis-shopping-cart-details-table-wrapper').css('overflow','visible');
60	}
61	if ($('body').width() < 768) {
62		$('.pr-table-3-wrapper').css('overflow','scroll');
63	} else {
64		$('.pr-table-3-wrapper').css('overflow','visible');
65	}
66	$('.latest-blog-posts-2 .jcarousel-skin-tango .jcarousel-item-horizontal').css('width', ($('.latest-blog-posts-2').width()/2 - 10) + 'px');
67	$('.carousel-navi', '.latest-blog-posts-2').css('left', ($('.latest-blog-posts-2').width()/2 - 27) + 'px');
68	$('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-clip-horizontal').height($('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal').width());
69	
70	$('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-prev-horizontal, .latest-projects-wrapper .jcarousel-skin-tango .jcarousel-next-horizontal').css('top',($('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal').width() - 32)/2)
71	$('.carousel-navi', '.footer-latest-tweets').css('left', $('h2', '.footer-latest-tweets').width() + 20 + 'px');
72	$('.carousel-navi', '.testimonials-1').css('left', $('h2', '.testimonials-1').width() + 20 + 'px');
73	
74
75})( jQuery );
76
77(function( $ ){
78
79	$.fn.slCarousel = function( options ) {
80		
81		var $this = this,
82			$de = $('#debug'),
83			show = options['show'],
84			fixWidth = options['fix-width'],
85			speed = options['speed'],
86			$navi = this.find('.sl-navi'),
87			$elems = this.find('.' + options['selector']),
88			current = 0,
89			qty = $elems.length,
90			scrollW = 0;
91			
92		$elems.wrapAll('<div class="sl-carousel-wrapper"></div>');
93		$this.find('.sl-carousel-wrapper').wrap('<div class="sl-carousel-block"></div>');
94		
95		var methods = {
96				makeResize : function() {
97					if ($('body').width() < 768) {
98						var elemW = $this.find('.sl-carousel-block').width();
99						$elems.each(function() {
100							$(this).width(elemW).css('float','left');
101						});
102					} else {
103						var elemW = $elems.eq(0).width();
104						$elems.each(function() {
105							$(this).css('width','');
106						});
107						if (show == 1) {
108							elemW = $this.find('.sl-carousel-block').width();
109						}
110					}
111					if (show != 1) {
112						var fixMargin = parseInt($elems.eq(0).css('margin-left')) + parseInt($elems.eq(0).css('margin-right'));
113					} else {
114						var fixMargin = 0;
115					}
116					scrollW = elemW + fixMargin + fixWidth;
117					$this.find('.sl-carousel-wrapper').css('left', '-' + scrollW * current + 'px');
118					$this.find('.sl-carousel-block').height(methods.maxElemHeight());
119				},
120				goto : function(direction) {
121					var steps;
122					if ($('body').width() > 768) {
123						steps = qty - show - 1;
124					} else {
125						steps = qty - 2;
126					}
127					if (direction > 0) {
128						if (current <= steps) {
129							$this.find('.sl-navi a.back').removeClass('end');
130							current++;
131							$this.find('.sl-carousel-wrapper').filter(':not(:animated)').animate({
132								'left' : '-=' + scrollW
133							}, speed);
134						}
135						if (current == (steps + 1)) {
136							$this.find('.sl-navi a.forward').addClass('end');
137						}
138					} else {
139						if (current > 0) {
140							$this.find('.sl-navi a.forward').removeClass('end');
141							$this.find('.sl-carousel-wrapper').filter(':not(:animated)').animate({
142								'left' : '+=' + scrollW
143							}, speed);
144							current--;
145						}
146						if (current == 0) {
147							$this.find('.sl-navi a.back').addClass('end');
148						}
149					}
150					$de.html('current: ' + current);
151				},
152				maxElemHeight : function() {
153					var h = 0;
154					$elems.each(function() {
155						if ($(this).height() > h) {
156							h = $(this).height();
157						}
158					});
159					return h + fixWidth;
160				}
161			};
162			
163		methods.makeResize();
164
165		$navi.find('a.back').click(function(e) {
166			e.preventDefault();
167			methods.goto(-1);
168		});
169		$navi.find('a.forward').click(function(e) {
170			e.preventDefault();
171			methods.goto(+1);
172		});
173		
174		$(window).resize(function() { methods.makeResize();  });
175		
176	};	
177
178})( jQuery );
179
180(function($) {
181	"use strict";
182
183	var multipler = 1/3;
184	var projectItemsWrapperWidth = $('#portfolio-list').width();
185	if ($('body').width() < 768) {
186		multipler = 1;
187	}else if (($('body').width() > 767) && ($('body').width() <= 979)){
188		multipler = 1/3;	
189	} else {
190		if ($('#portfolio-list').hasClass('portfolio-3-columns')) {
191			multipler = 1/3;
192		}
193		if ($('#portfolio-list').hasClass('portfolio-4-columns')) {
194			multipler = 1/4;
195		}
196		if ($('#portfolio-list').hasClass('portfolio-5-columns')) {
197			multipler = 1/5;
198		}
199	}
200	$('.project-item').css('height', projectItemsWrapperWidth * multipler + 'px');
201	$('.project-item').css('width', projectItemsWrapperWidth * multipler + 'px');
202	
203	if ($('body').width() < 768) {
204		$('.buttons .fa-search').parent().colorbox({width:"80%"});
205	}else{
206		$('.buttons .fa-search').parent().colorbox();
207	}
208	
209	$('<i class="fa fa-caret-right"></i>').prependTo('.cat-item');	$('.wpb_layerslider_element').addClass('home-slider');
210	$('i').html('');
211	$('.quick_newsletter .newsletter p').addClass('col-md-3 col-sm-3');
212	$('.quick_newsletter .newsletter-submit').parent().addClass('col-md-2 col-sm-2').removeClass('col-md-3 col-sm-3');
213	
214	
215		
216	$('.sl-navi').find('a').each(function() {
217		var $this = $(this);
218		if ($this.hasClass('forward')) {
219			$this.html('<i class="fa fa-angle-right"></i>')
220		} else if ($this.hasClass('back')) {
221			$this.html('<i class="fa fa-angle-left"></i>')
222		}
223	});
224
225	$("body").fitVids();
226
227	$('.flexslider').flexslider({
228		animation: "slide",
229		autoplay: true
230	});
231	$('.magnis-product-item-single-img .flexslider').flexslider({
232		animation: "slide",
233		autoplay: true
234	});
235
236	$('#single-projects-slides').jcarousel({
237		scroll: 1,
238		visible: 1,
239		wrap: 'both'
240    });
241
242	$('.sidebar-posts').magnisSort({
243		'showAll' : 0
244	});
245
246	$('#sort-faq').magnisSort({
247		'showAll' : 1
248	});
249
250	$('#portfolio-list').magnisSort({
251		'showAll' : 1
252	});
253	
254	$('.settings-wrapper .show-settings i').click(function() {
255		$(this).parent().parent().find('.settings-block').slideToggle();
256	});
257	$('.settings-block a').click(function(e) {
258		e.preventDefault();
259		var $t = $(this);
260		if ($t.attr('data-color') != undefined) {
261			$('#site-color').attr('href', './css/color-' + $t.attr('data-color') + '.css');
262		}
263		if ($(this).attr('data-pattern') != undefined) {
264			$('.pattern-bg').css('background-image', 'url(images/patterns/' + $(this).attr('data-pattern') +'.png)');
265		}
266	});
267
268	setTimeout(function() {
269		  $('#latest-tweets').each(function() {
270			$(this).find('ul > li').addClass('tweet-item').unwrap('ul');
271			$('<i class="fa fa-twitter"></i>').prependTo('div.user');
272			$(this).show();
273		  });
274		  
275		  jQuery('#latest-tweets').jcarousel({
276			scroll: 1,
277			visible: 1,
278			wrap: 'both'
279	      });
280		}, 2000);
281
282/*	$('#layerslider').layerSlider({
283		skinsPath : './css/layerslider/skins/',
284		skin : 'borderlesslight',
285		thumbnailNavigation : 'hover',
286		hoverPrevNext : true,
287		responsiveUnder : 960,
288		sublayerContainer : 960,
289		twoWaySlideshow : true,
290		firstLayer: 1
291	});*/
292	/* carousels */
293
294	jQuery('#testimonials-2').jcarousel({
295		scroll: 1,
296		visible: 1,
297		wrap: 'both'
298    });
299	jQuery('#single-post-releated-posts').jcarousel({
300		scroll: 1,
301		visible: 3,
302		wrap: 'both'
303    });
304	jQuery('#latest-projects-items', '.latest-projects').jcarousel({
305		scroll: 1,
306		visible: 4,
307		wrap: 'both'
308    });
309	jQuery('#latest-projects-items', '.latest-projects-2').jcarousel({
310		scroll: 1,
311		visible: 5,
312		wrap: 'both'
313    });
314    jQuery('.latest-projects-3').jcarousel({
315		scroll: 1,
316		visible: 5,
317		wrap: 'both'
318    });
319    jQuery('.latest-projects-4').jcarousel({
320		scroll: 1,
321		visible: 3,
322		wrap: 'both'
323    });
324    jQuery('#testimonials-1').jcarousel({
325		scroll: 1,
326		visible: 1,
327		wrap: 'both'
328    });
329    
330    jQuery('#latest-blog-posts').jcarousel({
331		scroll: 1,
332		visible: 1,
333		wrap: 'both'
334    });
335	
336	jQuery('#latest-blog-posts2').jcarousel({
337		scroll: 1,
338		visible: 2,
339		wrap: 'both'
340    });
341	
342	jQuery('#respective-partners', '.respective-partners').jcarousel({
343		scroll: 1,
344		visible: 5,
345		wrap: 'both'
346    });
347
348    jQuery('#team-list').jcarousel({
349		scroll: 1,
350		visible: 4,
351		wrap: 'both'
352	});
353	var bw = $('body').width();
354		if (bw < 480) {
355			jQuery('#latest-projects-items', '.latest-projects').jcarousel({
356				scroll: 1,
357				visible: 1,
358				wrap: 'both'
359			});
360			jQuery('#latest-projects-items', '.latest-projects-2').jcarousel({
361				scroll: 1,
362				visible: 1,
363				wrap: 'both'
364			});
365			jQuery('#latest-projects-items', '.latest-projects-3').jcarousel({
366				scroll: 1,
367				visible: 1,
368				wrap: 'both'
369			});
370			
371		    jQuery('#respective-partners', '.respective-partners').jcarousel({
372				scroll: 1,
373				visible: 2,
374				wrap: 'both'
375		    });
376		    jQuery('#team-list').jcarousel({
377				scroll: 1,
378				visible: 1,
379				wrap: 'both'
380			});
381			jQuery('#latest-blog-posts2').jcarousel({
382				scroll: 1,
383				visible: 1,
384				wrap: 'both'
385			});
386		} else if ((bw < 740) && (bw >= 480)) {
387			jQuery('#latest-projects-items', '.latest-projects').jcarousel({
388				scroll: 1,
389				visible: 1,
390				wrap: 'both'
391			});
392			jQuery('#latest-projects-items', '.latest-projects-2').jcarousel({
393				scroll: 1,
394				visible: 1,
395				wrap: 'both'
396			});
397			jQuery('#latest-projects-items', '.latest-projects-3').jcarousel({
398				scroll: 1,
399				visible: 1,
400				wrap: 'both'
401			});
402			
403		    jQuery('#respective-partners', '.respective-partners').jcarousel({
404				scroll: 1,
405				visible: 3,
406				wrap: 'both'
407		    });
408		    jQuery('#single-post-releated-posts').jcarousel({
409				scroll: 1,
410				visible: 1,
411				wrap: 'both'
412		    });	
413		    jQuery('#team-list').jcarousel({
414				scroll: 1,
415				visible: 1,
416				wrap: 'both'
417			});	
418			jQuery('#latest-blog-posts2').jcarousel({
419				scroll: 1,
420				visible: 1,
421				wrap: 'both'
422			});
423		} else if ((bw >= 740) && (bw <= 979)) {
424			jQuery('#latest-projects-items', '.latest-projects').jcarousel({
425				scroll: 1,
426				visible: 3,
427				wrap: 'both'
428			});
429			jQuery('#latest-projects-items', '.latest-projects-2').jcarousel({
430				scroll: 1,
431				visible: 3,
432				wrap: 'both'
433			});
434			jQuery('#latest-projects-items', '.latest-projects-3').jcarousel({
435				scroll: 1,
436				visible: 3,
437				wrap: 'both'
438			});
439			jQuery('#single-post-releated-posts').jcarousel({
440				scroll: 1,
441				visible: 2,
442				wrap: 'both'
443		    });
444		    jQuery('#team-list').jcarousel({
445				scroll: 1,
446				visible: 2,
447				wrap: 'both'
448			});
449		} else if ((bw > 978) && (bw <= 1200)) {
450			jQuery('#latest-projects-items', '.latest-projects').jcarousel({
451				scroll: 1,
452				visible: 4,
453				wrap: 'both'
454			});
455			jQuery('#latest-projects-items', '.latest-projects-2').jcarousel({
456				scroll: 1,
457				visible: 5,
458				wrap: 'both'
459			});
460			jQuery('#latest-projects-items', '.latest-projects-3').jcarousel({
461				scroll: 1,
462				visible: 4,
463				wrap: 'both'
464			});
465			jQuery('.latest-projects-4').jcarousel({
466				scroll: 1,
467				visible: 3,
468				wrap: 'both'
469		    });
470		}
471		
472	/* magnis-product-item */
473	
474	$('.magnis-product-item').each(function() {
475		var $this = $(this),
476			$fig = $this.find('figure');
477		$fig.hover(function() {
478			$(this).find('.magnis-product-item-hover').stop(true, true).fadeIn().parent().addClass('hovered');
479		}, function() {
480			$(this).find('.magnis-product-item-hover').stop(true, true).fadeOut().parent().removeClass('hovered');
481		});
482		$('.magnis-product-item-hover a', $this).wrapAll('<div class="magnis-product-item-a-wrapper"></div>');
483		$('.fa-search', $(this)).parent().colorbox();
484	});
485	$('i.fa.fa-minus', '.magnis-shopping-cart').click(function() {
486		$(this).toggleClass('fa fa-shopping-cart');
487		$('.magnis-shopping-cart-entry', '.magnis-shopping-cart').slideToggle();
488	}).css('left', $('.magnis-shopping-cart h2').width() + 20);
489	$('.magnis-product-item-single-desc .price .product-qty a, .magnis-shopping-cart-details-table td .product-qty a').click(function(e) {
490		e.preventDefault();
491		var $i = $(this).find('i'),
492			t = $(this).parent().find('input').val();
493		if ($i.hasClass('fa fa-plus')) {
494			t++;
495			$(this).parent().find('input').val(t);
496		} else {
497			if (t != 1) {
498				t--;
499			}
500			$(this).parent().find('input').val(t);
501		}
502	});
503	$('.customers-reviews-list-item:last-child').css('margin-bottom','0px');
504	$('form.magnis-product-item-review p input, form.magnis-product-item-review p textarea').bind('focus', function() {
505		$(this).addClass('focused');
506	});
507	$('form.magnis-product-item-review p input, form.magnis-product-item-review p textarea').bind('blur', function() {
508		$(this).removeClass('focused');
509	});
510	$('.magnis-shopping-cart-details-table').wrap('<div class="magnis-shopping-cart-details-table-wrapper"></div>');
511	$('.magnis-shopping-cart-details-table tbody tr').hover(
512		function() {
513			$(this).find('> td').css('background-color','#eee');
514		}, function() {
515			$(this).find('> td').css('background-color','#fff');
516	});
517	if ($('body').width() < 768) {
518		$('.magnis-shopping-cart-details-table-wrapper').css('overflow','scroll');
519	} else {
520		$('.magnis-shopping-cart-details-table-wrapper').css('overflow','visible');
521	}
522	$('.magnis-checkout-block #create-account').click(function() {
523		if ($(this).is(':checked')) {
524			$('.magnis-checkout-block .create-account').slideDown();
525		} else {
526			$('.magnis-checkout-block .create-account').slideUp();
527		}
528	});
529	if ($('.magnis-checkout-block #create-account').is(':checked')) {
530			$('.magnis-checkout-block .create-account').show();
531	}
532	$('.magnis-checkout-block #same-address').click(function() {
533		if ($(this).is(':checked')) {
534			$('.magnis-checkout-block .create-account').slideUp();
535		} else {
536			$('.magnis-checkout-block .create-account').slideDown();
537		}
538	});
539	if ($('.magnis-checkout-block #same-address').is(':checked')) {
540			$('.magnis-checkout-block .create-account').hide();
541	}
542	$('.magin-payment-option p input[type=radio]').each(function() {
543		if ($(this).is(':checked')) {
544			$(this).parent().parent().parent().find('p.desc').show();
545		}
546	}).on('click', function() {
547		$('.magin-payment-option p.desc').slideUp();
548		$('.magin-payment-option p label').css('color','#777');
549		if ($(this).is(':checked')) {
550			$(this).parent().css('color', '#333').parent().parent().find('p.desc').slideDown();
551		}
552	});
553	
554	/* 404 search */
555	
556	$('.magnis-404 #magnis-404-search input').bind('focus', function() {
557		$('.magnis-404 #magnis-404-search').addClass('focused');
558	});
559	$('.magnis-404 #magnis-404-search input').bind('blur', function() {
560		$('.magnis-404 #magnis-404-search').removeClass('focused');
561	});
562	
563	/* main-content-soon */
564	
565	$('.main-content-soon').wrapInner('<div class="main-content-soon-color"></div>');
566
567	/* home-3-features-item */
568	
569	$('.home-3-features-item, .feature').hover(function() {
570		$(this).find('i').addClass('hover');
571	},function () {
572		$(this).find('i').removeClass('hover');
573	});
574	
575	/* magnis-pagination */
576	
577	$('.magnis-pagination').find('a').addClass('button-border');
578	$('.tagcloud').find('a').addClass('button-border button-small');
579	
580	$('.single-project-details:last-child').css('margin-bottom','20px');
581	
582	/* nav bars */
583
584	$('nav.site-desktop-menu > ul li').hover(function() {
585		$(this).find('> ul').stop(true, true).slideDown(200);
586	}, function() {
587		$(this).find('> ul').stop(true, true).slideUp(200);
588	});
589	
590	$('nav.site-mobile-menu > i').click(function() { $(this).parent().find('> ul').slideToggle(); } );
591	$('nav.site-mobile-menu > ul li').each(function() {
592		if ($(this).find('> ul').length != 0) {
593			$('<i class="fa fa-plus"></i>').prependTo($(this));
594		}
595	});
596	$('nav.site-mobile-menu > ul li i').click(function() {
597		$(this).toggleClass('fa-minus').parent().find('> ul').slideToggle();
598	});
599	$('nav.site-mobile-menu > ul li a, nav.site-desktop-menu > ul li a').hover(function() {
600		$(this).parent().addClass('hovered');
601	}, function() {
602		$(this).parent().removeClass('hovered');
603	});
604	
605	/* a.button */
606
607	$('.button, .quick_newsletter button.btn, .add-comment-form p button').hover(function() {
608		$('<span></span>').appendTo($(this));
609	},function() {
610		$(this).find('span').remove();
611	});
612	
613	$('.feature:last-child').css('margin-bottom','0px');
614	
615	$('.jcarousel-item-undefined, .jcarousel-item-NaN', '.latest-projects-wrapper, .latest-blog-posts').detach().remove();
616	
617	/* testimonials-1 */
618	
619	$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.testimonials-1').wrapAll('<div class="carousel-navi"></div>');
620	$('<i class="fa fa-angle-left"></i>').appendTo($('.jcarousel-prev-horizontal', '.testimonials-1'));
621	$('<i class="fa fa-angle-right"></i>').appendTo($('.jcarousel-next-horizontal', '.testimonials-1'));
622	$('.carousel-navi', '.testimonials-1').css('left', $('h2', '.testimonials-1').width() + 20 + 'px');
623	$('<i class="fa fa-quote-left"></i>').prependTo('.testimonials-1 .jcarousel-skin-tango .jcarousel-item-horizontal p');
624
625	$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.team-list').wrapAll('<div class="carousel-navi"></div>');
626	$('<i class="fa fa-angle-left"></i>').appendTo($('.jcarousel-prev-horizontal', '.team-list'));
627	$('<i class="fa fa-angle-right"></i>').appendTo($('.jcarousel-next-horizontal', '.team-list'));
628	$('.carousel-navi', '.team-list').css('left', $('h2', '.team-list').width() + 35 + 'px');
629	
630	/* testimonials-2 */
631	
632	$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.testimonials-2').wrapAll('<div class="carousel-navi"></div>');
633	$('<i class="fa fa-angle-left"></i>').appendTo($('.jcarousel-prev-horizontal', '.testimonials-2'));
634	$('<i class="fa fa-angle-right"></i>').appendTo($('.jcarousel-next-horizontal', '.testimonials-2'));
635	
636	/* project-details */
637	
638	$('<i class="fa fa-tag"></i>').prependTo('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal p.project-tags');
639	$('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal, .project-item').hover(function() {
640		$(this).find('.project-details').stop(true, true).fadeIn().find('.project-title').stop(true, true).animate({'top':20}).end().find('.project-tags').stop(true, true).animate({'bottom': 20});
641	}, function() {
642		$(this).find('.project-details').stop(true, true).fadeOut().find('.project-title').stop(true, true).animate({'top':-20}).end().find('.project-tags').stop(true, true).animate({'bottom': -20});
643	});
644	
645	/* footer-latest-tweets */
646	
647	$('<i class="fa fa-twitter"></i>').prependTo($('.footer-latest-tweets .jcarousel-skin-tango .jcarousel-item-horizontal p.username'));
648	$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.footer-latest-tweets').wrapAll('<div class="carousel-navi"></div>');
649	$('.carousel-navi', '.footer-latest-tweets').css('left', $('h2', '.footer-latest-tweets').width() + 20 + 'px');
650	$('<i class="fa fa-angle-left"></i>').appendTo($('.jcarousel-prev-horizontal', '.footer-latest-tweets'));
651	$('<i class="fa fa-angle-right"></i>').appendTo($('.jcarousel-next-horizontal', '.footer-latest-tweets'));
652	
653	/* latest-blog-posts */
654	
655	$('<i class="fa fa-double-angle-right"></i>').prependTo($('.latest-blog-posts .jcarousel-skin-tango .jcarousel-item-horizontal .latest-blog-post-details small span.read'));
656	$('<i class="fa fa-tag"></i>').prependTo($('.latest-blog-posts .jcarousel-skin-tango .jcarousel-item-horizontal .latest-blog-post-details small span.tags'));
657	$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.latest-blog-posts').wrapAll('<div class="carousel-navi"></div>');
658	$('.carousel-navi', '.latest-blog-posts').css('left', $('h2', '.latest-blog-posts').width() + 20 + 'px');
659	$('<i class="fa fa-angle-left"></i>').appendTo($('.jcarousel-prev-horizontal', '.latest-blog-posts'));
660	$('<i class="fa fa-angle-right"></i>').appendTo($('.jcarousel-next-horizontal', '.latest-blog-posts'));
661	
662	/* respective-partners */
663	
664	$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.respective-partners').wrapAll('<div class="carousel-navi"></div>');
665	$('<i class="fa fa-angle-left"></i>').appendTo($('.jcarousel-prev-horizontal', '.respective-partners'));
666	$('<i class="fa fa-angle-right"></i>').appendTo($('.jcarousel-next-horizontal', '.respective-partners'));
667	$('.carousel-navi', '.respective-partners').css('margin-left', '-32px');
668	$('.respective-partners .jcarousel-skin-tango .jcarousel-item-horizontal').find('img').fadeTo(0, 0.4).hover(function() {
669		$(this).fadeTo(0, 1);
670	}, function() {
671		$(this).fadeTo(0, 0.4);
672	});
673	
674	/* related posts */
675
676	$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.single-post-releated-posts').wrapAll('<div class="carousel-navi"></div>');
677	$('<i class="fa fa-angle-left"></i>').appendTo($('.jcarousel-prev-horizontal', '.single-post-releated-posts'));
678	$('<i class="fa fa-angle-right"></i>').appendTo($('.jcarousel-next-horizontal', '.single-post-releated-posts'));
679	$('.carousel-navi', '.single-post-releated-posts').css('left', $('h2', '.single-post-releated-posts').width() + 20 + 'px');
680
681	/* to the top */
682
683	$(window).scroll(function () {
684		if ($(this).scrollTop() > 40) {
685			$('#to-the-top').fadeIn();
686		} else {
687			$('#to-the-top').fadeOut();
688		}
689	});
690	$('#to-the-top').click(function() { $('body,html').animate({scrollTop: 0}, 1000); });
691	
692	/* latest-blog-posts-2 */
693	
694	//$('.latest-blog-posts-2 .jcarousel-skin-tango .jcarousel-item-horizontal').css('width', ($('.latest-blog-posts-2').width()/2 - 10) + 'px');
695	$('.carousel-navi', '.latest-blog-posts-2').css('left', ($('.latest-blog-posts-2').width()/2 - 27) + 'px');
696
697	/* magnis-toggle */
698	
699	$('section', '.magnis-toggle').click(function() {
700		if (!$(this).hasClass('active')) {
701			$('section', '.magnis-toggle').removeClass('active').find('p').slide
701Up();
702			$(this).addClass('active').find('p').slideDown();
703		} else {
704			$(this).removeClass('active').find('p').slideUp();
705		}
706	});
707	
708	/* magnis skills */
709	
710	$('section', '.magnis-skills').each(function() {
711		var $this = $(this);
712		var val = $this.find('.skill-value').attr('data-skill-value');
713		$('<div class="skill-value-chart"></div>').css('width', val + '%').appendTo($this.find('.skill-value'));
714		$('<p>' + val + '%</p>').appendTo($this.find('.skill-value').find('.skill-value-chart'));
715	});
716	
717	/* magnis-tabs */
718	
719	$('section', '.magnis-tabs').eq(0).show();
720	$('header p', '.magnis-tabs').each(function() {
721		$('<span></span>').appendTo($(this));
722	}).eq(0).addClass('active').end().click(function() {
723		$('header p', '.magnis-tabs').removeClass('active');
724		$(this).addClass('active');
725		$('section', '.magnis-tabs').hide().eq($(this).index()).slideDown();
726	});
727	
728	/* price tables */
729	
730	$('.pr-table-3').find('thead tr th:first-child, tbody tr td:first-child').addClass('options');
731	$('.pr-table-3').wrap('<div class="pr-table-3-wrapper"></div>');
732	$('.pr-table-3 tbody tr').hover(
733		function() {
734			$(this).find('> td:not(.options)').css('background-color','#eee');
735			$(this).find('> td.options').css('background-color','#444');
736		}, function() {
737			$(this).find('> td:not(.options)').css('background-color','#fff');
738			$(this).find('> td.options').css('background-color','#333');
739	});
740	if ($('body').width() < 768) {
741		$('.pr-table-3-wrapper').css('overflow','scroll');
742	} else {
743		$('.pr-table-3-wrapper').css('overflow','visible');
744	}
745	
746	/* sidebar categories */
747	
748	$('<i class="fa fa-caret-right"></i>').prependTo('.sidebar-categories ul li');
749	
750	/* sidebar posts */
751	
752	$('.sidebar-posts-item').each(function() {
753		var $this = $(this),
754			h = $this.find('figure').height(),
755			img = new Image();
756
757		img.src = $this.find('figure img').attr('src');
758		var w = Math.round(img.width * (h/img.height));
759		//$this.find('figure img').attr('width', w).css('margin-left', '-' + w/2 + 'px');
760	});
761	
762	/* projects */
763	
764	$('.latest-projects .latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal').each(function() {
765		$(this).height($(this).width());
766	});
767	$('.latest-projects-wrapper li', '.latest-projects').each(function() {
768		var $this = $(this),
769			w = $this.width(),
770			$img = $this.find('> img').eq(0),
771			h = $img.height(),
772			temp = new Image(),
773			index = $(this).index(),
774			imgW;
775			$img.show();
776			
777		temp.src = $img.attr('src');
778		imgW = Math.round(temp.width * (h/temp.height));
779		$img.attr('width', imgW).css('margin-left', '-' + ($img.width() - w)/2 + 'px');
780		$('.fa-search', $(this)).parent().colorbox();
781	});
782	
783	/* sidebar search */
784	
785	$('.sidebar-search').find('input[type=text]').bind('focus', function() {
786		$(this).parent().addClass('sidebar-search-active');
787	});
788	$('.sidebar-search').find('input[type=text]').bind('blur', function() {
789		$(this).parent().removeClass('sidebar-search-active');
790	});
791	
792	/* header search */
793	
794	$('.header-search').find('input[type=text]').bind('focus', function() {
795		$(this).parent().parent().addClass('header-search-focused');
796	});
797	$('.header-search').find('input[type=text]').bind('blur', function() {
798		$(this).parent().parent().removeClass('header-search-focused');
799	});
800	
801	$('.magnis-shipping, .magnis-promo').find('input[type=text], input[type=email], textarea, select').bind('focus', function() {
802		$(this).addClass('focused');
803	});
804	$('.magnis-shipping, .magnis-promo').find('input[type=text], input[type=email], textarea, select').bind('blur', function() {
805		$(this).removeClass('focused');
806	});
807	
808	$('.magnis-checkout-block').find('input[type=text], input[type=email], input[type=password], textarea, select').bind('focus', function() {
809		$(this).addClass('focused');
810	});
811	$('.magnis-checkout-block').find('input[type=text], input[type=email], input[type=password], textarea, select').bind('blur', function() {
812		$(this).removeClass('focused');
813	});
814	
815
816	if ($('body').width() >= 767){
817		$('.latest-projects-intro').height($('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal').width()-40);
818		
819	$('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-clip-horizontal').height($('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal').width());
820	$('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-prev-horizontal, .latest-projects-wrapper .jcarousel-skin-tango .jcarousel-next-horizontal').css('top',($('.latest-projects-wrapper .jcarousel-skin-tango .jcarousel-item-horizontal').width() - 32)/2)
821	}
822
823	jQuery(document).ready(function() {
824		$('.jcarousel-prev-horizontal, .jcarousel-next-horizontal', '.single-project-slides').css('top', ($('.single-project-slides .jcarousel-skin-tango .jcarousel-item').height() - 32) / 2 + 'px');
825	});
826	
827})(jQuery);
828

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.