function updatestatus(){$("#grid .tipstricks__grid").length;$("#loader").text("Scroll to load more")}function getdatagrid(){var t=document.getElementsByClassName("tipstricks");t.length>0&&$.get($("#load_more_url").val()+"?page="+PAGE+"&returnhtml=1","",function(t){0==$(t).length?(STOP_LOAD_MORE=1,$("#loader").text("")):($(t).each(function(t,e){$(e).is("li")&&($("#grid").append(e),pckry.addItems(e),pckry.layout())}),$(".tipstricks__grid").addClass("animate"),ON_GOING=0,PAGE++)})}function init(){$(window).scroll(function(){var t=$(".footer__socmed").height()+$(".footer__menu").height()+$(".footer__copyright").height();$(window).scrollTop()+$(window).height()==$(document).height();$(window).scrollTop()+($(window).height()+t)>=$(document).height()&&0==ON_GOING&&0==STOP_LOAD_MORE&&(ON_GOING=1,$("#loader").text(DEFAULT_LOADING_MORE),getdatagrid())})}var ON_GOING=0,PAGE=2,STOP_LOAD_MORE=0,pckry;$(document).ready(function(){var t=document.querySelector("#grid");pckry=new Packery(t,{itemSelector:".grid",transitionDuration:0}),init()});