var dataSession;
$(".filter-category li a").click(function(){
var number = $("#menu").outerHeight();
sessionStorage.setItem("category", number);
});
dataSession = sessionStorage.getItem('category');
console.log(dataSession);
if (dataSession > 0) {
$("html, body").stop().animate({
scrollTop: $("#menu").offset().top
}, 500);
}
sessionStorage.removeItem('category');
var scrollMenu = $("#menu").offset();
localStorage.setItem("menuScroll",scrollMenu );
var readyHeight;
$(".filter-category li a").on("click", function(e){
var readyHeight = localStorage.getItem('menuScroll')
});
$("html, body").stop().animate({
scrollTop: $("#menu").offset(readyHeight)
}, 500);
localStorage.removeItem("menuScroll");
owlHeader.on('changed.owl.carousel', function(event) {
var indexHeader = event.item.index;
$('.wrap-slider .header-bg').fadeOut();
$('.wrap-slider .header-bg').eq(indexHeader).fadeIn();
});