405 lines
8.9 KiB
JavaScript
Vendored
405 lines
8.9 KiB
JavaScript
Vendored
$(document).ready(function() {
|
|
certificationCarousel(),
|
|
facilitiesCarousel(),
|
|
customersCarousel(),
|
|
recentlyJoinedCarousel(),
|
|
statusCarousel(),
|
|
industryAssociationCarousel(),
|
|
helpCarousel(),
|
|
mediaCarousel(),
|
|
articleCarousel(),
|
|
logoCarousel(),
|
|
testimonialCarousel(),
|
|
adjFooter(),
|
|
disabledArrow(),
|
|
scrollToTop();
|
|
|
|
$(".hamburg-menu").on("click", function() {
|
|
$("body").toggleClass("menu-open");
|
|
});
|
|
|
|
$(".site-footer .list-title").on("click", function() {
|
|
if ($(window).width() < 1025) {
|
|
$(".site-footer .footer-nav")
|
|
.not($(this).siblings())
|
|
.slideUp();
|
|
$(".site-footer .list-title")
|
|
.not($(this))
|
|
.removeClass("active");
|
|
$(this).toggleClass("active");
|
|
$(this)
|
|
.siblings(".footer-nav")
|
|
.slideToggle();
|
|
}
|
|
});
|
|
|
|
$(".custom-tabs-section .tab-title").on("click", function() {
|
|
if ($(window).width() < 992) {
|
|
$(".custom-tabs-section .mob-tab-content")
|
|
.not(
|
|
$(this)
|
|
.closest(".tab-pane")
|
|
.children()
|
|
)
|
|
.slideUp();
|
|
$(".custom-tabs-section .tab-title")
|
|
.not($(this))
|
|
.removeClass("active-mobile");
|
|
$(this).toggleClass("active-mobile");
|
|
$(this)
|
|
.closest(".tab-pane")
|
|
.find($(".custom-tabs-section .mob-tab-content"))
|
|
.slideToggle();
|
|
}
|
|
});
|
|
});
|
|
$(window).resize(function() {
|
|
certificationCarousel(),
|
|
facilitiesCarousel(),
|
|
customersCarousel(),
|
|
recentlyJoinedCarousel(),
|
|
statusCarousel(),
|
|
industryAssociationCarousel(),
|
|
helpCarousel(),
|
|
mediaCarousel(),
|
|
articleCarousel(),
|
|
logoCarousel(),
|
|
testimonialCarousel(),
|
|
adjFooter(),
|
|
disabledArrow();
|
|
});
|
|
|
|
$(window).on("scroll", function() {
|
|
toggleScrollToTop();
|
|
});
|
|
|
|
function certificationCarousel() {
|
|
$(".certification-carousel").owlCarousel({
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
1: {
|
|
items: 1
|
|
},
|
|
768: {
|
|
items: 2,
|
|
margin: 30
|
|
},
|
|
1400: {
|
|
items: 3,
|
|
margin: 50
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function facilitiesCarousel() {
|
|
$(".facilities-carousel").owlCarousel({
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
1: {
|
|
items: 2,
|
|
margin: 20
|
|
},
|
|
576: {
|
|
items: 3,
|
|
margin: 30
|
|
},
|
|
992: {
|
|
items: 4,
|
|
margin: 50
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function customersCarousel() {
|
|
$(".customers-carousel").owlCarousel({
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
1: {
|
|
items: 2,
|
|
margin: 20
|
|
},
|
|
575: {
|
|
items: 2,
|
|
margin: 30
|
|
},
|
|
768: {
|
|
items: 3,
|
|
margin: 50
|
|
},
|
|
1199: {
|
|
items: 4,
|
|
margin: 70
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function recentlyJoinedCarousel() {
|
|
$(".companies-carousel").owlCarousel({
|
|
items: 4,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
0: {
|
|
items: 1,
|
|
},
|
|
576: {
|
|
items: 2,
|
|
margin:30
|
|
},
|
|
992: {
|
|
items: 4
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function statusCarousel() {
|
|
$(".status-carousel").owlCarousel({
|
|
items: 1,
|
|
margin: 30,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
600: {
|
|
items: 2
|
|
},
|
|
768: {
|
|
items: 3
|
|
},
|
|
992: {
|
|
items: 4
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function industryAssociationCarousel() {
|
|
$(".industry-association-carousel").owlCarousel({
|
|
items: 1,
|
|
margin: 30,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
600: {
|
|
items: 1
|
|
},
|
|
768: {
|
|
items: 2
|
|
},
|
|
992: {
|
|
items: 3
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function helpCarousel() {
|
|
$(".help-carousel").owlCarousel({
|
|
items: 1,
|
|
// margin: 30,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
600: {
|
|
margin: 15,
|
|
items: 1
|
|
},
|
|
768: {
|
|
margin: 20,
|
|
items: 3
|
|
},
|
|
992: {
|
|
margin: 30,
|
|
items: 4
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function adjFooter() {
|
|
var footerH = $(".site-footer").height();
|
|
$(".site-footer").css("margin-top", `-${footerH}px`);
|
|
$(".main").css("padding-bottom", `${footerH}px`);
|
|
}
|
|
|
|
function mediaCarousel() {
|
|
$(".media-carousel").owlCarousel({
|
|
items: 1,
|
|
margin: 30,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
1: {
|
|
items: 1,
|
|
margin: 10
|
|
},
|
|
576: {
|
|
items: 2
|
|
},
|
|
768: {
|
|
items: 3
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function articleCarousel() {
|
|
$(".article-carousel").owlCarousel({
|
|
items: 1,
|
|
margin: 30,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
600: {
|
|
items: 1
|
|
},
|
|
768: {
|
|
items: 2
|
|
},
|
|
992: {
|
|
items: 3
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function logoCarousel() {
|
|
$(".logo-listing").owlCarousel({
|
|
items: 1,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
responsive: {
|
|
1: {
|
|
items: 1,
|
|
margin: 30
|
|
},
|
|
768: {
|
|
items: 2
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
function testimonialCarousel() {
|
|
$(".testimonial-carousel").owlCarousel({
|
|
items: 1,
|
|
nav: true,
|
|
dots: false,
|
|
autoplay: false,
|
|
loop: false,
|
|
autoplaySpeed: 500,
|
|
smartSpeed: 1000,
|
|
touchDrag: true,
|
|
mouseDrag: true,
|
|
// responsive: {
|
|
// 600: {
|
|
// items: 1,
|
|
// margin: 20
|
|
// },
|
|
// 768: {
|
|
// items: 2,
|
|
// margin: 30
|
|
// },
|
|
// 992: {
|
|
// items: 1,
|
|
// margin: 50
|
|
// }
|
|
// }
|
|
});
|
|
}
|
|
|
|
function disabledArrow() {
|
|
$(".owl-carousel").each(function() {
|
|
if (
|
|
$(this)
|
|
.find(".owl-nav")
|
|
.hasClass("disabled")
|
|
) {
|
|
$(this).addClass("no-slider");
|
|
} else {
|
|
$(this).removeClass("no-slider");
|
|
}
|
|
$(this).trigger("refresh.owl.carousel");
|
|
});
|
|
}
|
|
|
|
function scrollToTop() {
|
|
$(".scroll-to-top").on("click", function() {
|
|
$("body,html").animate({ scrollTop: 0 }, "500");
|
|
});
|
|
}
|
|
|
|
function toggleScrollToTop() {
|
|
if ($(window).scrollTop() > $(window).height()) {
|
|
$(".scroll-to-top").addClass("active");
|
|
} else {
|
|
$(".scroll-to-top").removeClass("active");
|
|
}
|
|
}
|