simulation.html 9.94 KB
<!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>
</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">
            <div class="but">
                <input type="button" onclick="pre_algorithm(hitter_list1, hitter_list2, pitcher1, pitcher2);" class="simulbtr" value="시뮬레이션">
            </div>
            <div class="result">

            </div>
        </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>