(function($){
'use strict';
$("#nav ul li a[href*='#']").click(function(){
if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')
|| location.hostname==this.hostname){
var target=$(this.hash);
target=target.length ? target:$('[name=' + this.hash.slice(1) +']');
if(target.length){
$('html,body').animate({
scrollTop: target.offset().top - 56
}, 1000);
return false;
}}
});
$(".navbar-nav li a").click(function(event){
$(".navbar-collapse").collapse('hide');
});
$('.html-popup').magnificPopup({type: 'ajax', closeOnContentClick: false, closeBtnInside: true, closeOnBgClick: false});
$('.image-popup').magnificPopup({
type:'image',
gallery: {
enabled: true,
navigateByImgClick: true,
preload: [0,1]
},
});
$('.faqs dd').hide();
$('.faqs dt').on({
click:function(){ $(this).next().slideToggle('normal'); },
mouseenter:function(){ $(this).addClass('hover'); },
mouseleave:function(){ $(this).removeClass('hover'); }});
var owl=$("#testimonial-carousel");
owl.owlCarousel({
navigation:true,
autoPlay:true,
autoPlaySpeed: 5000,
autoPlayTimeout: 5000,
slideSpeed:300,
paginationSpeed:400,
itemsCustom:[
[0, 1],
[450, 1],
[767, 1],
[768, 2],
[1199, 2],
[1200, 3],
]
});
$('.number').counterUp({
delay: 10,
time: 3000
});
document.addEventListener("touchstart", function(){}, true);
}(jQuery));
(function($){
'use strict';
$(window).load(function(){
jQuery(window).stellar({
horizontalScrolling: false
});
$("#nav-primary").sticky({ topSpacing: 0, });
$('#preload').delay(350).fadeOut('slow');
$("#contentz").mCustomScrollbar({
theme: "dark-3",
live: "on",
});
});
}(jQuery));