Team:SSTi-SZGD/js/header

/*Lazy loading*/ $(function(){

var winHeight=$(window).outerHeight(); var footerTop=$(".footer_box").offset().top-$(window).scrollTop();

if(footerTop<winHeight-100){ setTimeout(function(){ $(".footer").addClass("a-fadeinB"); $(".footer").css("display","block"); },150); }

$(window).scroll(function(){

winHeight=$(window).outerHeight(); footerTop=$(".footer_box").offset().top-$(window).scrollTop();

if(footerTop<winHeight-100){ setTimeout(function(){ $(".footer").addClass("a-fadeinB"); $(".footer").css("display","block"); },150); }

});

});