function setTimer(){var u=new Date,n=new Array(7);n[0]="Chủ nhật";n[1]="Thứ hai";n[2]="Thứ ba";n[3]="Thứ tư";n[4]="Thứ năm";n[5]="Thứ sáu";n[6]="Thứ bảy";var f=n[u.getDay()],t=new Date,e=t.getDate(),o=t.getMonth()+1,i=t.getHours(),r=t.getMinutes();return f+", "+e+"/"+o+"/"+t.getFullYear()+", "+(i>=10?i:"0"+i)+":"+(r>=10?r:"0"+r)+" (GMT+7)"}var vrCache=document.querySelector("body").getAttribute("data-cachemenu"),vr="",elementPosition,pickerTime,goTop;try{vr=localStorage.getItem("vszc")}catch(e){}elementPosition=function(n){var t=$(n),i=t.offset();return{top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),left:i.left,height:parseFloat(getComputedStyle(t.get(0),null).height.replace("px",""))}};pickerTime=qs(".picker-time");setInterval(function(){pickerTime.innerHTML=setTimer()},1e3);goTop=qs(".gotop");setTimeout(function(){window.pageYOffset>0&&(goTop.style.display="block");goTop.addEventListener("click",function(){window.scrollTo(0,0)});document.addEventListener("scroll",()=>{goTop.style.display=window.pageYOffset>0?"block":"none"},{passive:!0})});const body=document.body;source={init:function(){source.bindEventScroll()},bindEventScroll:function(){var u=$("#footer");u.hide();var e=0,n=$("div.view-more"),o=0,t=n.find("a").attr("href"),s=$("section.list-allnews"),i=[],r=[],h=$("div.ads-item[data-type='rebuild']"),f=!1;$(window).on("scroll",function(){n.length>0?(o=n.offset().top-this.Number($(window).scrollTop())-$(window).height(),this.Number($(window).scrollTop())>e&&o<=100&&(f||t==this.undefined||(f=!0,$.get(t,function(e){i=$(e).find("article");r=$(e).find("div.ads-item[data-type='rebuild']");for(var o=0;o<r.length;o++)$("div.ads-item[data-type='rebuild'][data-zone='"+r.eq(o).attr("data-zone")+"']").html(r.eq(o).html());t=$(e).find("div.view-more a").attr("href");n.find("a").attr("href",t);s.append(i);s.append(n);aLazyLoad.update();$(e).find("div.view-more a").length>0&&i.length>0||(n.remove(),u.show());i=[];f=!1})))):u.show();e=$(window).scrollTop()})}};$(function(){source.init()})