PageSourceSearch

https://sarv.com/inc/js/custom.js

js sarv.com collected 2026-09-24 19:34:31 UTC 18,074 bytes, 508 lines download raw bytes

1						$(document).ready(function() {
2							
3						  $('.every-day').owlCarousel({
4						    loop: true,
5						    margin: 10,
6						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
7						    responsiveClass: true,
8						    autoplay:true,
9						    responsive: {
10						      0: {items: 1,nav: true},
11						      600: {items: 3, nav: false},
12						      768: {items: 2, nav: false},
13						      1000: {items:3, nav: true, loop: true,  margin: 20},
14						      1300: {items: 4, nav: true,loop: true, margin: 20}
15						    }
16						  });
17									  // ==============================================================================================
18
19									 
20									  $('.our-latest').owlCarousel({
21									    loop: true,
22									    margin: 10,
23									    responsiveClass: true,
24									    autoplay:true,
25									    autoplayTimeout:3000,
26									    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
27									    responsive: {
28									      0: { items: 1.2, nav: true, touchDrag: true, },
29									      600: {items: 3, nav: false },
30									      768: { items: 2, nav: true },
31									      1000: {items: 3, nav: true, loop: true, margin: 20 }
32									    }
33									  });
34									    $('.why-choose-teams').owlCarousel({
35									      loop: true,
36									      margin: 20,
37									      stagePadding: 2,
38									      responsiveClass: true,
39									      autoplay:true,
40									      autoplayTimeout:3000,
41									      navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
42									      responsive: {
43									        0: {items: 1.2, nav: true, touchDrag: true, },
44									        600: { items: 3, nav: false },
45									        768: { items: 2, nav: true },
46									        1000: { items: 3, nav: true, loop: true, }
47									      }
48									    });
49									  
50									    $('.employess-slide').owlCarousel({
51									      loop: true,
52									      margin: 10,
53									      responsiveClass: true,
54									      autoplay:true,
55									      autoplayTimeout:3000,
56									      navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
57									      responsive: {
58									        0:{items:1,nav:true,touchDrag:true},
59							            600:{items:3,nav:false},
60							            768:{items:2,nav:true},
61							            1000:{items:3,nav:true,loop:true,margin:20}
62									      }
63									    });
64				  			    $('.careers-slider').owlCarousel({
65												loop: true,
66												margin: 20,
67												autoplay: true,
68												stagePadding: 200,
69												autoplayTimeout: 5000,
70												autoplaySpeed: 5000,
71												autoplayHoverPause: false,
72												navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
73												responsive:{
74												0:{items:1,touchDrag:true,stagePadding:50,center:true,margin:0},
75												600:{items:1,center:true,nav:false,stagePadding:0,margin:0},
76												768:{items:2},
77												1000:{items:2},
78												1200:{items:3}
79					  			      }
80				  			    });
81
82
83				  			    //    $('.brand-logo').owlCarousel({
84										// 		loop: true,
85										// 		  margin: 20,
86										// 		  autoplay: true,
87										// 		  autoplayTimeout: 5000,
88										// 		  autoplaySpeed: 5000,
89										// 		  autoplayHoverPause: false, // keep false
90										// 		  nav: false,
91										// 		  responsive:{
92										// 		    0:{items:2,touchDrag:true,stagePadding:50,center:true,margin:0},
93										// 		    600:{items:2,center:true,nav:false,stagePadding:0,margin:0},
94										// 		    768:{items:4},
95										// 		    1000:{items:5},
96										// 		    1200:{items:5}
97					  			  //     }
98				  			    // });
99				  			       // pause when image hover
100				  			       // document.querySelectorAll('.brand-logo img').forEach(img => {
101				  			       //   img.addEventListener('mouseenter', () => {
102				  			       //     brand.trigger('stop.owl.autoplay');
103				  			       //   });
104
105				  			       //   img.addEventListener('mouseleave', () => {
106				  			       //     brand.trigger('play.owl.autoplay', [5000]);
107				  			       //   });
108				  			       // });
109
110
111
112							   $('.careers-banner-slider').owlCarousel({
113											animateOut: 'fadeOut',
114							        animateIn: 'fadeIn',
115							        autoplay: true,
116							        loop: true,
117							        margin: 0,
118							        nav: false,
119							        dots: true,
120							        autoplayTimeout: 2000,
121							        autoHeight: true,
122							        mouseDrag: true,
123							        autoplayHoverPause: true,
124											navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
125								      responsive: {
126								       0:{touchDrag:true,center:true, items:1},
127						          600:{center:true, items:1},
128						          1000:{loop:true, items:1},
129								      }
130								    });						  			    
131									   $('.carousel-section').each(function () {
132									     const $carousel = $(this).find('.owl-carousel');
133									     
134									     // Intersection Observer for visibility
135									     const observer = new IntersectionObserver(
136									       (entries) => {
137									         entries.forEach((entry) => {
138									           if (entry.isIntersecting) {
139									             $carousel.trigger('play.owl.autoplay'); // Start autoplay
140									           } else {
141									             $carousel.trigger('stop.owl.autoplay'); // Stop autoplay
142									           }
143									         });
144									       },
145									       { threshold: 0.5 } // Trigger when 50% of the carousel is visible
146									     );
147
148									     observer.observe(this); // Observe the current section
149									   });
150									    
151									
152						// ==============================================================================================
153						$('.discover-s').owlCarousel({
154						    loop: true,
155						    margin: 10,
156						    responsiveClass: true,
157						    autoplay: true,
158						    autoHeight: true, // Ensures height adjusts automatically
159						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
160							   responsive:{
161								  0:{items:1.2,nav:true},
162								  600:{items:2,nav:false},
163								  768:{items:3,nav:true},
164								  1000:{items:2,nav:true,margin:20},
165								  1300:{items:3,nav:true,margin:20}
166								}
167
168						});
169						$('.user-cases').owlCarousel({
170						    loop: true,
171						    margin: 10,
172						    responsiveClass: true,
173						    autoplay: true,
174						    autoHeight: true, // Ensures height adjusts automatically
175						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
176						    responsive:{
177						      0:{items:1,nav:true},
178						      600:{items:2,nav:false},
179						      768:{items:2,nav:true},
180						      1000:{items:3,nav:true,margin:20},
181						      1300:{items:4,nav:true,margin:20}
182						    }
183						});
184						$('.optimize-performance').owlCarousel({
185						    loop: true,
186						    margin: 10,
187						    responsiveClass: true,
188						    autoplay: false,
189						    autoHeight: true, // Ensures height adjusts automatically
190						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
191						   responsive:{
192						     0:{items:1.2,nav:true},
193						     600:{items:2,nav:false},
194						     768:{items:3,nav:true},
195						     1000:{items:2,nav:true,margin:20},
196						     1300:{items:3,nav:true,margin:20}
197						   }
198						});
199						$('.our-services').owlCarousel({
200						    loop: true,
201						    margin: 10,
202						    responsiveClass: true,
203						    autoplay: false,
204						    autoHeight: true, // Ensures height adjusts automatically
205						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
206						   responsive:{
207						     0:{items:1,nav:true,touchDrag:true},
208						     600:{items:2,nav:false},
209						     768:{items:2,nav:true},
210						     1000:{items:3,nav:true,margin:20},
211						     1300:{items:4,nav:true,margin:20}
212						   }
213						});
214
215						$('.deepenrich-slider').owlCarousel({
216						    loop: true,
217						    margin: 20,
218						    responsiveClass: true,
219						    autoplay: true,
220						    // center:true,
221						    autoHeight: true, // Ensures height adjusts automatically
222						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
223						    responsive:{
224						      0:{items:1,nav:false},
225						      600:{items:1,nav:false},
226						      768:{items:1,nav:false},
227						      1000:{items:1.5,nav:false},
228						      1300:{items:2.3,nav:false}
229						    }
230						});
231					$('.conversational-slider').owlCarousel({
232					  loop: true,
233				    margin: 20,
234				    responsiveClass: true,
235				    autoplay: true,
236				    // center:true,
237				    autoHeight: true, // Ensures height adjusts automatically
238				    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
239				    nav:true,
240				    autoplayTimeout:8000,
241				    responsive:{
242				      0:{items:1.2,},
243				      600:{items:1.2,},
244				      767:{items:1.2,},
245				      768:{items:1.5,},
246				      1000:{items:2.5,},
247				      1300:{items:3.3,},
248				      1400:{items:4.3,}
249				    }
250					});
251
252						// ===============================================================
253						var maxHeight = 0;
254						    $(".discover-s .item, .user-cases .item").each(function(){
255						        var thisHeight = $(this).outerHeight();
256						        if (thisHeight > maxHeight) { maxHeight = thisHeight; }
257						    });
258
259						    $(".discover-s .item, .user-cases .item").css("height", maxHeight + "px");
260						// ===============================================================
261
262						  $('.customer-storie, .award-recognition').owlCarousel({
263						    loop: true,
264						    margin: 10,
265						    responsiveClass: true,
266						    autoplay:true,
267						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
268							  responsive:{
269							    0:{items:1,nav:true,touchDrag:true},
270							    600:{items:3,nav:false},
271							    768:{items:2,nav:true},
272							    1024:{items:3,nav:true,margin:20},
273							    1400:{items:4,nav:true,margin:20}
274							  }
275						  })
276
277						    $('.award-recognition-reviews').owlCarousel({
278						      loop: true,
279						      margin: 10,
280						      responsiveClass: true,
281						      autoplay:true,
282						      dot:true,
283						      navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
284						    	responsive:{
285						    	  0:{items:1,nav:true,touchDrag:true},
286						    	  600:{items:1,nav:false},
287						    	  768:{items:2,nav:true},
288						    	  1024:{items:2,nav:true,margin:20},
289						    	  1400:{items:2,nav:true,margin:20}
290						    	}
291						    })
292
293						  $('.latest-blog').owlCarousel({
294						    loop: true,
295						    margin: 10,
296						    responsiveClass: true,
297						    autoplay:true,
298						    nav:false,
299						    dot:true,
300								touchDrag: true,
301						  	responsive:{
302						  	  0:{items:1,nav:true},
303						  	  600:{items:1,nav:false},
304						  	  1000:{items:1,nav:true,margin:20}
305						  	}
306						  })
307						  $('.voice-broadcasting-features').owlCarousel({
308						    loop: true,
309						    margin: 10,
310						    responsiveClass: true,
311						    autoplay:true,
312						    navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
313						    responsive:{
314						      0:{items:1,nav:true,touchDrag:true},
315						      600:{items:1,nav:false},
316						      768:{items:1,nav:true},
317						      1024:{items:1,nav:true,margin:20},
318						      1400:{items:1,nav:true,margin:20}
319						    }
320						  })
321
322						    $('.voice-broadcasting-missedcall').owlCarousel({
323						      loop: true,
324						      margin: 10,
325						      responsiveClass: true,
326						      autoplay:true,
327						      navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
328						    	responsive:{
329						    	  0:{items:1,nav:true,touchDrag:true},
330						    	  600:{items:1,nav:false},
331						    	  768:{items:1,nav:true},
332						    	  1024:{items:2,nav:true,margin:20},
333						    	  1400:{items:2,nav:true,margin:20}
334						    	}
335						    })
336						}) 
337			// *======================================================*
338			// first item selected js start
339			// *======================================================*
340				
341
342						  // *======================================================*
343						  // first item selected js End
344						  // *======================================================*
345			// *====================Header sticky =====================*
346						$(window).scroll(function() {
347						    if ($(this).scrollTop() > 30){  
348						        $('header').addClass("sticky");
349						    }
350						    else{
351						        $('header').removeClass("sticky");
352						    }
353						});
354			// *======================================================*
355			// *================Page scroll============================*
356
357			$(window).scroll(function() {
358			    if ($(this).scrollTop() > 50 ) {
359			        $('.scrolltop:hidden').stop(true, true).fadeIn();
360			    } else {
361			        $('.scrolltop').stop(true, true).fadeOut();
362			    }
363			});
364			$(function(){$(".scroll").click(function(){$("html,body").animate({scrollTop:$(".top").offset().top},"1000");return false})})
365			// *================Page scroll End============================*
366			// *=============page scroll counter======================*
367			var counted = 0;
368			$(window).scroll(function() {
369
370			  var oTop = $('#counter').offset().top - window.innerHeight;
371			  if (counted == 0 && $(window).scrollTop() > oTop) {
372			    $('.count').each(function() {
373			      var $this = $(this),
374			        countTo = $this.attr('data-count');
375			      $({
376			        countNum: $this.text()
377			      }).animate({
378			          countNum: countTo
379			        },
380
381			        {
382
383			          duration: 2000,
384			          easing: 'swing',
385			          step: function() {
386			            $this.text(Math.floor(this.countNum));
387			          },
388			          complete: function() {
389			            $this.text(this.countNum);
390			            //alert('finished');
391			          }
392
393			        });
394			    });
395			    counted = 1;
396			  }
397
398			});
399			// *=============page scroll counter======================*
400
401			//====================== smooth page scroll a href id base  =================================//
402			$(document).ready(function () {
403			  function smoothScrollTo(targetId) {
404			    var target = $(targetId); 
405			    if (target.length) {
406			      
407			      $('html, body').animate(
408			        {
409			          scrollTop: target.offset().top - 100, 
410			        },
411			        300 
412			      );
413			    }
414			  }
415			  $('.email-banner a.current-opening').on('click', function (e) {
416			    var href = $(this).attr('href'); 
417			    var hashIndex = href.indexOf('#'); 
418			    var targetId = href.substring(hashIndex);
419
420			    if (hashIndex !== -1) {
421			      if (window.location.pathname.endsWith('careers.php')) {
422			        e.preventDefault(); // Prevent default behavior
423			        smoothScrollTo(targetId);
424			      }
425			    }
426			  });
427			  $('.our-infra-open').on('click', function (e) {
428			    var href = $(this).attr('href'); 
429			    var hashIndex = href.indexOf('#'); 
430			    var targetId = href.substring(hashIndex);
431
432			    if (hashIndex !== -1) {
433			      if (window.location.pathname.endsWith('careers.php')) {
434			        e.preventDefault(); // Prevent default behavior
435			        smoothScrollTo(targetId);
436			      }
437			    }
438			  });
439			  if (window.location.hash) {
440			    smoothScrollTo(window.location.hash);
441			  }
442			});
443			//====================== smooth page scroll a href id base  =================================//
444			window.onload = function() {
445			  if (window.location.hash) {
446			    const target = document.querySelector(window.location.hash);
447			    if (target) {
448			      // Adjust this offset to fit your header size
449			      const headerOffset = 50; 
450			      const elementPosition = target.getBoundingClientRect().top;
451			      const offsetPosition = elementPosition + window.scrollY - headerOffset;
452
453			      window.scrollTo({
454			        top: offsetPosition,
455			        behavior: 'smooth'
456			      });
457
458			      // Remove hash from URL without reloading
459			      setTimeout(() => {
460			        history.replaceState(null, null, window.location.pathname);
461			      }, 300);
462			    }
463			  }
464			};
465
466			 $('.featured-testimonials-slider').owlCarousel({
467						     loop: true,
468						     margin: 10,
469						     responsiveClass: true,
470						     autoplay:true,
471						    autoplayTimeout: 9000,
472						    autoplaySpeed: 1000,
473						     navText: [" <i class='bi bi-arrow-left-short'></i>", " <i class='bi bi-arrow-right-short'></i>"],
474						    	responsive:{
475						    	  0:{items:1,nav:true,touchDrag:true},
476						    	  600:{items:1,nav:false},
477						    	  768:{items:1,nav:true},
478						    	  1000:{items:1,nav:true,margin:20}
479						    	}
480						   });
481
482			 AOS.init();
483
484
485			// ===============seo related script addedd Start ===============//
486			 /* Passive touch controls */
487			 jQuery.event.special.touchstart = {
488			   setup: function (_, ns, handle) {
489			     this.addEventListener("touchstart", handle, { passive: !ns.includes("noPreventDefault") });
490			   }
491			 };
492			 jQuery.event.special.touchmove = {
493			   setup: function (_, ns, handle) {
494			     this.addEventListener("touchmove", handle, { passive: !ns.includes("noPreventDefault") });
495			   }
496			 };
497			 jQuery.event.special.wheel = {
498			   setup: function (_, ns, handle) {
499			     this.addEventListener("wheel", handle, { passive: true });
500			   }
501			 };
502			 jQuery.event.special.mousewheel = {
503			   setup: function (_, ns, handle) {
504			     this.addEventListener("mousewheel", handle, { passive: true });
505			   }
506			 };
507			 // ===============seo related script addedd End ===============//
508

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.