simulation.html
10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!DOCTYPE html>
<html>
<head>
<title> Simulation </title>
<link rel="stylesheet" type="text/css"href="simulation.css">
<script src = "player.js"></script>
<script src = "temp_algorithm.js"></script>
<script src = "simulation.js"></script>
<script src = "predict.js"></script>
</head>
<body>
<div class="container1">
<span class="logo">Welcome to Baseball Simulator</span>
</div>
<nav id="menu">
<ul>
<li>
<a class="me" href="main.html">Home</a>
</li>
<li>
<a class="me" href="introduction.html">Introduction</a>
</li>
<li>
<a class="me" href="calendar.html">Calendar</a>
</li>
<li>
<a class="me" href="simulation.html">Simulation</a>
</li>
</ul>
</nav>
<div class="container2">
<div class="a">
<p class="team">원정팀</p>
</div>
<div class="selection">
<div class="row row1">
<button type="submit" onclick="imgchange1(1); w(1);" class="t1">삼성</button>
<button type="submit" onclick="imgchange1(2); w(2);" class="t1">NC</button>
<button type="submit" onclick="imgchange1(3); w(3);" class="t1">LG</button>
<button type="submit" onclick="imgchange1(4); w(4);" class="t1">KT</button>
<button type="submit" onclick="imgchange1(5); w(5);" class="t1">SSG</button>
</div>
<div class="row row2">
<button type="submit" onclick="imgchange1(6); w(6);" class="t1">두산</button>
<button type="submit" onclick="imgchange1(7); w(7);" class="t1">키움</button>
<button type="submit" onclick="imgchange1(8); w(8);" class="t1">KIA</button>
<button type="submit" onclick="imgchange1(9); w(9);" class="t1">한화</button>
<button type="submit" onclick="imgchange1(10); w(10);" class="t1">롯데</button>
</div>
</div>
<div class="tb">
<table>
<tbody>
<tr>
<td>1번 타자</td>
<td><select name="won" id="won1" onclick="hitter1list_append(1,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>2번 타자</td>
<td><select name="won" id="won2" onclick="hitter1list_append(2,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>3번 타자</td>
<td><select name="won" id="won3" onclick="hitter1list_append(3,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>4번 타자</td>
<td><select name="won" id="won4" onclick="hitter1list_append(4,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>5번 타자</td>
<td><select name="won" id="won5" onclick="hitter1list_append(5,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>6번 타자</td>
<td><select name="won" id="won6" onclick="hitter1list_append(6,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>7번 타자</td>
<td><select name="won" id="won7" onclick="hitter1list_append(7,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>8번 타자</td>
<td><select name="won" id="won8" onclick="hitter1list_append(8,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>9번 타자</td>
<td><select name="won" id="won9" onclick="hitter1list_append(9,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>선발 투수</td>
<td><select name="won" id="won" onclick="pitcher1list_append(this.value);">
<option value="">선택</option>
</select></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="container3">
<div class="l">
<img src="pngs/kia.png" id="wonjung" class="vs" style="margin:0px 0px 0px 50px;">
</div>
<div class="l">
<p id="vss">VS</p>
</div>
<div class="l">
<img src="pngs/dusan.png" id="home" class="vs">
</div>
<div class="simul">
<input type="button" onclick="pre_algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2);" class="simulbtr" value="시뮬레이션">
<input type="button" onclick="add_predict();" class="simulbtr" value="승률예측">
</div>
<div id="select_list">
<select name="pr" id="pr" onclick="predict(this.value, hitter_list1, hitter_list2, pitcher1, pitcher2);"></select>
</div>
<div id="jstest"></div>
</div>
<div class="container4">
<div class="a">
<p class="team">홈팀</p>
</div>
<div class="selection">
<div class="row row1">
<button type="submit" onclick="imgchange2(1);" class="t2">삼성</button>
<button type="submit" onclick="imgchange2(2);" class="t2">NC</button>
<button type="submit" onclick="imgchange2(3);" class="t2">LG</button>
<button type="submit" onclick="imgchange2(4);" class="t2">KT</button>
<button type="submit" onclick="imgchange2(5);" class="t2">SSG</button>
</div>
<div class="row row2">
<button type="submit" onclick="imgchange2(6);" class="t2">두산</button>
<button type="submit" onclick="imgchange2(7);" class="t2">키움</button>
<button type="submit" onclick="imgchange2(8);" class="t2">KIA</button>
<button type="submit" onclick="imgchange2(9);" class="t2">한화</button>
<button type="submit" onclick="imgchange2(10);" class="t2">롯데</button>
</div>
</div>
<div class="tb">
<table>
<tbody>
<tr>
<td>1번 타자</td>
<td><select name="hom" id="hom1" onclick="hitter2list_append(1,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>2번 타자</td>
<td><select name="hom" id="hom2" onclick="hitter2list_append(2,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>3번 타자</td>
<td><select name="hom" id="hom3" onclick="hitter2list_append(3,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>4번 타자</td>
<td><select name="hom" id="hom4" onclick="hitter2list_append(4,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>5번 타자</td>
<td><select name="hom" id="hom5" onclick="hitter2list_append(5,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>6번 타자</td>
<td><select name="hom" id="hom6" onclick="hitter2list_append(6,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>7번 타자</td>
<td><select name="hom" id="hom7" onclick="hitter2list_append(7,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>8번 타자</td>
<td><select name="hom" id="hom8" onclick="hitter2list_append(8,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>9번 타자</td>
<td><select name="hom" id="hom9" onclick="hitter2list_append(9,this.value);">
<option value="">선택</option>
</select></td>
</tr>
<tr>
<td>선발 투수</td>
<td><select name="hom" id="hom" onclick="pitcher2list_append(this.value);">
<option value="">선택</option>
</select></td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>