XiaojiangLi (Talk | contribs) |
XiaojiangLi (Talk | contribs) |
||
Line 9,145: | Line 9,145: | ||
</div> | </div> | ||
− | <p style="z-index: 999;"><a class="btn btn-default" role="button" id="butt">next »</a></p> | + | <p class="botonn" style="z-index: 999;"><a class="btn btn-default" role="button" id="butt">next »</a></p> |
</div> | </div> | ||
</div> | </div> | ||
Line 9,157: | Line 9,157: | ||
var mycars = new Array(); | var mycars = new Array(); | ||
var shu = Math.floor(Math.random()*440+1); | var shu = Math.floor(Math.random()*440+1); | ||
+ | var x = 0; | ||
+ | for(x;x>=0;shu = Math.floor(Math.random()*440+1)){ | ||
+ | x=$.inArray(shu,mycars); | ||
+ | } | ||
if(shu==1){ | if(shu==1){ | ||
$(".chose1").removeClass("display").addClass("marrk"); | $(".chose1").removeClass("display").addClass("marrk"); | ||
Line 10,929: | Line 10,933: | ||
}else if($('input:checked')){ | }else if($('input:checked')){ | ||
$('input:checked').attr('checked',false); | $('input:checked').attr('checked',false); | ||
+ | mycars[i]=0; | ||
mycaa[m]=-10; | mycaa[m]=-10; | ||
n = n + mycaa[m]; | n = n + mycaa[m]; | ||
Line 10,941: | Line 10,946: | ||
}else{} | }else{} | ||
$('#bottomdd h2 span').replaceWith('<span>'+n+'</span>'); | $('#bottomdd h2 span').replaceWith('<span>'+n+'</span>'); | ||
+ | if(n>=100){ | ||
+ | n=100; | ||
+ | $('.botonn').addClass('display'); | ||
+ | }else{} | ||
}); | }); | ||
document.getElementById("butt").click(); | document.getElementById("butt").click(); |
Revision as of 10:54, 31 October 2017