/*! * artTemplate - Template Engine * https://github.com/aui/artTemplate * Released under the MIT, BSD, and GPL Licenses * Email: 1987.tangbin@gmail.com */ var template=function(b,a){return template[typeof a==="object"?"render":"compile"].apply(template,arguments);};(function(f,c){f.version="1.0";f.openTag="<%";f.closeTag="%>";f.parser=null;f.render=function(n,m){var l=h(n);if(l===undefined){return e({id:n,name:"Render Error",message:"Not Cache"});}return l(m);};f.compile=function(q,o){var m=arguments[2];if(typeof o!=="string"){m=o;o=q;q=null;}try{var l=j(o,m);}catch(p){p.id=q||o;p.name="Syntax Error";return e(p);}function n(r){try{return l.call(b,r);}catch(s){if(!m){return f.compile(q,o,true)(r);}s.id=q||o;s.name="Render Error";s.source=o;return e(s);}}n.toString=function(){return l.toString();};if(q){d[q]=n;}return n;};f.helper=function(l,m){if(m===undefined){return b[l];}else{b[l]=m;}};var d={};var b={};var i="".trim;var k=i&&!c.document;var j=function(z,x){var w=f.openTag;var r=f.closeTag;var p=f.parser;var m=z;var o="";var t=1;var s={};var y={$out:true,$line:true};var q="var $helpers=this,"+(x?"$line=0,":"");var C=i?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"];var l="function(id,data){if(data===undefined){data=$data}return $helpers.$render(id,data)}";g.call(m.split(w),function(G,F){G=G.split(r);var E=G[0];var D=G[1];if(G.length===1){o+=u(E);}else{o+=A(E);if(D){o+=u(D);}}});m=o;if(x){m="try{"+m+"}catch(e){e.line=$line;throw e}";}m=q+C[0]+m+"return "+C[3];try{return new Function("$data",m);}catch(B){B.temp="function anonymous($data) {"+m+"}";throw B;}function u(D){t+=D.split(/\n/).length-1;D=D.replace(/('|"|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n");D=C[1]+"'"+D+"'"+C[2];return D+"\n";}function A(D){var E=t;if(p){D=p(D);}else{if(x){D=D.replace(/\n/g,function(){t++;return"$line="+t+";";});}}if(D.indexOf("=")===0){D=C[1]+(i?"$getValue(":"")+D.substring(1).replace(/[\s;]*$/,"")+(i?")":"")+C[2];}if(x){D="$line="+E+";"+D;}v(D);return D+"\n";}function v(D){D=D.replace(/\/\*.*?\*\/|'[^']*'|"[^"]*"|\.[\$\w]+/g,"");g.call(D.split(/[^\$\w\d]+/),function(E){if(/^(this|\$helpers)$/.test(E)){throw {message:'Prohibit the use of the "'+E+'"'};}if(!E||a[E]||/^\d/.test(E)){return;}if(!y[E]){n(E);y[E]=true;}});}function n(D){var E;if(D==="include"){E=l;}else{if(b[D]){E="$helpers."+D;}else{E="$data."+D;}}q+=D+"="+E+",";}};var h=function(n){var l=d[n];if(l===undefined&&!k){var m=document.getElementById(n);if(m){f.compile(n,m.value||m.innerHTML);}return d[n];}return l;};var e=function(n){var m="[template]:\n"+n.id+"\n\n[name]:\n"+n.name;if(n.message){m+="\n\n[message]:\n"+n.message;}if(n.line){m+="\n\n[line]:\n"+n.line;m+="\n\n[source]:\n"+n.source.split(/\n/)[n.line-1].replace(/^[\s\t]+/,"");}if(n.temp){m+="\n\n[temp]:\n"+n.temp;}if(c.console){console.error(m);}function l(){return l+"";}l.toString=function(){return"{Template Error}";};return l;};var g=Array.prototype.forEach||function(o,m){var l=this.length>>>0;for(var n=0;n3){if((a-this._loadNum)>=3){tempArray=this._loadData.slice(this._loadNum,(this._loadNum+3));this._loadNum=this._loadNum+3;}else{tempArray=this._loadData.slice(this._loadNum);tempArray=tempArray.concat(this._loadData.slice(0,(this._loadNum+3-a)));this._loadNum=this._loadNum+3-a;}}else{tempArray=this._loadData;}this.loadHtml(tempArray);this.blindClick();},blindClick:function(){var a=this;$("#recGame li .num").click(function(){var b=$(".num-info",$(this).parent().parent().parent());if(b.css("display")=="block"){b.css("display","none");}else{b.css("display","block");}});$("#gameLink").click(function(){a._Isshow=0;a.storageData();});},loadHtml:function(g){var d=[],c=0,f="",a,e,h;if(g.length===0){}else{if(this._loadData.length>3){a="ltit-act";}else{a="ltit-act none";}d.push('

大家都在玩

');d.push('
更多>>
');}$("#recGame").html(d.join(""));}};window.RecGame.noGame=function(){if($("#nogameList").length<=0){return;}$.getJSON($WYX.baseUrl+"game/ajaxRecommend4NoGameUser",{},function(b){if(b&&b.errorCode===0){$("#nogameList").empty();for(var a=0;a