PageSourceSearch

https://www.cyclinginindia.com/js/front1.js

js cyclinginindia.com collected 2026-10-06 11:03:12 UTC 3,873 bytes, 353 lines download raw bytes

1jQuery(document).ready(function(){
2
3								
4
5								
6
7	$('#mob-menu').mmenu();
8
9								
10
11
12
13    //Topnav Slide Dropdown JS
14
15    $('.nav li, .nav li').on({
16
17        mouseenter: function() {
18
19            $(this).children('ul').stop(true, true).slideDown(400);
20
21        },
22
23        mouseleave: function() {
24
25            $(this).children('ul').slideUp(100);
26
27        }
28
29    });
30
31    
32
33    
34
35    // toTop link setup
36
37        "use strict";
38
39        showToTop();
40
41        jQuery(window).scroll(showToTop);
42
43        jQuery('#toTop').click(function(e) {
44
45            "use strict";
46
47            jQuery('body,html').animate({scrollTop: 0}, 800);
48
49            e.preventDefault();
50
51            return false;
52
53        });
54
55
56
57        // Scroll Up JS
58
59        function showToTop() {
60
61            "use strict";
62
63            var s = jQuery(this).scrollTop();
64
65            if (s >= 110) {
66
67                jQuery('#toTop').show();
68
69            } else {
70
71                jQuery('#toTop').hide();
72
73            }
74
75        }
76
77                
78
79                
80
81		/*Homepage Testimonial*/
82
83	  $('.testimonial_wrapper .owl-carousel').owlCarousel({
84
85	    loop:true,
86
87	    margin:30,
88
89	    items:3,
90
91	    nav: true,
92
93	    dots: false,
94
95	    responsiveClass:true,
96
97	    responsive:{
98
99	        0:{
100
101	            items:1,
102
103	            nav:true
104
105	        },
106
107	        600:{
108
109	            items:1
110
111	        },
112
113	        1000:{
114
115	            items:3
116	        }
117
118	    }
119
120	});
121
122
123
124    
125
126    /*Homepage Blog*/
127
128	  $('.main_blog_wrapper .owl-carousel').owlCarousel({
129
130	    loop:true,
131
132	    margin:30,
133
134	    items:4,
135
136	    nav: true,
137
138	    dots: false,
139
140	    responsiveClass:true,
141
142	    responsive:{
143
144	        0:{
145
146	            items:1,
147
148	            nav:true
149
150	        },
151
152	        600:{
153
154	            items:2
155
156	        },
157
158	        1000:{
159
160	            items:4
161
162	        }
163
164	    }
165
166	});
167
168	  /*Homepage Tour Carousel*/
169
170	  $('#top-pkg-owl').owlCarousel ({
171
172	    loop:true,
173
174	    margin:30,
175
176	    items:5,
177
178	    nav: true,
179
180	    dots: false,
181
182	    responsiveClass:true,
183
184	    responsive:{
185
186	        0:{
187
188	            items:2,
189
190	            nav:true,
191	            margin:20,
192
193	        },
194
195	        600:{
196
197	            items:3
198
199	        },
200
201	        1000:{
202
203	            items:5
204
205	        }
206
207	    }
208
209	});
210	  $('#btm-pkg-owl').owlCarousel({
211
212	    loop:true,
213
214	    margin:30,
215
216	    items:5,
217
218	    nav: true,
219
220	    dots: false,
221
222	    responsiveClass:true,
223
224	    responsive:{
225
226	        0:{
227
228	            items:2,
229
230	            nav:true,
231	            margin:20,
232
233	        },
234
235	        600:{
236
237	            items:3
238
239	        },
240
241	        1000:{
242
243	            items:5
244
245	        }
246
247	    }
248
249	});
250
251	/* Header sticky*/
252
253	window.onscroll = function() {myFunction()};
254
255
256
257	var navbar = document.getElementById("header");
258
259	var sticky = navbar.offsetTop;
260
261
262
263	function myFunction() {
264
265	  if (window.pageYOffset >= sticky) {
266
267	    navbar.classList.add("sticky")
268
269	  } else {
270
271	    navbar.classList.remove("sticky");
272
273	  }
274
275	}  
276
277		
278
279	
280
281	
282
283});
284
285
286
287
288
289
290
291
292
293
294
295// Homepage lazy video
296
297
298
299jQuery(document).ready( function() {
300
301
302
303	var youtube = document.querySelectorAll( ".youtube" );
304
305	
306
307	for (var i = 0; i < youtube.length; i++) {
308
309		
310
311		var source = "https://img.youtube.com/vi/"+ youtube[i].dataset.embed +"/sddefault.jpg";
312
313		
314
315		var image = new Image();
316
317				image.src = source;
318
319				image.addEventListener( "load", function() {
320
321					youtube[ i ].appendChild( image );
322
323				}( i ) );
324
325		
326
327				youtube[i].addEventListener( "click", function() {
328
329
330
331					var iframe = document.createElement( "iframe" );
332
333
334
335							iframe.setAttribute( "frameborder", "0" );
336
337							iframe.setAttribute( "allowfullscreen", "" );
338
339							iframe.setAttribute( "src", "https://www.youtube.com/embed/"+ this.dataset.embed +"?rel=0&showinfo=0&autoplay=1" );
340
341
342
343							this.innerHTML = "";
344
345							this.appendChild( iframe );
346
347				} );	
348
349	};
350
351	});
352
353//} )();

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.