-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
175 lines (144 loc) · 6.93 KB
/
index.html
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
<html>
<head>
<meta charset="utf-8">
<title>Poker JS</title>
<link href="css/ui-lightness/jquery-ui-1.10.3.custom.min.css" media="screen" rel="stylesheet" type="text/css"/>
<link href="css/core.css" media="screen" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="underscore-min.js"></script>
<script type="text/javascript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript" src="jquery.flip.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.10.3.custom.min.js"></script>
<script type="text/javascript" src="incl.js"></script>
<script type="text/javascript" src="lib/config.js"></script>
<script type="text/javascript" src="lib/poker_starthands.js"></script>
<script type="text/javascript" src="lib/Rank.js"></script>
<script type="text/javascript" src="lib/View.js"></script>
<script type="text/javascript" src="lib/board.js"></script>
<script type="text/javascript" src="lib/deck.js"></script>
<script type="text/javascript" src="lib/game.js"></script>
<script type="text/javascript" src="lib/player.js"></script>
<script type="text/javascript" src="lib/npc.js"></script>
<script type="text/javascript" src="lib/menu.js"></script>
<script type="text/javascript" src="lib/poker_evaluator.js"></script>
<script type="text/javascript" src="lib/main.js"></script>
</head>
<body>
<div id="game_container">
<div id="player">
<h1 id="p_name">Player</h1>
<button style="display:none;"
id="btn_start" onclick="int=self.setInterval(function(){ gameLoop() },1000)">run
</button>
<div class="controls">
Stack: <span id="p_stack"></span> <br>
<button class="ios_btn" id="btn_fold">Fold</button>
<button class="ios_btn" id="btn_call">Call</button>
<button class="ios_btn" id="btn_raise">Raise</button>
<span id="btn_raise_txt"> </span>
<div id="slider-vertical"></div>
</div>
<span style="display:none;">
<div class="slider_tooltip" id="slider_tooltip"> 0</div>
</span>
<div class="cards" id="player_cards">
<span id="p_card1" class="card">
<div class="card_face front"><img src="img/back.png"/></div>
<div class="card_face back"><span><img id="p_card1_img" src=""/> </span></div>
</span>
<span id="p_card2" class="card" style="margin-left: 80px;">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="p_card2_img" src=""/> </span></div>
</span>
</div>
</div>
<div id="npc">
<h1 id="n_name">CPU</h1>
Stack: <span id="n_stack"></span> <br>
<span id="n_action"></span>
<br/>
<div class="cards" id="npc_cards">
<span id="n_card1" class="card">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="n_card1_img" src=""/> </span></div>
</span>
<span id="n_card2" class="card" style="margin-left: 80px;">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="n_card2_img" src=""/> </span></div>
</span>
</div>
</div>
<div id="board">
Pot: <span id="g_pot"></span> - <span id="g_state"> </span> <br>
<div class="cards" id="board_cards">
<span id="b_card1" class="card">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="b_card1_img" src=""/> </span></div>
</span>
<span id="b_card2" class="card" style="margin-left: 80px;">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="b_card2_img" src=""/> </span></div>
</span>
<span id="b_card3" class="card" style="margin-left: 160px;">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="b_card3_img" src=""/> </span></div>
</span>
<span id="b_card4" class="card" style="margin-left: 240px;">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="b_card4_img" src=""/> </span></div>
</span>
<span id="b_card5" class="card" style="margin-left: 320px;">
<div class="front"><img src="img/back.png"/></div>
<div class="back"><span><img id="b_card5_img" src=""/> </span></div>
</span>
</div>
</div>
<div id="menu">
<div id="menu_content">
<h2>PokerJS</h2>
<div class="menu_page menu_page1" id="init">
<fieldset>
<label for="name">Name </label>
<input id="player_name_input" type="text" placeholder="Please enter your name">
</fieldset>
<fieldset>
<label for="name">Blinds </label>
<select id="small_blind_select">
<option value="10">20/10</option>
<option value="20">40/20</option>
<option value="40">80/40</option>
<option value="80">160/80</option>
</select>
<label for="name">Stack </label>
<select id="stack_select">
<option value="100">100</option>
<option value="1000">1000</option>
<option value="2000">2000</option>
</select>
</fieldset>
<br>
<button class="ios_btn" id="m_start" disabled="disabled">Start</button>
</div>
<div class="menu_page menu_page2" id="winner" style="display: none;">
<span id="winner_win">You win! </span>
<span id="winner_loose" style="display: none;">You loose.</span> <br><br>
<span id="menu_winner_name"></span> wins <span id="menu_winner_pot"></span> <span
id="menu_winner_hand"></span> <br>
Blinds: <span id="menu_winner_blinds"></span>
<button class="ios_btn" id="m_close">OK</button>
</div>
<div class="menu_page menu_page3" id="gameover" style="display: none;">
Game Over:
<span id="gameover_win">You win! </span>
<span id="gameover_loose">You loose.</span>
<button class="ios_btn" id="m_close">Play again</button>
</div>
</div>
<div id="menu_overlay">
</div>
</div>
</div>
<script>
</script>
</body>
</html>