정주희

complete(except introduction)

This diff is collapsed. Click to expand it.
...@@ -138,7 +138,7 @@ body{ ...@@ -138,7 +138,7 @@ body{
138 border-radius:5px; 138 border-radius:5px;
139 } 139 }
140 .tb{ 140 .tb{
141 - padding: 10px 0px 0px 135px; 141 + padding: 10px 0px 0px 90px;
142 } 142 }
143 table{ 143 table{
144 border: 1px solid #444444; 144 border: 1px solid #444444;
......
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 -function pre_algorithm(){//algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2) => html에서 가지고와야 한다. 1 +function pre_algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2){//algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2) => html에서 가지고와야 한다.
2 var base1 = 0; var base2 = 0; var base3 = 0; //1이면 주자 있고 0이면 비어있는것 2 var base1 = 0; var base2 = 0; var base3 = 0; //1이면 주자 있고 0이면 비어있는것
3 var out = 0; var ining = 1; var home_away = 1;//아웃카운트, 이닝, home이면 1이고 away이면 2. 3 var out = 0; var ining = 1; var home_away = 1;//아웃카운트, 이닝, home이면 1이고 away이면 2.
4 var score1 = 0; var score2 = 0; 4 var score1 = 0; var score2 = 0;
...@@ -26,13 +26,13 @@ function pre_algorithm(){//algorithm(hitter_list1, hitter_list2, pitcher1, pitch ...@@ -26,13 +26,13 @@ function pre_algorithm(){//algorithm(hitter_list1, hitter_list2, pitcher1, pitch
26 } 26 }
27 27
28 if(home_away == 1){ 28 if(home_away == 1){
29 - var hitter = kia_hitter[hitter_num1]; //hitter = hitter_list1[hitter_number1%9] 29 + var hitter = hitter_list1[hitter_num1]; //hitter = hitter_list1[hitter_number1%9]
30 - var pitcher = dusan_pitcher[1]; //pitcher = pitcher1 30 + var pitcher = pitcher2; //pitcher = pitcher1
31 document.getElementById('jstest').innerHTML+=(ining+ "회 초"+ "<br\><br\>"); 31 document.getElementById('jstest').innerHTML+=(ining+ "회 초"+ "<br\><br\>");
32 } 32 }
33 else if(home_away == 2){ 33 else if(home_away == 2){
34 - var hitter = dusan_hitter[hitter_num2]; //hitter = hitter_list2[hitter_number2%9] 34 + var hitter = hitter_list2[hitter_num2]; //hitter = hitter_list2[hitter_number2%9]
35 - var pitcher = kia_pitcher[1]; //pitcher = pitcher2 35 + var pitcher = pitcher1; //pitcher = pitcher2
36 document.getElementById('jstest').innerHTML+=(ining+ "회 말"+ "<br\><br\>"); 36 document.getElementById('jstest').innerHTML+=(ining+ "회 말"+ "<br\><br\>");
37 } 37 }
38 38
......