function dateFilter(e){return e<10?"0"+e:e}function getLangDate(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,n=e.getDate(),r=e.getDay(),i=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],o=i[r],s=e.getHours(),l=e.getMinutes(),u=e.getSeconds(),c=s>=12?s>=18?"晚上":"下午":"上午";newDate=dateFilter(t)+"年"+dateFilter(a)+"月"+dateFilter(n)+"日  "+dateFilter(s)+":"+dateFilter(l)+":"+dateFilter(u),document.getElementById("nowTime").innerHTML="亲爱的 <b>"+user+"</b> ，"+c+"好！ 欢迎您使用Amoli私有云，一路陪伴，感恩有你！当前时间为： "+newDate+"　"+o,setTimeout("getLangDate()",1e3)}var user;layui.use(["form","element","layer","jquery"],function(){var e=layui.jquery;e(".panel a").hover(function(){e(this).find(".layui-anim").addClass("layui-anim-scaleSpring")},function(){e(this).find(".layui-anim").removeClass("layui-anim-scaleSpring")}),e(".panel a").click(function(){parent.addTab(e(this))}),e.ajax({url:"../ajax.php?act=systemParameter",type:"get",dataType:"json",success:function(t){var a=t.data;user=a.user,e(".version").text(a.version),e(".php_version").text(a.php_version),e(".server").text(a.server),e(".host").text(a.host),e(".server_software").text(a.server_software),e(".upload_max").text(a.upload_max),e(".root").text(a.root),e(".loginTime").text(a.loginTime),e.ajax({url:"https://www.amoli.co/log/AmoliCloud.php?act=version",dataType:"json",success:function(t){var n=t.version;n!=a.version?(e("#new_version,#new").css("color","#FF5722"),e("#new").text("更新提示"),e("#new_version").text("有新版本可以更新")):e("#new_version").text(n)}})}})});var newDate="";getLangDate();