日期:2014-05-16 浏览次数:20313 次
// JavaScript Document
$(function(){
var red_one_num = Number($(".red_one").text());
var red_two_num = Number($(".red_two").text());
var red_three_num =Number($(".red_three").text());
var red_four_num = Number($(".red_four").text());
var red_five_num = Number($(".red_five").text());
var red_six_num = Number($(".red_six").text());
var blue_num = Number($(".blue").text());
var red_one_txt = $(".red_one").text();
var red_two_txt = $(".red_two").text();
var red_three_txt = $(".red_three").text();
var red_four_txt = $(".red_four").text();
var red_five_txt = $(".red_five").text()
var red_six_txt = $(".red_six").text();
var blue_txt = $(".blue").text();
//第一组胆:计算red_one+blue的值,
var dan_one_num = red_one_num + blue_num;
if((dan_one_num)>33){
var dan_one_num = (dan_one_num)-33;
}
var dan_one_a = dan_one_num + 1;
var dan_one_b = dan_one_num - 1;
//第二组胆: 红三位拆分的和+蓝球拆分的和
var red_three_a = Number(red_three_txt.charAt(0));//0
var red_three_b = Number(red_three_txt.charAt(1));//8
var blue_a = Number(blue_txt.charAt(0));
var blue_b = Number(blue_txt.charAt(1));
var dan_two_num = red_three_a + red_three_b + blue_a + blue_b;
var dan_two_a = dan_two_num + 1;
var dan_two_b = dan_two_num - 1;
//第三组胆:红二位+蓝球
var dan_three_num = red_one_num + blue_num;
if((dan_three_num)>33){
var dan_three_num = (dan_three_num)-33;
}
var dan_three_a = dan_three_num + 1;
var dan_three_b = dan_three_num - 1;
//第四组胆:红六位-红四位+1
var dan_four_num = red_six_num - red_four_num + 1;
if((dan_four_num)>33){
var dan_four_num = (dan_four_num)-33;
}
var dan_four_a = dan_four_num + 1;
var dan_four_b = dan_four_num - 1;
//第五组胆:红六位-红五位+2
var dan_five_num = red_six_num - red_five_num + 2;
if((dan_five_num)>33){
var dan_five_num = (dan_five_num)-33;
}
var dan_five_a = dan_five_num + 1;
var dan_five_b = dan_five_num - 1;