PageSourceSearch

https://conduipro.com/wp-content/themes/udrive/assets/js/script.js?ver=20deef02ba21226b2e2863364e3a7d4c

js conduipro.com collected 2026-10-04 13:41:42 UTC 13,766 bytes, 654 lines download raw bytes

1(function($) {
2	
3	"use strict";
4	
5	//Hide Loading Box (Preloader)
6	function handlePreloader() {
7		if($('.loader-wrap').length){
8			$('.loader-wrap').delay(1000).fadeOut(500);
9		}
10	}
11
12	if ($(".preloader-close").length) {
13        $(".preloader-close").on("click", function(){
14            $('.loader-wrap').delay(200).fadeOut(500);
15        });
16    }
17	
18	//Update Header Style and Scroll to Top
19	function headerStyle() {
20		if($('.main-header').length){
21			var windowpos = $(window).scrollTop();
22			var siteHeader = $('.main-header');
23			var scrollLink = $('.scroll-top');
24			if (windowpos >= 110) {
25				siteHeader.addClass('fixed-header');
26				scrollLink.addClass('open');
27			} else {
28				siteHeader.removeClass('fixed-header');
29				scrollLink.removeClass('open');
30			}
31		}
32	}
33	
34	headerStyle();
35
36
37	//Submenu Dropdown Toggle
38	if($('.main-header li.dropdown ul').length){
39		$('.main-header .navigation li.dropdown').append('<div class="dropdown-btn"><span class="fas fa-angle-down"></span></div>');
40		
41	}
42
43	//Mobile Nav Hide Show
44	if($('.mobile-menu').length){
45		
46		$('.mobile-menu .menu-box').mCustomScrollbar();
47		
48		var mobileMenuContent = $('.main-header .menu-area .main-menu').html();
49		$('.mobile-menu .menu-box .menu-outer').append(mobileMenuContent);
50		$('.sticky-header .main-menu').append(mobileMenuContent);
51		
52		//Dropdown Button
53		$('.mobile-menu li.dropdown .dropdown-btn').on('click', function() {
54			$(this).toggleClass('open');
55			$(this).prev('ul').slideToggle(500);
56		});
57		//Dropdown Button
58		$('.mobile-menu li.dropdown .dropdown-btn').on('click', function() {
59			$(this).prev('.megamenu').slideToggle(900);
60		});
61		//Menu Toggle Btn
62		$('.mobile-nav-toggler').on('click', function() {
63			$('body').addClass('mobile-menu-visible');
64		});
65
66		//Menu Toggle Btn
67		$('.mobile-menu .menu-backdrop,.mobile-menu .close-btn').on('click', function() {
68			$('body').removeClass('mobile-menu-visible');
69		});
70	}
71
72
73	// Scroll to a Specific Div
74	if($('.scroll-to-target').length){
75		$(".scroll-to-target").on('click', function() {
76			var target = $(this).attr('data-target');
77		   // animate
78		   $('html, body').animate({
79			   scrollTop: $(target).offset().top
80			 }, 1000);
81	
82		});
83	}
84
85	// Elements Animation
86	if($('.wow').length){
87		var wow = new WOW({
88		mobile:       false
89		});
90		wow.init();
91	}
92
93	//Fact Counter + Text Count
94	if($('.count-box').length){
95		$('.count-box').appear(function(){
96	
97			var $t = $(this),
98				n = $t.find(".count-text").attr("data-stop"),
99				r = parseInt($t.find(".count-text").attr("data-speed"), 10);
100				
101			if (!$t.hasClass("counted")) {
102				$t.addClass("counted");
103				$({
104					countNum: $t.find(".count-text").text()
105				}).animate({
106					countNum: n
107				}, {
108					duration: r,
109					easing: "linear",
110					step: function() {
111						$t.find(".count-text").text(Math.floor(this.countNum));
112					},
113					complete: function() {
114						$t.find(".count-text").text(this.countNum);
115					}
116				});
117			}
118			
119		},{accY: 0});
120	}
121
122
123	
124	//Tabs Box
125	if($('.tabs-box').length){
126		$('.tabs-box .tab-buttons .tab-btn').on('click', function(e) {
127			e.preventDefault();
128			var target = $($(this).attr('data-tab'));
129			
130			if ($(target).is(':visible')){
131				return false;
132			}else{
133				target.parents('.tabs-box').find('.tab-buttons').find('.tab-btn').removeClass('active-btn');
134				$(this).addClass('active-btn');
135				target.parents('.tabs-box').find('.tabs-content').find('.tab').fadeOut(0);
136				target.parents('.tabs-box').find('.tabs-content').find('.tab').removeClass('active-tab');
137				$(target).fadeIn(100);
138				$(target).addClass('active-tab');
139			}
140		});
141	}
142
143
144
145	//Accordion Box
146	if($('.accordion-box').length){
147		$(".accordion-box").on('click', '.acc-btn', function() {
148			
149			var outerBox = $(this).parents('.accordion-box');
150			var target = $(this).parents('.accordion');
151			
152			if($(this).hasClass('active')!==true){
153				$(outerBox).find('.accordion .acc-btn').removeClass('active');
154			}
155			
156			if ($(this).next('.acc-content').is(':visible')){
157				return false;
158			}else{
159				$(this).addClass('active');
160				$(outerBox).children('.accordion').removeClass('active-block');
161				$(outerBox).find('.accordion').children('.acc-content').slideUp(300);
162				target.addClass('active-block');
163				$(this).next('.acc-content').slideDown(300);	
164			}
165		});	
166	}
167
168
169	// banner-carousel
170	if ($('.banner-carousel').length) {
171        $('.banner-carousel').owlCarousel({
172            loop:true,
173			margin:0,
174			nav:true,
175			animateOut: 'fadeOut',
176    		animateIn: 'fadeIn',
177    		active: true,
178			smartSpeed: 1000,
179			autoplay: 6000,
180            navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
181            responsive:{
182                0:{
183                    items:1
184                },
185                600:{
186                    items:1
187                },
188                800:{
189                    items:1
190                },
191                1024:{
192                    items:1
193                }
194            }
195        });
196    }
197
198
199    // single-item-carousel
200	if ($('.single-item-carousel').length) {
201		$('.single-item-carousel').owlCarousel({
202			loop:true,
203			margin:30,
204			nav:true,
205			smartSpeed: 500,
206			autoplay: 1000,
207			navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
208			responsive:{
209				0:{
210					items:1
211				},
212				480:{
213					items:1
214				},
215				600:{
216					items:1
217				},
218				800:{
219					items:1
220				},			
221				1200:{
222					items:1
223				}
224
225			}
226		});    		
227	}
228
229
230	// two-item-carousel
231	if ($('.two-item-carousel').length) {
232		$('.two-item-carousel').owlCarousel({
233			loop:true,
234			margin:30,
235			nav:true,
236			smartSpeed: 500,
237			autoplay: 1000,
238			navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
239			responsive:{
240				0:{
241					items:1
242				},
243				480:{
244					items:1
245				},
246				600:{
247					items:1
248				},
249				800:{
250					items:2
251				},			
252				1200:{
253					items:2
254				}
255
256			}
257		});    		
258	}
259
260
261    // three-item-carousel
262	if ($('.three-item-carousel').length) {
263		$('.three-item-carousel').owlCarousel({
264			loop:true,
265			margin:30,
266			nav:true,
267			smartSpeed: 500,
268			autoplay: 1000,
269			navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
270			responsive:{
271				0:{
272					items:1
273				},
274				480:{
275					items:1
276				},
277				600:{
278					items:2
279				},
280				800:{
281					items:2
282				},			
283				1200:{
284					items:3
285				}
286
287			}
288		});    		
289	}
290
291
292	// four-item-carousel
293	if ($('.four-item-carousel').length) {
294		$('.four-item-carousel').owlCarousel({
295			loop:true,
296			margin:30,
297			nav:true,
298			smartSpeed: 500,
299			autoplay: 1000,
300			navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
301			responsive:{
302				0:{
303					items:1
304				},
305				480:{
306					items:1
307				},
308				600:{
309					items:2
310				},
311				800:{
312					items:3
313				},			
314				1200:{
315					items:4
316				}
317
318			}
319		});    		
320	}
321
322
323	// five-item-carousel
324	if ($('.five-item-carousel').length) {
325		$('.five-item-carousel').owlCarousel({
326			loop:true,
327			margin:30,
328			nav:true,
329			smartSpeed: 500,
330			autoplay: 1000,
331			navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
332			responsive:{
333				0:{
334					items:1
335				},
336				480:{
337					items:2
338				},
339				600:{
340					items:3
341				},
342				800:{
343					items:4
344				},			
345				1200:{
346					items:5
347				}
348
349			}
350		});    		
351	}
352
353
354    // clients-carousel
355	if ($('.clients-carousel').length) {
356		$('.clients-carousel').owlCarousel({
357			loop:true,
358			margin:0,
359			nav:true,
360			smartSpeed: 500,
361			autoplay: 1000,
362			navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
363			responsive:{
364				0:{
365					items:1
366				},
367				480:{
368					items:2
369				},
370				600:{
371					items:3
372				},
373				800:{
374					items:4
375				},			
376				1200:{
377					items:6
378				}
379
380			}
381		});    		
382	}
383
384	// highlights-carousel
385	if ($('.highlights-carousel').length) {
386		$('.highlights-carousel').owlCarousel({
387			loop:true,
388			rtl:true,
389			margin:30,
390			nav:true,
391			smartSpeed: 500,
392			autoplay: 1000,
393			navText: [ '<span class="fal fa-angle-left"></span>', '<span class="fal fa-angle-right"></span>' ],
394			responsive:{
395				0:{
396					items:1
397				},
398				480:{
399					items:2
400				},
401				600:{
402					items:3
403				},
404				800:{
405					items:4
406				},			
407				1200:{
408					items:5
409				}
410
411			}
412		});    		
413	}
414
415	//bx slider
416
417	if ($('.history-section .history-slide').length) {
418		$('.history-section .history-slide').bxSlider({
419	        nextText: '<i class=""></i>',
420	        prevText: '<i class=""></i>',
421	        mode: 'fade',
422	        auto: 'true',
423	        speed: '700',
424	        mode:'vertical',
425	        maxSlides: 2,
426			minSlides: 2,
427			moveSlides: 1,
428	        pagerCustom: '.testimonial-style-two .slider-pager .thumb-box'
429	    });
430	};
431
432
433
434	//Add One Page nav
435	if($('.scroll-nav').length) {
436		$('.scroll-nav').onePageNav();
437	}
438
439	//Sortable Masonary with Filters
440	function enableMasonry() {
441		if($('.sortable-masonry').length){
442	
443			var winDow = $(window);
444			// Needed variables
445			var $container=$('.sortable-masonry .items-container');
446			var $filter=$('.filter-btns');
447	
448			$container.isotope({
449				filter:'*',
450				 masonry: {
451					columnWidth : '.masonry-item.small-column'
452				 },
453				animationOptions:{
454					duration:500,
455					easing:'linear'
456				}
457			});
458			
459	
460			// Isotope Filter 
461			$filter.find('li').on('click', function(){
462				var selector = $(this).attr('data-filter');
463	
464				try {
465					$container.isotope({ 
466						filter	: selector,
467						animationOptions: {
468							duration: 500,
469							easing	: 'linear',
470							queue	: false
471						}
472					});
473				} catch(err) {
474	
475				}
476				return false;
477			});
478	
479	
480			winDow.on('resize', function(){
481				var selector = $filter.find('li.active').attr('data-filter');
482
483				$container.isotope({ 
484					filter	: selector,
485					animationOptions: {
486						duration: 500,
487						easing	: 'linear',
488						queue	: false
489					}
490				});
491			});
492	
493	
494			var filterItemA	= $('.filter-btns li');
495	
496			filterItemA.on('click', function(){
497				var $this = $(this);
498				if ( !$this.hasClass('active')) {
499					filterItemA.removeClass('active');
500					$this.addClass('active');
501				}
502			});
503		}
504	}
505	
506	enableMasonry();
507
508
509	//Price Range Slider
510	if($('.price-range-slider').length){
511		$( ".price-range-slider" ).slider({
512			range: true,
513			min: 120,
514			max: 500,
515			values: [ 120, 300 ],
516			slide: function( event, ui ) {
517			$( "input.property-amount" ).val( ui.values[ 0 ] + " - " + ui.values[ 1 ] );
518			}
519		});
520		
521		$( "input.property-amount" ).val( $( ".price-range-slider" ).slider( "values", 0 ) + " - $" + $( ".price-range-slider" ).slider( "values", 1 ) );	
522	}
523
524
525    // Progress Bar
526	if ($('.count-bar').length) {
527		$('.count-bar').appear(function(){
528			var el = $(this);
529			var percent = el.data('percent');
530			$(el).css('width',percent).addClass('counted');
531		},{accY: -50});
532
533	}
534
535
536	// page direction
537	function directionswitch() {
538	  	if ($('.page_direction').length) {
539
540	    	$('.direction_switch button').on('click', function() {
541			   $('body').toggleClass(function(){
542			      return $(this).is('.rtl, .ltr') ? 'rtl ltr' : 'rtl';
543			  })
544			});
545	  	};
546	}
547
548
549	//Search Popup
550	if($('#search-popup').length){
551		
552		//Show Popup
553		$('.search-toggler').on('click', function() {
554			$('#search-popup').addClass('popup-visible');
555		});
556		$(document).keydown(function(e){
557	        if(e.keyCode === 27) {
558	            $('#search-popup').removeClass('popup-visible');
559	        }
560	    });
561		//Hide Popup
562		$('.close-search,.search-popup .overlay-layer').on('click', function() {
563			$('#search-popup').removeClass('popup-visible');
564		});
565	}
566
567
568	
569
570    //Jquery Spinner / Quantity Spinner
571	if($('.quantity-spinner').length){
572		$("input.quantity-spinner").TouchSpin({
573		  verticalbuttons: true
574		});
575	}
576
577	// Date picker
578	function datepicker () {
579	    if ($('#datepicker').length) {
580	        $('#datepicker').datepicker();
581	    };
582	}
583
584
585	// Scroll top button
586    $('.scroll-top-inner').on("click", function () {
587        $('html, body').animate({scrollTop: 0}, 500);
588        return false;
589    });
590
591
592    function handleScrollbar() {
593        const bHeight = $('body').height();
594        const scrolled = $(window).innerHeight() + $(window).scrollTop();
595
596        let percentage = ((scrolled / bHeight) * 100);
597
598        if (percentage > 100) percentage = 100;
599
600        $('.scroll-top-inner .bar-inner').css( 'width', percentage + '%');
601    }
602
603
604    if($('.curved-circle').length) {
605        $('.curved-circle').circleType({position: 'absolute', dir: 1, radius: 113, forceHeight: true, forceWidth: true});
606    }
607
608
609    //LightBox / Fancybox
610	$('.video-icon').lightcase();
611	$('.lightbox-image').lightcase();
612
613	/*	=========================================================================
614	When document is Scrollig, do
615	========================================================================== */
616
617	jQuery(document).on('ready', function () {
618		(function ($) {
619			// add your functions
620			directionswitch();
621			datepicker ();
622		})(jQuery);
623	});
624
625
626
627	/* ==========================================================================
628   When document is Scrollig, do
629   ========================================================================== */
630	
631	$(window).on('scroll', function() {
632		headerStyle();
633		handleScrollbar();
634		if ($(window).scrollTop() > 200) {
635                $('.scroll-top-inner').addClass('visible');
636            } else {
637                $('.scroll-top-inner').removeClass('visible');
638            }
639	});
640
641	
642	
643	/* ==========================================================================
644   When document is loaded, do
645   ========================================================================== */
646	
647	$(window).on('load', function() {
648		handlePreloader();
649		enableMasonry();
650	});
651
652	
653
654})(window.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.