(function($) {
"use strict";
//------------------------------------------
//slider
//------------------------------------------
jQuery(document).ready(function() {
jQuery("#bizwhoop-slider").owlCarousel({
navigation : true, // Show next and prev buttons
slideSpeed : 1000,
pagination : true,
paginationSpeed : 400,
singleItem:true,
video:true,
autoPlay : true,
transitionStyle : "fade",
navigationText: [
"",
""
]
});
/* =================================
=== FORM-CONTROL ====
=================================== */
jQuery(".form-control")
.focusout(function() {
if ($(this).val()=="")
$(this).removeClass("input-filled");
})
.focusin(function() {
$(this).addClass("input-filled");
})
});
/* =================================
=== SCROLL TOP ====
=================================== */
jQuery(".ta_upscr").hide();
function taupr() {
jQuery(window).on('scroll', function() {
if ($(this).scrollTop() > 500) {
$('.ta_upscr').fadeIn();
} else {
$('.ta_upscr').fadeOut();
}
});
$('a.ta_upscr').on('click', function() {
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
}
taupr();
// /* =================================
// === STICKY HEADER ====
// =================================== */
jQuery(document).ready(function() {
jQuery(".header-sticky").sticky({ topSpacing: 0 });
});
})(jQuery);