PageSourceSearch

https://kcb.com.pk/wp-content/themes/tryo/assets/js/main.js?ver=1791244648

js kcb.com.pk collected 2026-10-06 00:30:03 UTC 6,636 bytes, 247 lines download raw bytes

1(function($){
2	"use strict";
3	jQuery(document).on('ready', function () {
4		
5		// Header Sticky
6		$(window).on('scroll',function() {
7            if ($(this).scrollTop() > 120){  
8                $('.navbar-area').addClass("is-sticky");
9            }
10            else{
11                $('.navbar-area').removeClass("is-sticky");
12            }
13        });
14
15		// Mean Menu
16		jQuery('.mean-menu').meanmenu({
17			meanScreenWidth: "991"
18		});
19
20		// Nice Select JS
21		$('select').niceSelect();
22		
23		// Odometer JS
24		$('.odometer').appear(function(e) {
25			var odo = $(".odometer");
26			odo.each(function() {
27				var countNumber = $(this).attr("data-count");
28				$(this).html(countNumber);
29			});
30		});
31
32		// Video Popup JS
33		$('.popup-youtube').magnificPopup({
34            disableOn: 320,
35            type: 'iframe',
36            mainClass: 'mfp-fade',
37            removalDelay: 160,
38            preloader: false,
39            fixedContentPos: false
40		});
41
42		// Go to Top
43        $(function(){
44            // Scroll Event
45            $(window).on('scroll', function(){
46                var scrolled = $(window).scrollTop();
47                if (scrolled > 600) $('.go-top').addClass('active');
48                if (scrolled < 600) $('.go-top').removeClass('active');
49            });  
50            // Click Event
51            $('.go-top').on('click', function() {
52                $("html, body").animate({ scrollTop: "0" },  500);
53            });
54        });
55		
56	});
57	
58	// WOW JS
59	$(window).on ('load', function (){
60        if ($(".wow").length) { 
61            var wow = new WOW({
62            boxClass:     'wow',      // animated element css class (default is wow)
63            animateClass: 'animated', // animation css class (default is animated)
64            offset:       20,          // distance to the element when triggering the animation (default is 0)
65            mobile:       true, // trigger animations on mobile devices (default is true)
66            live:         true,       // act on asynchronously loaded content (default is true)
67          });
68          wow.init();
69        }
70	});
71	
72	// Preloader
73	jQuery(window).on('load', function() {
74		$('.preloader').fadeOut();
75	});
76
77	/*new-js "Home Demo - 6" */
78
79	
80
81	// El JS
82	$( window ).on( 'elementor/frontend/init', function() {
83        elementorFrontend.hooks.addAction( 'frontend/element_ready/widget', function( $scope ) {
84
85			// Success Story Slides
86			$('.success-story-slides').owlCarousel({
87				loop: true,
88				nav: true,
89				dots: false,
90				autoplayHoverPause: true,
91				autoplay: true,
92				items: 1,
93				margin: 5,
94				navText: [
95					"<i class='fas fa-chevron-left'></i>",
96					"<i class='fas fa-chevron-right'></i>"
97				]
98			});
99
100			// Partner Slides
101			$('.partner-slides').owlCarousel({
102				loop: true,
103				nav: false,
104				dots: false,
105				autoplayHoverPause: true,
106				autoplay: true,
107				margin: 30,
108				navText: [
109					"<i class='fas fa-chevron-left'></i>",
110					"<i class='fas fa-chevron-right'></i>"
111				],
112				responsive: {
113					0: {
114						items: 2,
115					},
116					576: {
117						items: 3,
118					},
119					768: {
120						items: 4,
121					},
122					992: {
123						items: 5,
124					}
125				}
126			});
127
128			// Home Slides
129			$('.home-slides').owlCarousel({
130				nav: true,
131				loop: true,
132				dots: false,
133				autoplayHoverPause: true,
134				animateOut: 'fadeOut',
135				autoplayTimeout: 8000,
136				animateIn: 'fadeIn',
137				autoplay: true,
138				items: 1,
139				navText: [
140					"<i class='fas fa-chevron-left'></i>",
141					"<i class='fas fa-chevron-right'></i>"
142				]
143			});
144
145			// Testimonials Wrap Slides
146			$('.testimonials-wrap-slides').owlCarousel({
147				nav: true,
148				loop: true,
149				dots: false,
150				autoplayHoverPause: true,
151				animateOut: 'fadeOut',
152				autoplayTimeout: 8000,
153				animateIn: 'fadeIn',
154				autoplay: true,
155				items: 1,
156				navText: [
157					"<i class='fas fa-chevron-left'></i>",
158					"<i class='fas fa-chevron-right'></i>"
159				]
160			});
161
162    	} );
163	} );
164
165	// Feedback Carousel
166	$( window ).on( 'elementor/frontend/init', function() {
167		elementorFrontend.hooks.addAction( 'frontend/element_ready/Testimonials.default', function($scope, $){
168
169			var $imagesSlider = $(".feedback-slides .client-feedback>div"),
170			$thumbnailsSlider = $(".client-thumbnails>div");
171			
172			// images options
173			$imagesSlider.slick({
174				speed:500,
175				slidesToShow:1,
176				slidesToScroll:1,
177				cssEase:'linear',
178				fade:true,
179				adaptiveHeight: true,
180				autoplay: false,
181				draggable:true,
182				asNavFor:".client-thumbnails>div",
183				prevArrow:'.client-feedback .prev-arrow',
184				nextArrow:'.client-feedback .next-arrow'
185			});
186
187			// Thumbnails options
188			$thumbnailsSlider.slick({
189				speed:500,
190				slidesToShow:5,
191				slidesToScroll:1,
192				cssEase:'linear',
193				autoplay: false,
194				centerMode:true,
195				centerPadding: '0',
196				draggable:false,
197				focusOnSelect:true,
198				asNavFor:".feedback-slides .client-feedback>div",
199				prevArrow:'.client-thumbnails .prev-arrow',
200				nextArrow:'.client-thumbnails .next-arrow',
201			});
202			var $caption = $('.feedback-slides .caption');
203			var captionText = $('.client-feedback .slick-current img').attr('alt');
204			updateCaption(captionText);
205			$imagesSlider.on('beforeChange', function(event, slick, currentSlide, nextSlide){
206				$caption.addClass('hide');
207			});
208			$imagesSlider.on('afterChange', function(event, slick, currentSlide, nextSlide){
209				captionText = $('.client-feedback .slick-current img').attr('alt');
210				updateCaption(captionText);
211			});
212			function updateCaption(text) {
213				// if empty, add a no breaking space
214				if (text === '') {
215					text = '&nbsp;';
216				}
217				$caption.html(text);
218				$caption.removeClass('hide');
219			}
220		});
221	} );
222}(jQuery));
223
224
225// function to set a given theme/color-scheme
226// function setTheme(themeName) {
227// 	localStorage.setItem('theme', themeName);
228// 	document.documentElement.className = themeName;
229// }
230// function to toggle between light and dark theme
231// function toggleTheme() {
232// 	if (localStorage.getItem('theme') === 'theme-dark') {
233// 		setTheme('theme-light');
234// 	} else {
235// 		setTheme('theme-dark');
236// 	}
237// }
238// Immediately invoked function to set the theme on initial load
239// (function () {
240// 	if (localStorage.getItem('theme') === 'theme-dark') {
241// 		setTheme('theme-dark');
242// 		document.getElementById('slider').checked = false;
243// 	} else {
244// 		setTheme('theme-light');
245// 	  document.getElementById('slider').checked = true;
246// 	}
247// })();

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.