// scroll
jQuery(document).ready(function () {
jQuery(window).scroll(function () {
if (jQuery(this).scrollTop() > 100) {
jQuery('.scrollup').fadeIn();
} else {
jQuery('.scrollup').fadeOut();
}
});
jQuery('.scrollup').click(function () {
jQuery("html, body").animate({
scrollTop: 0
}, 600);
return false;
});
jQuery('.search-show').click(function(){
jQuery('.searchform-inner').css('visibility','visible');
});
jQuery('.close').click(function(){
jQuery('.searchform-inner').css('visibility','hidden');
});
});
// preloader
jQuery(function($){
setTimeout(function(){
$("#pre-loader").delay(1000).fadeOut("slow");
});
});
// sticky header
(function( $ ) {
$(window).scroll(function(){
var sticky = $('.sticky-header'),
scroll = $(window).scrollTop();
if (scroll >= 100) sticky.addClass('fixed-header');
else sticky.removeClass('fixed-header');
});
})( jQuery );
jQuery(document).ready(function() {
var owl = jQuery('#donate-section .owl-carousel');
owl.owlCarousel({
nav: true,
autoplay:false,
autoplayTimeout:2000,
autoplayHoverPause:true,
loop: true,
navText : ['',''],
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1000: {
items: 3
}
}
})
});