About Dr. Khusbu Ramani
-
Expertise & Specialties
-
// banner slider script
var swiper = new Swiper(".mySwiper", {
spaceBetween: 30,
effect: "fade",
// autoplay: {
// delay: 20000,
// },
fadeEffect: {
crossFade: true,
},
loop: true,
pagination: {
el: ".swiper-pagination",
clickable: true,
},
});
swiper.on('slideChange', function (e) {
const currentSlideIndex = e?.activeIndex
const currentSlide = e?.slides[currentSlideIndex]
var videoElement = $(currentSlide).find('.video-banner');
if (videoElement?.length > 0) {
videoElement.get(0).currentTime = 0;
}
});
// patient slider script
var swiper = new Swiper(".patient", {
slidesPerView: 3,
spaceBetween: 30,
loop: false,
pagination: {
el: '.swiper-pagination',
clickable: true,
dynamicBullets: true
},
breakpoints: {
0: {
slidesPerView: 1,
},
580: {
slidesPerView: 2,
spaceBetween: 20,
},
767: {
slidesPerView: 3,
},
},
});
// blogArtical slider script
var swiper = new Swiper(".blogArtical", {
slidesPerView: 4,
spaceBetween: 20,
loop: false,
pagination: {
el: '.swiper-pagination',
clickable: true,
dynamicBullets: true
},
breakpoints: {
0: {
slidesPerView: 1,
},
580: {
slidesPerView: 2,
},
767: {
slidesPerView: 3,
},
1282: {
slidesPerView: 4,
},
},
});
// team slider
var swiper = new Swiper(".teamSlider", {
slidesPerView: 4,
spaceBetween: 20,
loop: false,
pagination: {
el: '.swiper-pagination',
clickable: true,
dynamicBullets: true
},
breakpoints: {
0: {
slidesPerView: 1,
},
580: {
slidesPerView: 2,
},
991: {
slidesPerView: 3,
},
1282: {
slidesPerView: 4,
},
},
});
// header sticky script
$(window).scroll(function () {
if ($(this).scrollTop() > 100) {
$(".site_header").addClass("sticky-header");
} else {
$(".site_header").removeClass("sticky-header");
}
});
const slider = document.querySelector('.domestic_scroll');
let isDown = false;
let startX;
let scrollLeft;
slider.addEventListener('mousedown', (e) => {
isDown = true;
slider.classList.add('active');
startX = e.pageX - slider.offsetLeft;
scrollLeft = slider.scrollLeft;
});
slider.addEventListener('mouseleave', () => {
isDown = false;
slider.classList.remove('active');
});
slider.addEventListener('mouseup', () => {
isDown = false;
slider.classList.remove('active');
});
slider.addEventListener('mousemove', (e) => {
if (!isDown) return;
e.preventDefault();
const x = e.pageX - slider.offsetLeft;
const walk = (x - startX) * 3; //scroll-fast
slider.scrollLeft = scrollLeft - walk;
console.log(walk);
});