lavkach3
1$(function () {2
3// =================================4// Fixed header5// =================================6window.addEventListener("scroll", function () {7var topbar = document.querySelector(".header-fp");8if (topbar) {9if (window.scrollY >= 60) {10topbar.classList.add("header-sticky");11} else {12topbar.classList.remove("header-sticky");13}14}15});16
17// Get the element18let topBtn = document.querySelector(".top-btn");19
20// On Click, Scroll to the page's top, replace 'smooth' with 'instant' if you don't want smooth scrolling21topBtn.onclick = () => window.scrollTo({ top: 0, behavior: "smooth" });22
23// On scroll, Show/Hide the btn with animation24window.onscroll = () => topBtn.style.opacity = window.scrollY > 500 ? 1 : 0;25
26
27
28$('.leadership-carousel').owlCarousel({29loop: true,30margin: 10,31nav: false,32dots: false,33margin: 30,34rtl: true,35responsive: {360: {37items: 138},39600: {40items: 241},42992: {43items: 344},451024: {46items: 447}48}49})50
51$('.testimonial-carousel').owlCarousel({52loop: true,53margin: 10,54nav: false,55dots: true,56autoplay: true,57autoplayTimeout: 5000,58autoplayHoverPause: true,59responsive: {600: {61items: 162},63600: {64items: 165},661000: {67items: 168}69}70})71
72$(document).on('click', '.header-fp .navbar-nav .nav-link', function(){73$(this).addClass('active').siblings().removeClass('active')74})75
76});