function showTables(t){$("#table_weizhi").show(),drawLine("table_weizhi")}function yilouFc(){var t=$("#chartLinediv table"),e="";$(t).each(function(t){"table"==$(this).css("display")&&(e=$(this).attr("id"))});for(var i=$("#"+e+" tbody tr[class='yiloutr']"),s=i.length,a=i.filter(":first").children("td").size(),h=2;h<a;h++)for(var n=0;n<=s;n++){var l=i.eq(n).children("td").eq(h);if("0"==l.attr("title"))break;l.addClass("yiloufc")}}function fengeX(){var t=$("#table_weizhi tbody tr");t.length;t.each(function(t,e){var i=$(this).find("td").length;t>0&&(t+1)%5==0&&$(e).after("<tr class='line_x' style='height:0px'><td class='botmline2' style='height:0px;background-color:#dbdbdb' colspan='"+i+"'></td></tr>")})}function formatDate(t){var e=t.getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var s=t.getDate();return s=s<10?"0"+s:s,e+"-"+i+"-"+s}function tongjiCount(t){var e=$(t),i=e.parent().find(".txtNum").val(),s=e.parent().find(".secType").val(),a=e.parent().parent().find(".ifds").text(),h="";"单双"==a?h=1==s?"单":"双":"大小"==a?h=1==s?"大":"小":"龙虎"==a?h=1==s?"龙":"虎":"前后"==a&&(h=1==s?"前":"后"),e.parent().parent().parent().parent().parent().find(".tablebox").html();var n=0;e.parent().parent().parent().parent().parent().find(".tablebox").children().each(function(t){var e=$(this).find("p").length;$(this).css({"background-color":"",color:"#666666"}),e>=i&&h==$(this).children("p").html()&&($(this).css({"background-color":"rgb(253, 173, 86)",color:"#fff"}),n+=1)}),e.parent().parent().find(".sec_count").text(n)}function doCheck(t,e){var i=$("."+t+"  .item_"+e+" .lz_table_head td .txtNum").val(),s=$("."+t+"  .item_"+e+" .lz_table_head td .secType").val(),a=Number("0"+i),h=0;$("."+t+"  .item_"+e+" .lz_table_con td").each(function(){$(this).removeClass("shaw"),$(this).children("p").html()==s&&$(this).children("p").length>=a&&($(this).removeAttr("style"),$(this).addClass("shaw"),h++)}),$("."+t+"  .item_"+e+" .lz_table_head td .sec_count").html(h),$("."+t+"  .item_"+e+"  .lz_table_head td .count").each(function(){var i=$(this).attr("data"),s=0;$("."+t+"  .item_"+e+" .lz_table_con td p").each(function(){$(this).html()==i&&s++}),$(this).html(s)});var n=0,l=$("."+t+"  .item_"+e+" .lz_table_con td:first-child p:last ");l.css("font-weight","bold");var c=setTimeout(function(){l.fadeOut(100).fadeIn(100),1==++n&&(c=setInterval(arguments.callee,600)),30==n&&window.clearInterval(c)},1e3)}function excutenum(){return Math.floor(10*Math.random())}function excutenum1_6(){return Math.floor(6*Math.random())}function sendj(t){var e=setTimeout("sendj()",100),i="";lilength==t.length-1&&(i="li_after",clearTimeout(e),lilength=0),$("#jnumber").append("<li class='nub"+t[lilength]+" "+i+"'></li>"),lilength++}function excutek(){for(var t=[1,2,3,4,5,6,7,8,9,10],e=0,i=t.length;e<i;e++){var s=Math.floor(Math.random()*t.length);res[e]=t[s],t.splice(s,1)}for(var a=0,i=jnumber.length;a<i;a++)jnumber[a].className="nub"+res[a],a==i-1&&(jnumber[a].style.marginRight="0");time++;var h=setTimeout("excutek()",200);if(time>=25){clearTimeout(h),$("#jnumber").html("");sendj()}}function listData(){var t=void 0==ifChecked().time?"":ifChecked().time,e=void 0==ifChecked().num?"":ifChecked().num,i=void 0==ifChecked().issue?"":ifChecked().issue;$.ajax({url:urlbublic+"CQShiCai/queryCQShiCaiTrendByType.do?type="+e+"&issue="+i+"&date="+t,type:"GET",data:{lotCode:lotCode},success:function(t){createHtmlList(t)},error:function(t){setTimeout(function(){loadotherData()},config.listTime),config.ifdebug}})}function ifChecked(){var t=$(".listheadrl").find("span[class='checked']").attr("id"),e=$("#biaozxz").find("li[class='sinli selected']").find("span").text(),i=null,s=null;return"today"==t?s=getDateStr(0):"yesterday"==t?s=getDateStr(-1):"qianday"==t?s=getDateStr(-2):"thirty"==t?i="30":"sixty"==t?i="50":"ninety"==t&&(i="100"),{num:e,issue:i,time:s}}function parseTonum(t){return 1*t.charAt(0)<=0?t.charAt(1):t}function excuteAnimate(t,e){var e=e,i=(t=t).length,s=0,a=$(e);$(a).html("");var h=setInterval(function(){if(s<i){var e="<li class='nub"+t[s]+"'><i style='font-size:10px'>"+t[s]+"</i></li>";$(a).append(e),s++}else clearInterval(h)},100)}function getSystime(){var t=new Date,e=t.getFullYear(),i=t.getMonth()+1,s=t.getDate();t.getDay(),t.getHours(),t.getMinutes(),t.getSeconds(),document.getElementById("Date");return e+"-"+i+"-"+s}function clearinterval(t){clearInterval(intervalPk10)}function zoushiMethod(t,e){var i=$(e);if(i.removeClass("hoverli"),"all"==t)(lmmssxmc=[]).length>=10||$($("#biaozxz").find(".sinli")).each(function(t){$(this).hasClass("title")||$(this).hasClass("zhcheckall")||$(this).hasClass("zhclear")||(lmmssxmc.push($(this).find("i").text()),$(this).addClass("checked"))}),config.ifdebug;else if("zhclear"==t)$($("#biaozxz").find(".sinli")).each(function(t){$(this).hasClass("checked")&&($(this).removeClass("checked"),lmmssxmc=[])});else if("zhchecksing"==t){var s=i.find("i").text();if(i.hasClass("checked")){i.removeClass("checked");for(var a=0,h=lmmssxmc.length;a<h;a++)lmmssxmc[a]==s&&lmmssxmc.splice(a,1)}else if(i.addClass("hoverli"),i.addClass("checked"),lmmssxmc.length<=0)lmmssxmc.push(s);else{for(var a=0,h=lmmssxmc.length;a<h&&lmmssxmc[a]!=s;a++);lmmssxmc.push(s)}}config.ifdebug,$(lmmssxmc).each(function(t){$("#box"+$(this)+"4").show()}),excuteZhmsSelect(lmmssxmc,["4"])}function excuteZhmsSelect(t,e){$(t).each(function(){"1"==this&&$("#table_ganyah .yilou").find("span").hide()})}function dxmsMethod(){$($("#zhms").find("li")).each(function(t){config.ifdebug})}function lmmsMethod(){$($("#zhms").find("li")).each(function(t){config.ifdebug})}function createHtmlList(t){var e=null;"object"!=(void 0===t?"undefined":_typeof(t))?e=JSON.parse(t):(e=JSON.stringify(t),e=JSON.parse(e));var i=e.result.data;tools.toggleNoTodayOpenTip({data:i,nextCb:forRank,contentClass:"#waitBox",insertClass:".listcontent .box"})}function bgPostionX(t){t.find(".tablebox td").length%2!=0?t.find(".item_con").css({"background-positionX":"0"}):t.find(".item_con").css({"background-positionX":"-29px"})}function forRank(t){var e=ifChecked().num;$("#table_weizhi tbody").empty(),$(t).each(function(){$(this.bodyList).each(function(t){if(t>jsCode.count&&-1!=$.inArray(lotCode,jsCode.code))return!1;var e='<td class="leftth">'+this.issue+"</td>",i=this.code;i=i.split(",");var s="";$(i).each(function(){s+='<span class="kaijnum">'+this+"</span>"}),s="<td>"+s+"</td>";var a="",h=this.array;$(h).each(function(t){a+="<td "+(1*this>=0?"title='0'":"class='rank1 yilou'")+"><span>"+Math.abs(this)+"</td>"});var n="<tr class='yiloutr' height='32'>"+e+s+a+"</tr>";$("#table_weizhi tbody").append(n)});$("#table_weizhi tbody").append('<tr class="firthtd"><th rowspan="2" colspan="2" width="85" height="38" class="left_border left_b left_strong_down">数据统计</th><th colspan="10"width="40"id="qiuhao">第<span class="title1">一</span>球号码走势</th><th colspan="10"width="40"id="qiuhao">第<span class="title2">二</span>球号码走势</th><th colspan="10"width="40"id="qiuhao">第<span class="title3">三</span>球号码走势</th><th colspan="5"width="40">前三形态</th><th colspan="3"width="40">组选类型</th></tr><tr  class="secondtd"><th width="40">0</th><th width="40">1</th><th width="40">2</th><th width="40">3</th><th width="40">4</th><th width="40">5</th><th width="40">6</th><th width="40">7</th><th width="40">8</th><th width="40">9</th><th width="40">0</th><th width="40">1</th><th width="40">2</th><th width="40">3</th><th width="40">4</th><th width="40">5</th><th width="40">6</th><th width="40">7</th><th width="40">8</th><th width="40">9</th><th width="40">0</th><th width="40">1</th><th width="40">2</th><th width="40">3</th><th width="40">4</th><th width="40">5</th><th width="40">6</th><th width="40">7</th><th width="40">8</th><th width="40">9</th><th width="40">豹子</th><th width="40">顺子</th><th width="40">对子</th><th width="40">半顺</th><th width="40">杂六</th><th width="40">组三</th><th width="40">组六</th><th width="40">豹子</th></tr>');var t="<td class='font14' colspan='2'>出现次数</td>",e="<td class='font14' colspan='2'>平均遗漏</td>",i="<td class='font14' colspan='2'>最大遗漏</td>",s="<td class='font14' colspan='2'>最大连出</td>";$(this.missList).each(function(a){0==a?$(this.array).each(function(){t+="<td class='font14'>"+this+"</td>"}):1==a?$(this.array).each(function(){e+="<td class='font14'>"+this+"</td>"}):2==a?$(this.array).each(function(){i+="<td class='font14'>"+Math.abs(this)+"</td>"}):3==a&&$(this.array).each(function(){s+="<td class='font14'>"+this+"</td>"})}),$("#table_weizhi tbody").append("<tr>"+t+"</tr><tr>"+e+"</tr><tr>"+i+"</tr><tr>"+s+"</tr>")}),showTables("1");var i=["一","二","三","四","五"];"1"==e?($("#table_weizhi .title1").text(i[0]),$("#table_weizhi .title2").text(i[1]),$("#table_weizhi .title3").text(i[2])):"2"==e?($("#table_weizhi .title1").text(i[1]),$("#table_weizhi .title2").text(i[2]),$("#table_weizhi .title3").text(i[3])):"3"==e&&($("#table_weizhi .title1").text(i[2]),$("#table_weizhi .title2").text(i[3]),$("#table_weizhi .title3").text(i[4]))}function drawLine(t){$("#chartLinediv canvas").remove(),tablename=t,$("#"+tablename).find("tr").each(function(){$(this).find("td").each(function(t){($(this).hasClass("yilou")||0==$(this).attr("title"))&&(t>=2&&t<=11?$(this).css({background:"#fcf8f3"}):t>=12&&t<=21?$(this).css({background:"#f0f9fc"}):t>=22&&t<=31&&$(this).css({background:"#f0fcf0"})),"0"==$(this).attr("title")&&($(this).index()>=2&&$(this).index()<=11?($(this).attr("class","hot "+$(this).removeClass("grey").attr("class")).find("span").attr("name","hotSpan").text($(this).attr("name")).attr("class","zoushiqiu bBK"),$(this).find("span").css("background",color[0])):$(this).index()>=12&&$(this).index()<=21?($(this).attr("class","hot "+$(this).removeClass("grey").attr("class")).find("span").attr("name","hotSpan").text($(this).attr("name")).attr("class","zoushiqiu gB"),$(this).find("span").css("background",color[1])):$(this).index()>=22&&$(this).index()<=31?($(this).attr("class","hot "+$(this).removeClass("grey").attr("class")).find("span").attr("name","hotSpan").text($(this).attr("name")).attr("class","zoushiqiu oB"),$(this).find("span").css("background",color[2])):$(this).index()>=30&&$(this).index()<=36?($(this).attr("class","hot "+$(this).removeClass("grey").attr("class")).find("span").attr("name","hotSpan").text($(this).attr("name")).attr("class","zoushiqiuf gqB").css({height:"auto","line-height":"20px"}),$(this).find("span").css("background",color[1]),32==$(this).index()?$(this).find("span").text("豹子"):33==$(this).index()?$(this).find("span").text("顺子"):34==$(this).index()?$(this).find("span").text("对子"):35==$(this).index()?$(this).find("span").text("半顺"):36==$(this).index()&&$(this).find("span").text("杂六")):$(this).index()>=37&&$(this).index()<=42&&($(this).attr("class","hot "+$(this).removeClass("grey").attr("class")).find("span").attr("name","hotSpan").text($(this).attr("name")).attr("class","zoushiqiuf gqB").css({height:"auto","line-height":"20px"}),$(this).find("span").css("background",color[6]),37==$(this).index()?$(this).find("span").text("组三"):38==$(this).index()?$(this).find("span").text("组六"):39==$(this).index()&&$(this).find("span").text("豹子")))})}),$("#"+tablename+" tr").eq($("#"+tablename+" tr").length-8).find("td").removeClass("tdbb").addClass("tdbbs").css({height:"auto","line-height":"20px"}),chartOfBaseTrend.ccshaomaxt()}function diyString(t){var e="";return $(t).each(function(){e+="&nbsp;"+this}),e}function loadotherData(){$(".listheadrl span").siblings().removeClass("checked"),$("#thirty").addClass("checked"),listData("","30")}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};$(function(){$("#gotop").click(function(){return $("body,html").animate({scrollTop:0},500),$(this).hide(),!1}),$(document).scroll(function(){$(this).scrollTop()>10?$("#gotop").show():$("#gotop").hide()}),$("#biaozxz .zhclear").live("click",function(){zoushiMethod("zhclear",this)}),$("#biaozxz .zhcheckall").live("click",function(){zoushiMethod("all",this)}),$("#biaozxz li").hover(function(){$(this).hasClass("checked")&&$(this).addClass("hoverli")},function(){$(this).hasClass("hoverli")&&$(this).removeClass("hoverli")}),$(".xuanzhemc .sinli").live("click",function(){$(this).siblings().removeClass("selected"),$(this).addClass("selected");var t=$("#biaozxz .sinli:nth-child(4)"),e=$("#biaozxz .sinli:nth-child(5)");t.hasClass("checked")&&t.removeClass("checked"),e.hasClass("checked")&&e.removeClass("checked"),listData()}),$("#biaozxz .sinli").live("click",function(){$(this).removeClass("hoverli");var t=$(this).find("i").text();"1"==t?$(this).hasClass("checked")?($(this).removeClass("checked"),$(".yilou span").css("display","none")):($(this).addClass("hoverli"),$(this).addClass("checked"),$(".yilou span").css("display","block")):"2"==t?$(this).hasClass("checked")?($(this).removeClass("checked"),$("#chartLinediv canvas").css("display","none")):($(this).addClass("hoverli"),$(this).addClass("checked"),$("#chartLinediv canvas").css("display","block")):"3"==t?$(this).hasClass("checked")?($(this).removeClass("checked"),$("#chartLinediv .yilou").removeClass("yiloufc")):(yilouFc(),$(this).addClass("hoverli"),$(this).addClass("checked")):"4"==t&&($(this).hasClass("checked")?($(this).removeClass("checked"),$("#table_weizhi").find("tr[class='line_x']").remove()):(fengeX(),$(this).addClass("hoverli"),$(this).addClass("checked")),$(".wzzsRightUl").find("li").eq(1).hasClass("sinli checked")&&drawLine("table_weizhi"))});$(".box .btnCheck").live("click",function(){tongjiCount($(this))}),$("#daxiaodsfb").delegate("li","click",function(){}),$("#waringbox").delegate("i","click",function(){$(this).parent().parent().hide("200")}),$("#datebox").calendar({trigger:".date",zIndex:999,format:"yyyy-mm-dd",onSelected:function(t,e,i){var s=(e=formatDate(e)).split("-");checkseletime(s),listData(e),config.ifdebug},onClose:function(t,e,i){config.ifdebug}})});var jnumber=$("#jnumber>li"),res=[],lilength=0,time=0;$(".bothover").hover(function(){$(this).find(".toright").css("background-color","#FFFFFF"),$(".botline").css("border","none"),$(this).find(".childmenu").show()},function(){$(this).find(".toright").css("background-color",""),$(".botline").css("border",""),$(this).find(".childmenu").hide()});var intervalPk10=null,lmmssxmc=[],lmmssxlz=[];