Skip to content
Snippets Groups Projects
Select Git revision
11 results Searching

index.html

Blame
  • index.html 3.32 KiB
    <html>
        <head>
            <script type="text/javascript" src="game-logic.js"></script>
        </head>
        <body onload="addEventsListeners()" style="background-color: green; color:white; font-family:Arial, Helvetica, sans-serif;">
            <table border="1" width="50%" align="center">
                <tr>
                    <td colspan="2">
                        <button id="button-run">Start a new game</button>
                    </td>
                </tr>
                <tr>
                    <td>Player's wallet</td>
                    <td id="player-wallet">&nbsp;</td>
                </tr>
                <tr>
                    <td>Current bet</td>
                    <td id="player-bet"><input id="player-bet-input" type="text" disabled /><button id="player-bet-button" disabled>Confirm your bet</button></td>
                </tr>
                <tr>
                    <td colspan="2">Player's cards:</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table id="player-cards" border="1" width="700px" height="110px">
                            <tr>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td width="130px">Player's score:</td>
                    <td id="player-score">&nbsp;</td>
                </tr>
                <tr>
                    <td id="console-log" colspan="2" height="50px" align="center">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="100px" align="center">
                        <button id="button-stay" style="width: 100px;" disabled >Stay</button>
                        <button id="button-hit" style="width: 100px;" disabled >Hit</button>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">Dealer's cards:</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <table id="dealer-cards" border="1" width="700px" height="110px">
                            <tr>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>
                                <td width="10%">&nbsp;</td>