-
Notifications
You must be signed in to change notification settings - Fork 0
/
tools.html
380 lines (342 loc) · 18.2 KB
/
tools.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
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header class="header">
<a href="index.html" class="header-logo-link">
<img src="images/logo.png" alt="logo" class="header-logo">
</a>
<h1 class="header-title">POKERSTARTERS.COM</h1>
<div class="header-icons">
<a href="https://www.facebook.com" class="header-icon-link">
<img src="images/icons/facebook-app-symbol.png" alt="Facebook" class="header-icon">
</a>
<a href="https://www.youtube.com/watch?v=CpSewSHZhmo" class="header-icon-link">
<img src="images/icons/youtube.png" alt="YouTube" class="header-icon">
</a>
<a href="contact.html" class="header-icon-link">
<img src="images/icons/mail.png" alt="Mail" class="header-icon">
</a>
</div>
</header>
<!-- Nav bar -->
<nav class="nav">
<div class="dropdown">
<a href="rules.html" class="nav-item">Rules ▼</a>
<div class="dropdown-content">
<a href="rules.html">Basics</a>
<a href="rules.html">Hand Ranking</a>
<a href="rules.html">Betting Structure</a>
<a href="rules.html">Betting Table</a>
<a href="rules.html">Table Etiquette</a>
<a href="rules.html">Glossary</a>
</div>
</div>
<div class="dropdown">
<a href="variants.html" class="nav-item">Variants ▼</a>
<div class="dropdown-content">
<a href="variants.html">Texas Hold'em</a>
<a href="variants.html">Omaha</a>
<a href="variants.html">Seven-Card Stud</a>
<a href="variants.html">Razz</a>
<a href="variants.html">Other Variants</a>
</div>
</div>
<div class="dropdown">
<a href="strategies.html" class="nav-item">Strategies ▼</a>
<div class="dropdown-content">
<a href="strategies.html">Basic </a>
<a href="strategies.html">Intermediate </a>
<a href="strategies.html">Advanced </a>
</div>
</div>
<div class="dropdown" style="background-color: rgb(170, 169, 169);">
<a href="tools.html" class="nav-item">Tools ▼</a>
<div class="dropdown-content">
<a href="tools.html">Play</a>
<a href="tools.html">Hand Evaluator</a>
</div>
</div>
<div class="dropdown">
<a href="contact.html" class="nav-item">Contact ▼</a>
<div class="dropdown-content">
<a href="contact.html">About Me</a>
<a href="contact.html">Contact Me</a>
</div>
</div>
</nav>
<!-- Play widget -->
<!-- This is set out in rows and columns. -->
<div class="play-poker" style="justify-content: center;">
<div class="grid" >
<div id= 'popup-play-winner' class="popup-play"></div>
<div id= 'popup-play' class="popup-play" style="display:flex; flex-direction: column;">
<h1 id="popup-play-title">Play Poker</h1>
<div class="spacer"></div>
<button id="start-game-button" type="button" class="button" >Start Game</button>
</div>
<!-- Row 1 -->
<div class="row">
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "P1-card-1" class="cell"></div>
<div id = "P1-card-2" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "P2-card-1" class="cell"></div>
<div id = "P2-card-2" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
</div>
<!-- Row 2 -->
<div class="row">
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell">
<div id = "P1-dial" class="speech right fade-in">
</div>
</div>
<div id = "P1-char" class="cell char"></div>
<div id = "P1-$" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell">
<div id = "P2-dial" class="speech right fade-in">
</div>
</div>
<div id = "P2-char" class="cell char"></div>
<div id = "P2-$" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
</div>
<!-- Row 3 -->
<div class="row">
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
<div id = "dealer-1" class="cell board " style=" border-top: 5px solid #654321; border-left: 5px solid #654321; border-top-left-radius: 10px;"></div>
<div id = "blank" class="cell board" style=" border-top: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-top: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-top: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-top: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-top: 5px solid #654321;"></div>
<div id = "dealer-2" class="cell board " style=" border-top: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-top: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-top: 5px solid #654321; border-right: 5px solid #654321; border-top-right-radius: 10px;"></div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell"></div>
</div>
<!-- Row 4 -->
<div class="row">
<div id = "P4-card-1" class="cell"></div>
<div id ="P4-card-2" class="cell"></div>
<div id = "dealer-5" class="cell board" style=" border-left: 5px solid #654321;"></div>
<div id = "deck" class="cell board"></div>
<div id= "blank" class="cell board"></div>
<div id= 'community-card-1' class="cell board"></div>
<div id= 'community-card-2' class="cell board"></div>
<div id= 'community-card-3' class="cell board"></div>
<div id= 'community-card-4' class="cell board"></div>
<div id= 'community-card-5' class="cell board"></div>
<div id= "dealer-3" class="cell board" style="border-right: 5px solid #654321;"></div>
<div id = "P3-card-1" class="cell"></div>
<div id = "P3-card-2" class="cell"></div>
</div>
<!-- Row 5 -->
<div class="row">
<div id = "P4-char" class="cell char"></div>
<div id = "P4-$" class="cell"></div>
<div id = "blank" class="cell board" style="border-left: 5px solid #654321;"></div>
<div id = "pot-$" class="cell board"></div>
<div id = "pot-$-s" class="cell board"></div>
<div id = "blank" class="cell board"></div>
<div id = "winner" class="cell board"></div>
<div id = "blank" class="cell board"></div>
<div id = "blank" class="cell board"></div>
<div id = "blank" class="cell board"></div>
<div id = "blank" class="cell board" style=" border-right: 5px solid #654321;"></div>
<div id = "P3-char" class="cell char"></div>
<div id = "P3-$" class="cell"></div>
</div>
<!-- Row 6 -->
<div class="row">
<div id = "blank" class="cell">
<div id = "P4-dial" class="speech top fade-in"></div>
</div>
<div id = "blank" class="cell"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;border-left: 5px solid #654321; border-bottom-left-radius: 10px;"></div>
<div id = "dealer-4" class="cell board" style="border-bottom:5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;"></div>
<div id = "blank" class="cell board" style=" border-bottom: 5px solid #654321;border-right: 5px solid #654321; border-bottom-right-radius: 10px;"></div>
<div id = "blank" class="cell">
<div id = "P3-dial" class="speech top fade-in">
</div>
</div>
<div id = "blank" class="cell"></div>
</div>
<!-- Row 7 -->
<div class="row">
<div id = "blank" class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div id="me-card-1" class="cell"></div>
<div id = "me-card-2" class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div id = "fold" class="cell">
<button id="fold-button" type="button" class="button">Fold</button>
</div>
<div id="check" class="cell">
<button id="check-button" type="button" class="button">Check</button>
</div>
<div id="raise" class="cell">
<button id="raise-button" type="button" class="button">Raise</button>
</div>
<div class="cell">
<input type="range" id="amount" name="amount" min="0" max="100" step="1" style="-webkit-appearance: slider-vertical; z-index: 100;">
</div>
<div id = "amount-to-raise" class="cell"></div>
<div id = "confirm-raise" class="cell">
<button id="confirm-raise-button" type="button" class="button">Confirm Raise</button>
</div>
</div>
<!-- Row 8 -->
<div class="row">
<div id = "blank" class="cell"></div>
<div class="cell"></div>
<div class="cell">
<div id = "me-dial" class="speech right fade-in">
</div>
</div>
<div id="me-char" class="cell char"></div>
<div id="me-$" class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div class="cell"></div>
<div id="start-game" class="cell">
</div>
<div class="cell"></div>
</div>
</div>
<script type="module" src="js/play_poker.js"></script>
</div>
<div class="card-selector">
<div class="card-images">
<h1>Heads Up - Hand Evaluator</h1>
<p style="padding-bottom: 20px;">Enter your cards and the community cards to see the odds of you winning after 100,000 simulated hands.</p>
<div class="card-row">
<img src="images/cards/ace_of_clubs.png" alt="Ace of Clubs" data-card="Ac" width="30">
<img src="images/cards/2_of_clubs.png" alt="2 of Clubs" data-card="2c" width="30" height="30">
<img src="images/cards/3_of_clubs.png" alt="3 of Clubs" data-card="3c" width="30">
<img src="images/cards/4_of_clubs.png" alt="4 of Clubs" data-card="4c" width="30">
<img src="images/cards/5_of_clubs.png" alt="5 of Clubs" data-card="5c" width="30">
<img src="images/cards/6_of_clubs.png" alt="6 of Clubs" data-card="6c" width="30">
<img src="images/cards/7_of_clubs.png" alt="7 of Clubs" data-card="7c" width="30">
<img src="images/cards/8_of_clubs.png" alt="8 of Clubs" data-card="8c" width="30">
<img src="images/cards/9_of_clubs.png" alt="9 of Clubs" data-card="9c" width="30">
<img src="images/cards/10_of_clubs.png" alt="10 of Clubs" data-card="Tc" width="30">
<img src="images/cards/jack_of_clubs.png" alt="Jack of Clubs" data-card="Jc" width="30">
<img src="images/cards/queen_of_clubs.png" alt="Queen of Clubs" data-card="Qc" width="30">
<img src="images/cards/king_of_clubs.png" alt="King of Clubs" data-card="Kc" width="30">
<img src="images/cards/ace_of_diamonds.png" alt="Ace of Diamonds" data-card="Ad" width="30">
<img src="images/cards/2_of_diamonds.png" alt="2 of Diamonds" data-card="2d" width="30">
<img src="images/cards/3_of_diamonds.png" alt="3 of Diamonds" data-card="3d" width="30">
<img src="images/cards/4_of_diamonds.png" alt="4 of Diamonds" data-card="4d" width="30">
<img src="images/cards/5_of_diamonds.png" alt="5 of Diamonds" data-card="5d" width="30">
<img src="images/cards/6_of_diamonds.png" alt="6 of Diamonds" data-card="6d" width="30">
<img src="images/cards/7_of_diamonds.png" alt="7 of Diamonds" data-card="7d" width="30">
<img src="images/cards/8_of_diamonds.png" alt="8 of Diamonds" data-card="8d" width="30">
<img src="images/cards/9_of_diamonds.png" alt="9 of Diamonds" data-card="9d" width="30">
<img src="images/cards/10_of_diamonds.png" alt="10 of Diamonds" data-card="Td" width="30">
<img src="images/cards/jack_of_diamonds.png" alt="Jack of Diamonds" data-card="Jd" width="30">
<img src="images/cards/queen_of_diamonds.png" alt="Queen of Diamonds" data-card="Qd" width="30">
<img src="images/cards/king_of_diamonds.png" alt="King of Diamonds" data-card="Kd" width="30">
<!-- </div>
<div class="card-row"> -->
<img src="images/cards/ace_of_hearts.png" alt="Ace of Hearts" data-card="Ah" width="30">
<img src="images/cards/2_of_hearts.png" alt="2 of Hearts" data-card="2h" width="30">
<img src="images/cards/3_of_hearts.png" alt="3 of Hearts" data-card="3h" width="30">
<img src="images/cards/4_of_hearts.png" alt="4 of Hearts" data-card="4h" width="30">
<img src="images/cards/5_of_hearts.png" alt="5 of Hearts" data-card="5h" width="30">
<img src="images/cards/6_of_hearts.png" alt="6 of Hearts" data-card="6h" width="30">
<img src="images/cards/7_of_hearts.png" alt="7 of Hearts" data-card="7h" width="30">
<img src="images/cards/8_of_hearts.png" alt="8 of Hearts" data-card="8h" width="30">
<img src="images/cards/9_of_hearts.png" alt="9 of Hearts" data-card="9h" width="30">
<img src="images/cards/10_of_hearts.png" alt="10 of Hearts" data-card="Th" width="30">
<img src="images/cards/jack_of_hearts.png" alt="Jack of Hearts" data-card="Jh" width="30">
<img src="images/cards/queen_of_hearts.png" alt="Queen of Hearts" data-card="Qh" width="30">
<img src="images/cards/king_of_hearts.png" alt="King of Hearts" data-card="Kh" width="30">
<!-- </div>
<div class="card-row"> -->
<img src="images/cards/ace_of_spades.png" alt="Ace of Spades" data-card="As" width="30">
<img src="images/cards/2_of_spades.png" alt="2 of Spades" data-card="2s" width="30">
<img src="images/cards/3_of_spades.png" alt="3 of Spades" data-card="3s" width="30">
<img src="images/cards/4_of_spades.png" alt="4 of Spades" data-card="4s" width="30">
<img src="images/cards/5_of_spades.png" alt="5 of Spades" data-card="5s" width="30">
<img src="images/cards/6_of_spades.png" alt="6 of Spades" data-card="6s" width="30">
<img src="images/cards/7_of_spades.png" alt="7 of Spades" data-card="7s" width="30">
<img src="images/cards/8_of_spades.png" alt="8 of Spades" data-card="8s" width="30">
<img src="images/cards/9_of_spades.png" alt="9 of Spades" data-card="9s" width="30">
<img src="images/cards/10_of_spades.png" alt="10 of Spades" data-card="Ts" width="30">
<img src="images/cards/jack_of_spades.png" alt="Jack of Spades" data-card="Js" width="30">
<img src="images/cards/queen_of_spades.png" alt="Queen of Spades" data-card="Qs" width="30">
<img src="images/cards/king_of_spades.png" alt="King of Spades" data-card="Ks" width="30">
</div>
<!-- spacer -->
<div class="spacer"></div>
<div class="card-row">
<div class= "my-cards">
<p>My hand:</p>
<img id = "selected-card-1" src="images/cards/back.png" alt="back" data-card="back1" width="30">
<img id = "selected-card-2" src="images/cards/back.png" alt="back" data-card="back2" width="30">
</div>
<div class= "community cards">
<p>Community Cards:</p>
<img id = "selected-card-3" src="images/cards/back.png" alt="back" data-card="back3" width="30">
<img id = "selected-card-4" src="images/cards/back.png" alt="back" data-card="back4" width="30">
<img id = "selected-card-5" src="images/cards/back.png" alt="back" data-card="back5" width="30">
<img id = "selected-card-6" src="images/cards/back.png" alt="back" data-card="back6" width="30">
<img id = "selected-card-7" src="images/cards/back.png" alt="back" data-card="back7" width="30">
</div>
</div>
<!-- Assets of playing cards from https://code.google.com/archive/p/vector-playing-cards/ -->
<h1>Your Odds: </h1>
<h1 id ="he-result" class = "hand-strength-bar"></h1>
</div>
</div>
<script src="js/hand_analysis.js"></script>
<!-- Footer -->
<header class="footer">
<a href="index.html" class="footer-logo-link">
<h3 class="footer-title">POKERSTARTERS.COM</h3>
</a>
<p class="footer-text">Made by Ben Israel</p>
<div class="footer-icons">
<a href="contact.html" class="footer-link">
<p>Contact</p>
</a>
<a href="contact.html" class="footer-link">
<p>Privacy</p>
</a>
<a href="contact.html" class="footer-link">
<p>Legal</p>
</a>
</div>
</header>
</body>
</html>