\/div>');i.append(r);setTimeout(function(){r.addClass("show")},50*n)});r+=u}else e.fadeIn(200),t.hide(),$(window).off("scroll")},complete:function(){t.fadeOut(1e3);n=!1},error:function(){t.fadeOut(1e3);n=!1}}))}var r=9,u=6,n=!1,t=$(".loader-container"),e=$(".no-more-images"),i=$("#backToTop");f();$(window).on("scroll",function(){$(window).scrollTop()+$(window).height()>=$(document).height()-500&&f();$(window).scrollTop()>200?i.fadeIn():i.fadeOut()});i.on("click",function(){$("html, body").animate({scrollTop:0},"300")})})