PageSourceSearch

https://vegeshark.com/wp-content/themes/eleos/js/custom.js?ver=20160404

js vegeshark.com collected 2026-10-09 01:55:50 UTC 7,482 bytes, 340 lines download raw bytes

1(function($) { "use strict";
2	$(".post").fitVids();
3	// Add class for columns : 10, 11, 12 skeleton.
4  $('.row').find('div').each(function(i, ojb) {
5        if ( $(this).hasClass('one columns2') ) {
6            $(this).removeClass('one columns2').addClass('twelve columns');
7        }
8
9        if ( $(this).hasClass('one columns1') ) {
10            $(this).removeClass('one columns1').addClass('eleven columns');
11        }
12
13        if ( $(this).hasClass('one columns0') ) {
14            $(this).removeClass('one columns0').addClass('ten columns');
15        }
16    });
17	//Home text fade on scroll	
18	
19   $(window).scroll(function () { 
20        var $Fade = $('.hero-text');
21        //Get scroll position of window 
22        var windowScroll = $(this).scrollTop();
23        //Slow scroll and fade it out 
24        $Fade.css({
25            'margin-top': -(windowScroll / 0) + "px",
26            'opacity': 1 - (windowScroll / 400)
27        });
28    });	
29	
30	//Navigation	
31
32	$('ul.slimmenu').on('click',function(){
33			var width = $(window).width(); 
34			if ((width <= 1200)){ 
35			$(this).slideToggle(); 
36		}	
37	});				
38	$('ul.slimmenu').slimmenu(
39			{
40			resizeWidth: '1200',
41			collapserTitle: '',
42			easingEffect:'easeInOutQuint',
43			animSpeed:'medium',
44			indentChildren: true,
45			childrenIndenter: '&raquo;'
46	});		
47
48	//Scroll effect	
49      window.scrollReveal = new scrollReveal();	
50
51
52	/* Scroll Too */
53	$(window).load(function(){"use strict";
54		/* Page Scroll to id fn call */
55		$("ul.slimmenu li a,a[href='#top'],a[data-gal='m_PageScroll2id']").mPageScroll2id({
56			highlightSelector:"ul.slimmenu li a",
57			offset: 78,
58			scrollSpeed:800,
59			scrollEasing: "easeInOutCubic"
60		});						
61	});	
62
63	
64	$(document).ready(function() {
65	//Scroll back to top
66		var offset = 450;
67		var duration = 500;
68		jQuery(window).scroll(function() {
69			if (jQuery(this).scrollTop() > offset) {
70				jQuery('.scroll-to-top').fadeIn(duration);
71			} else {
72				jQuery('.scroll-to-top').fadeOut(duration);
73			}
74		});
75				
76		jQuery('.scroll-to-top').click(function(event) {
77			event.preventDefault();
78			jQuery('html, body').animate({scrollTop: 0}, duration);
79			return false;
80		})
81
82	
83		/* Top Carousel */
84		
85		$("#owl-top").owlCarousel({
86			navigation: true,
87			pagination : false,
88			transitionStyle : "fade",
89			slideSpeed : 500,
90			paginationSpeed : 500,
91			singleItem:true,
92			autoPlay: 7000
93		});
94	 
95	 
96		/* Separate Carousels */
97	 
98		$("#owl-sep-1").owlCarousel({
99			navigation: true,
100			pagination : false,
101			transitionStyle : "fade",
102			slideSpeed : 500,
103			paginationSpeed : 500,
104			singleItem:true,
105			autoPlay: 7000
106		});
107      
108		$("#owl-sep-1a").owlCarousel({
109			navigation: true,
110			pagination : false,
111			transitionStyle : "fade",
112			slideSpeed : 500,
113			paginationSpeed : 500,
114			singleItem:true,
115			autoPlay: 7000
116		});
117		
118		$("#owl-sep-2").owlCarousel({
119			navigation: true,
120			pagination : false,
121			transitionStyle : "fade",
122			slideSpeed : 500,
123			paginationSpeed : 500,
124			singleItem:true,
125			autoPlay: 7000
126		});
127		
128		$("#owl-post").owlCarousel({
129			navigation: true,
130			pagination : false,
131			slideSpeed : 500,
132			paginationSpeed : 500,
133			singleItem:true,
134			autoPlay: 3000
135		});
136	 
137	 
138		/* Logos Carousel */
139	 
140		$("#owl-logo").owlCarousel({
141			navigation: false,
142			pagination : false,
143			transitionStyle : "fade",
144			slideSpeed : 500,
145			paginationSpeed : 500,
146			items : 6,
147			itemsDesktop      : [1199,4],
148			itemsDesktopSmall     : [979,3],
149			itemsTablet       : [768,2],
150			itemsMobile       : [479,2],
151			autoPlay: 4000
152		});
153		
154		//Shop Slider
155		
156		$("#owl-shop").owlCarousel({
157			navigation: true,
158			pagination : false,
159			slideSpeed : 500,
160			paginationSpeed : 500,
161			singleItem:true,
162			autoPlay: 7000
163		});	
164
165		$("#owl-shop-items").owlCarousel({
166			navigation: true,
167			pagination : false,
168			transitionStyle : "fade",
169			slideSpeed : 500,
170			paginationSpeed : 500,
171			items : 3,
172			itemsDesktop      : [1199,3],
173			itemsDesktopSmall     : [979,2],
174			itemsTablet       : [768,2],
175			itemsMobile       : [479,1]
176		});
177	
178	//Colorbox single project pop-up
179	
180	$(".group1").colorbox({rel:'group1', maxWidth:'95%', maxHeight:'95%'});
181	$(".youtube").colorbox({iframe:true, innerWidth:940, innerHeight:450});
182	//$(".vimeo").colorbox({iframe:true, innerWidth:940, innerHeight:450});
183			
184			
185	//About Carousel
186	 
187	  var sync1 = $("#sync1");
188	  var sync2 = $("#sync2");
189	 
190	  sync1.owlCarousel({
191		singleItem : true,
192		transitionStyle : "fade",
193		autoHeight : true,
194		slideSpeed : 1500,
195		navigation: true,
196		pagination:false,
197		afterAction : syncPosition,
198		responsiveRefreshRate : 200
199	  });
200
201	  
202	  sync2.owlCarousel({
203		items : 3,
204		itemsDesktop      : [1199,3],
205		itemsDesktopSmall     : [979,3],
206		itemsTablet       : [768,2],
207		itemsMobile       : [479,2],
208		pagination:false,
209		responsiveRefreshRate : 100,
210		afterInit : function(el){
211		  el.find(".owl-item").eq(0).addClass("synced");
212		}
213	  });
214	 
215	  function syncPosition(el){
216		var current = this.currentItem;
217		$("#sync2")
218		  .find(".owl-item")
219		  .removeClass("synced")
220		  .eq(current)
221		  .addClass("synced")
222		if($("#sync2").data("owlCarousel") !== undefined){
223		  center(current)
224		}
225	  }
226	 
227	  $("#sync2").on("click", ".owl-item", function(e){
228		e.preventDefault();
229		var number = $(this).data("owlItem");
230		sync1.trigger("owl.goTo",number);
231	  });
232	 
233	  function center(number){
234		var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
235		var num = number;
236		var found = false;
237		for(var i in sync2visible){
238		  if(num === sync2visible[i]){
239			var found = true;
240		  }
241		}
242	 
243		if(found===false){
244		  if(num>sync2visible[sync2visible.length-1]){
245			sync2.trigger("owl.goTo", num - sync2visible.length+2)
246		  }else{
247			if(num - 1 === -1){
248			  num = 0;
249			}
250			sync2.trigger("owl.goTo", num);
251		  }
252		} else if(num === sync2visible[sync2visible.length-1]){
253		  sync2.trigger("owl.goTo", sync2visible[1])
254		} else if(num === sync2visible[0]){
255		  sync2.trigger("owl.goTo", num-1)
256		}
257		
258	  }
259	 
260	});	
261
262	//Home fit screen			
263
264	$(function(){"use strict";
265
266		$('#home, #home-sec').css({'height':($(window).height())+'px'});
267
268		$(window).resize(function(){
269
270		$('#home, #home-sec').css({'height':($(window).height())+'px'});
271
272		});
273
274	});	
275
276	//Parallax
277		
278	$('.parallax-home').parallax("50%", 0.4);
279
280	
281
282	
283	$('.vimeo a,.youtube a').click(function (e) {
284		e.preventDefault();
285		var videoLink = $(this).attr('href');
286		var classeV = $(this).parent();
287		var PlaceV = $(this).parent();
288		if ($(this).parent().hasClass('youtube')) {
289			$(this).parent().wrapAll('<div class="video-wrapper">');
290			$(PlaceV).html('<iframe frameborder="0" height="333" src="' + videoLink + '?autoplay=1&showinfo=0" title="YouTube video player" width="547"></iframe>');
291		} else {
292			$(this).parent().wrapAll('<div class="video-wrapper">');
293			$(PlaceV).html('<iframe src="' + videoLink + '?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1&amp;color=ffffff" width="500" height="281" frameborder="0"></iframe>');
294		}
295	});
296	
297	//Facts Counter 
298	
299	$('.counter-jquery-start').counterUp({
300        delay: 100,
301        time: 3000
302	});
303
304
305	
306  })(jQuery); 
307 
308 
309 
310 
311 
312 
313 
314 
315 
316 
317 
318 
319 
320 
321 
322 
323 
324 
325 
326 
327 
328 
329 
330 
331 
332 
333 
334 
335
336
337
338
339
340	

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.