PageSourceSearch

https://skynet.org.in/js/theme.js

js skynet.org.in collected 2026-10-08 17:30:00 UTC 7,406 bytes, 316 lines download raw bytes

1(function($) {
2    "use strict";	
3    
4	/*Bootstrap Multilevel Dropdown*/
5    $('.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
6        event.preventDefault(); 
7        event.stopPropagation(); 
8        $(this).parent().siblings().removeClass('open');
9        $(this).parent().toggleClass('open');
10    });
11	
12	$('[data-toggle="tooltip"]').tooltip();
13	
14	/*--------------------------------------------*/
15	/*-------------------Google Map---------------*/
16	/*--------------------------------------------*/
17
18	var $lat = $('.google-map').data('lat');
19	var $lon = $('.google-map').data('lon');
20	var $zoom = $('.google-map').data('zoom');
21	var $marker = $('.google-map').data('marker');
22	
23	if ( $('.google-map').length ){
24
25		var url = GMaps.staticMapURL({
26			size: [270, 130],
27			lat: $lat,
28			lng: $lon,
29			markers: [
30				{lat: $lat, lng: $lon, icon: $marker}
31			]
32		});
33
34		$('<img>').attr('src', url).appendTo('#foot-map')
35	}
36	
37	if ( $('.contact-google-map').length ){	
38		
39		var map = new GMaps({
40			el: '.contact-google-map',
41			lat: $lat,
42			lng: $lon,
43			scrollwheel: false,
44			scaleControl: true,
45			streetViewControl: false,
46			panControl: true,
47			disableDoubleClickZoom: true,
48			mapTypeControl: false,
49			zoom: $zoom
50		});
51
52		map.addMarker({
53			lat: $lat,
54			lng: $lon,
55			icon: $marker
56		})
57	}
58	
59    
60    function filterableGallery(){
61        if ( $('.isotope-gallery').length ){
62            $('.isotope-gallery').imagesLoaded( function() {
63                
64                $(".isotope-gallery").isotope({
65                    itemSelector: ".gallery-item",
66                    layoutMode: 'masonry',
67                    masonry: {
68                        columnWidth: '.grid-sizer'
69                    }
70                });
71
72                // Add isotope click function
73                $(".gallery-filter li").on('click',function(){
74                    $(".gallery-filter li").removeClass("active");
75                    $(this).addClass("active");
76
77                    var selector = $(this).attr("data-filter");
78                    $(".filterable-gallery").isotope({
79                        filter: selector
80                    })
81                })
82                
83            })
84        }
85    }    
86    filterableGallery();
87    
88    /*Counter*/
89	if ( $('.counter').length ){
90		$('.counter').counterUp()
91	}
92	
93	/*CountDown*/
94	if ( $('#coming-soon-countdown').length ){
95		 $('#coming-soon-countdown').countdown('2017/7/05', function(event) { 
96			 $(this).html(event.strftime(
97				 '<div class="block days"><span class="number">%-D</span><br><span class="string">%!D:Day,Days;</span></div>'+
98				 '<div class="block hours"><span class="number">%H</span><br><span class="string">%!H:Hour,Hours;</span></div>'+
99				 '<div class="block minutes"><span class="number">%M</span><br><span class="string">%!M:Minute,Minutes;</span></div>'+
100				 '<div class="block seconds"><span class="number">%S</span><br><span class="string">%!S:Second,Seconds;</span></div>'
101			))
102		})
103	}
104	
105	/*Time and Date Droper*/
106	if ( $('.timedroper').length ){
107		$('.timedroper').timeDropper();
108	}
109	if ( $('.datedroper').length ){
110		$('.datedroper').dateDropper();
111	}
112	
113	function nextPrevControl(){
114		if ( $('.popular-fleets-tabs').length ){
115			
116			$('.tab-switcher >li:last-child').on('click', function () {
117				moveTab("Next")
118			});
119			$('.tab-switcher >li:first-child').on('click', function () {
120				moveTab("Previous")
121			});
122
123
124			function moveTab(nextOrPrev) {
125				var currentTab = "";
126				$('.popular-fleets-tabs li').each(function () {
127					if ($(this).hasClass('active')) {
128						currentTab = $(this)
129					}
130				});
131
132				if (nextOrPrev == "Next" && currentTab.next().length) {
133					currentTab.removeClass('active');
134					currentTab.next().addClass('active')
135				} else if (currentTab.prev().length) {
136					currentTab.removeClass('active');
137					currentTab.prev().addClass('active')
138				}
139			}
140		}
141	}
142	nextPrevControl();
143	
144	/*Testimonial Carousel*/
145	if ( $('.testimonial-carousel').length ){
146		$('.testimonial-carousel').owlCarousel({
147			loop: true,
148			margin: 0,
149			dots: true,
150			responsive: {
151				0: {
152					items: 1
153				},
154				992: {
155					items: 2
156				}
157			}
158		})
159	}
160	
161	/*OneWay Carousel*/
162	if ( $('.oneway-rental-carousel').length ){
163		$('.oneway-rental-carousel').each(function(){
164			$('.oneway-rental-carousel').owlCarousel({
165				loop: true,
166				margin: 40,
167				dots: true,
168				autoplay: true,
169				responsive: {
170					0: {
171						items: 1
172					},
173					992: {
174						items: 2
175					},
176					1200: {
177						items: 3
178					}
179				}
180			})
181		})
182	}
183	
184	/*OneWay Carousel*/
185	if ( $('.may-you-like-carousel').length ){
186		$('.may-you-like-carousel').each(function(){
187			$('.may-you-like-carousel').owlCarousel({
188				loop: true,
189				margin: 0,
190				dots: false,
191				nav: true,
192				navText: ['<i class="ion-chevron-left"></i>','<i class="ion-chevron-right"></i>'],
193				navContainer: '.may-you-like-nav',
194				autoplay: true,
195				responsive: {
196					0: {
197						items: 1
198					},
199					992: {
200						items: 2
201					},
202					1200: {
203						items: 3
204					}
205				}
206			})
207		})
208	}
209	
210	/*Footer Height*/
211	if ( $(window).width() < 992 && $(window).width() > 767 ){
212		var maxHeight = 0;
213
214		$(".footer-widget").each(function(){
215		   if ($(this).height() > maxHeight) { maxHeight = $(this).height(); }
216		});
217
218		$(".footer-widget").height(maxHeight);
219	}
220	
221	/*Post Carousel*/
222	if ( $('.post-carousel').length ){
223		$('.post-carousel').each(function(){
224			$('.post-carousel').owlCarousel({
225				loop: false,
226				margin: 0,
227				dots: true,
228				items: 1,
229				autoplay: 1
230			})
231		})
232	}
233	
234	/*Banner Carousel*/
235	if ( $('.banner-carousel').length ){
236		$('.banner-carousel').each(function(){
237			$('.banner-carousel').owlCarousel({
238				loop: false,
239				margin: 0,
240				dots: false,
241				nav: true,
242				navText: ['<i class="ion-android-arrow-dropleft"></i>','<i class="ion-android-arrow-dropright"></i>'],
243				items: 1,
244				autoplay: 1
245			})
246		})
247	}
248	
249	/*Category Nav*/
250	if ( $('.category-dropdown').length ){
251		
252		$('.category-dropdown li.dropdown a').removeClass('active');
253		$('.category-dropdown li.dropdown a + ul').slideUp();
254		
255		$('.category-dropdown li.dropdown a').on('click', function(e){
256			$('.category-dropdown li.dropdown a').removeClass('active');
257			$('.category-dropdown li.dropdown a + ul').slideUp();
258			
259			$(this).addClass('active');
260			$(this).find('+ ul').slideDown();
261			
262			return false
263		})
264	}
265	
266	if ( $('.other-images').length ){
267		
268		var swiper = new Swiper('.other-images', {
269			scrollbar: '.swiper-scrollbar',
270			scrollbarHide: false,
271			slidesPerView: 'auto',
272			centeredSlides: true,
273			spaceBetween: 5,
274			grabCursor: true
275		});
276		
277		
278		$('.other-images').magnificPopup({
279			delegate: 'a',
280			type: 'image',
281			closeOnContentClick: false,
282			closeBtnInside: false,
283			mainClass: 'mfp-with-zoom mfp-img-mobile',
284			image: {
285				verticalFit: true,
286				titleSrc: function(item) {
287//					return item.el.attr('title') + ' &middot; <a class="image-source-link" href="'+item.el.attr('data-source')+'" target="_blank">image source</a>';
288				}
289			},
290			gallery: {
291				enabled: true
292			},
293			zoom: {
294				enabled: true,
295				duration: 300, // don't foget to change the duration also in CSS
296				opener: function(element) {
297					return element.find('img');
298				}
299			}
300
301		})
302	}
303     
304    $(document).ready(function(){
305        
306        
307    });
308    
309    $(window).load(function(){
310        
311        
312        
313        
314    })
315    
316})(jQuery)

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.