Files
aroginhealthcare/public/source/js/script.min.js
2025-08-17 16:23:14 +05:45

439 lines
12 KiB
JavaScript

(function(e) {
"use strict";
function a() {
if (e(".preloader").length) {
e(".preloader").delay(500).fadeOut(500);
}
}
function t() {
if (e(".main-header").length) {
var a = e(".header-top").innerHeight(),
t = e(window).scrollTop();
t >= a ? e(".main-header").addClass("header-fixed") : e(".main-header").removeClass("header-fixed");
}
}
function i() {
e(".column.animated").each(function() {
var a = e(this),
t = a.find(".count-text").attr("data-stop"),
i = parseInt(a.find(".count-text").attr("data-speed"), 10);
a.hasClass("counted") || (a.addClass("counted"), e({
countNum: a.find(".count-text").text()
}).animate({
countNum: t
}, {
duration: i,
easing: "linear",
step: function() {
a.find(".count-text").text(Math.floor(this.countNum));
},
complete: function() {
a.find(".count-text").text(this.countNum);
}
}));
});
}
var o;
if (e(".main-slider").length) {
jQuery(".tp-banner").show().revolution({
delay: 10000,
startwidth: 1170,
startheight: 500,
hideThumbs: 600,
thumbWidth: 80,
thumbHeight: 50,
thumbAmount: 5,
navigationType: "bullet",
navigationArrows: "0",
navigationStyle: "preview4",
touchenabled: "on",
onHoverStop: "off",
swipe_velocity: 0.7,
swipe_min_touches: 1,
swipe_max_touches: 1,
drag_block_vertical: !1,
parallax: "mouse",
parallaxBgFreeze: "on",
parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0],
keyboardNavigation: "off",
navigationHAlign: "center",
navigationVAlign: "bottom",
navigationHOffset: 0,
navigationVOffset: 20,
soloArrowLeftHalign: "left",
soloArrowLeftValign: "center",
soloArrowLeftHOffset: 20,
soloArrowLeftVOffset: 0,
soloArrowRightHalign: "right",
soloArrowRightValign: "center",
soloArrowRightHOffset: 20,
soloArrowRightVOffset: 0,
shadow: 0,
fullWidth: "on",
fullScreen: "off",
spinner: "spinner4",
stopLoop: "off",
stopAfterLoops: -1,
stopAtSlide: -1,
shuffle: "off",
autoHeight: "off",
forceFullWidth: "on",
hideThumbsOnMobile: "on",
hideNavDelayOnMobile: 1500,
hideBulletsOnMobile: "on",
hideArrowsOnMobile: "on",
hideThumbsUnderResolution: 0,
hideSliderAtLimit: 0,
hideCaptionAtLimit: 0,
hideAllCaptionAtLilmit: 0,
startWithSlide: 0,
videoJsPath: "",
fullScreenOffsetContainer: ".main-slider"
});
}
if (e(".header-lower .search-btn").length) {
e(".header-lower .search-btn").on("click", function() {
e(".search-box.toggle-box").slideToggle(500);
});
}
if (e(".service-tabs").length) {
e(".service-tabs .tab-btn").on("click", function() {
var a = e(e(this).attr("data-id"));
e(".service-tabs .tab-btn").removeClass("active-btn"),
e(this).addClass("active-btn"),
e(".service-tabs .tab").fadeOut(0),
e(".service-tabs .tab").removeClass("active-tab"),
e(a).fadeIn(0),
e(a).addClass("active-tab");
});
}
if (e(".filter-list").length) {
e(".filter-list").mixitup({});
}
// transformation
if (e(".transformation-area .transformation-slider").length) {
e(".transformation-area .transformation-slider").owlCarousel({
loop: true,
margin: 50,
auto: true,
autoplay: 5000,
nav: true,
navText: ['<span class="custom-owl-nav owl-prev">&#10094;</span>','<span class="custom-owl-nav owl-next">&#10095;</span>'],
dots: false,
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 2
},
1000: {
items: 2
},
1400: {
items: 2
}
}
});
}
// videos
if (e(".videos-area .videos-slider").length) {
e(".videos-area .videos-slider").owlCarousel({
loop: true,
margin: 50,
auto: false,
// autoplay: 5000,
nav: true,
dots: false,
navText: ['<span class="custom-owl-nav owl-prev">&#10094;</span>','<span class="custom-owl-nav owl-next">&#10095;</span>'],
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 2
},
1000: {
items: 2
},
1400: {
items: 2
}
}
});
}
// testimonial
if (e(".testimonial-area .testimonial-slider").length) {
e(".testimonial-area .testimonial-slider").owlCarousel({
loop: true,
margin: 50,
auto: false,
// autoplay: 5000,
nav: true,
dots: false,
navText: ['<span class="custom-owl-nav owl-prev">&#10094;</span>','<span class="custom-owl-nav owl-next">&#10095;</span>'],
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 2
},
1000: {
items: 2
},
1400: {
items: 2
}
}
});
}
// news
if (e(".news-area .news-slider").length) {
e(".news-area .news-slider").owlCarousel({
loop: !0,
margin: 50,
auto: !1, // Changed autoplay to false
// autoplay: 5000,
nav: !0,
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 2
},
1000: {
items: 2
},
1400: {
items: 2
}
}
});
}
// hair page slider
if (e(".image-slider").length) {
e(".image-slider").owlCarousel({
loop: true,
margin: 50,
auto: true,
autoplay: 2000,
nav: false,
dots: false,
responsive: {
0: {
items: 1
},
600: {
items: 1
},
800: {
items: 1
},
1000: {
items: 1
},
1400: {
items: 1
}
}
});
}
// quotes
if (e(".quote-slider").length) {
e(".quote-slider").owlCarousel({
items: 1,
loop: !0,
margin: 0,
nav: !1,
autoplay: 5000
});
}
// client log0
if (e(".client-logo .slider").length) {
e(".client-logo .slider").owlCarousel({
loop: !0,
margin: 10,
nav: !0,
autoplay: 3000,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
800: {
items: 3
},
1000: {
items: 4
},
1400: {
items: 4
}
}
});
}
if (e(".project-slider .slider").length) {
e(".project-slider .slider").owlCarousel({
loop: !0,
margin: 6,
nav: !0,
autoplay: 3000,
responsive: {
0: {
items: 2
},
600: {
items: 4
},
800: {
items: 4
},
1000: {
items: 5
},
1400: {
items: 6
}
}
});
}
if (e(".lightbox-image").length) {
e(".lightbox-image").fancybox();
}
if (e("#contact-form").length) {
e("#contact-form").validate({
rules: {
username: {
required: !0
},
email: {
required: !0,
email: !0
},
subject: {
required: !0
}
}
});
}
if (e("#map-location").length) {
o = new GMaps({
el: "#map-location",
zoom: 16,
scrollwheel: !1,
lat: 27.7215812,
lng: 85.3354746
});
o.addMarker({
lat: 27.7215812,
lng: 85.3354746,
infoWindow: {
content: "<p><strong>Arogin Health Care & Research Centre (P) Ltd </strong><br>Bishalnagar, Kathmandu</p>"
}
});
}
if (e(".wow").length) {
var n = new WOW({
boxClass: "wow",
animateClass: "animated",
offset: 0,
mobile: !0,
live: !0
});
n.init();
}
e(document).on("ready", function() {
t(), i(),
e(".image-popup-vertical-fit").magnificPopup({
type: "image",
closeOnContentClick: !0,
mainClass: "mfp-img-mobile",
image: {
verticalFit: !0
}
}),
e(".popup-gallery").magnificPopup({
delegate: "a",
type: "image",
tLoading: "Loading image #%curr%...",
mainClass: "mfp-img-mobile",
gallery: {
enabled: !0,
navigateByImgClick: !0,
preload: [0, 1]
}
}),
e(".format-image").each(function() {
e(this).find(".media-box").append("<span class='zoom'><i class='fa fa-search'></i></span>");
}),
e(".format-standard").each(function() {
e(this).find(".media-box").append("<span class='zoom'><i class='fa fa-plus'></i></span>");
}),
e(".format-video").each(function() {
e(this).find(".media-box").append("<span class='zoom'><i class='fa fa-play'></i></span>");
}),
e(".format-link").each(function() {
e(this).find(".media-box").append("<span class='zoom'><i class='fa fa-link'></i></span>");
}),
e(".format-image1").each(function() {
e(this).find(".media-box1").append("<span class='zoom1'><i class='fa fa-search'></i></span>");
}),
e(".format-standard1").each(function() {
e(this).find(".media-box1").append("<span class='zoom1'><i class='fa fa-plus'></i></span>");
}),
e(".format-video1").each(function() {
e(this).find(".media-box1").append("<span class='zoom1'><i class='fa fa-play'></i></span>");
}),
e(".format-link1").each(function() {
e(this).find(".media-box1").append("<span class='zoom1'><i class='fa fa-link'></i></span>");
});
});
e(window).on("scroll", function() {
t(), i();
});
e(window).on("load", function() {
a();
});
})(window.jQuery);