-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
164 lines (164 loc) · 7.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./app.css">
<link rel='icon' href='favicon.ico' type='image/x-con'/>
<script src="./app.js" defer></script>
<title>Welcome to Three Card Poker</title>
</head>
<body>
<header></header>
<main>
<nav id="nav-card-container">
<section id="nav-card">
<h2 id="header">Welcome to Three Card Poker</h2>
<div class= "nav-bar-member">
<form id="new-user-signup">
<h3 class="form-title">New User Sign-up:</h3>
<input type="text" name="username" placeholder="username" class="form-field" required>
<input type="password" name="password" placeholder="password" class="form-field" required>
<input type="submit" value="Sign Up" id="new-user-signup-submit" class="form-field">
<p id="signup-message" class="message"></p>
</form>
</div>
<div class="nav-bar-member">
<form id="user-login">
<h3 class="form-title">Current User Login:</h3>
<input type="text" name="username" placeholder="username" class="form-field" required>
<input type="password" name="password" placeholder="password" class="form-field" required>
<input type="submit" value="Login" id="user-login-submit" class="form-field">
<p id="login-message" class="message"></p>
</form>
</div>
<button id="user-logout" class="user-option-button">LOG OUT</button>
</section>
</nav>
<section id="color-choice-container">
<form id="color-choice-form">
<p id="color-choice-label">Select Background Color:</p>
<div class="color-choice">
<input type="radio" id="green-background-choice" name="background-color" value="green" checked>
<label for="green-background-choice">Green</label>
</div>
<div class="color-choice">
<input type="radio" id="yellow-background-choice" name="background-color" value="yellow">
<label for="yellow-background-choice">Yellow</label>
</div>
<div class="color-choice">
<input type="radio" id="red-background-choice" name="background-color" value="red">
<label for="red-background-choice">Red</label>
</div>
<div id="color-choice-submit">
<button type="submit">Submit</button>
</div>
</form>
<button id="rules-button" class="user-option-button">RULES</button>
<button id="close-rules-button" class="user-option-button">CLOSE RULES</button>
</section>
<section id="rules-section">
<section id=rules-container>
<h1>Rules:</h1>
<ul id="rules-list">
<li>Place an ante to play and/or a pair plus bet to bet that your hand will be a pair or better</li>
<li>You get paid out on the pair plus based on your hand</li>
<li>Decide whether to play against the dealer or fold. You should play queens high or better.</li>
<li>If you play and beats the dealer, you get paid depending on your hand.</li>
<li>If the dealer has a jack high or worse, the play bet is not paid out and is returned.</li>
</ul>
</section>
</section>
<section id="hands-section">
<section id="hands-container">
<section class="hand-container" id="dealers-hand-container">
<h1>Dealer's Hand</h1>
<div class="hand" id="dealers-hand"></div>
<p class="hand-description" id="dealers-hand-description"></p>
</section>
<section class="hand-container" id="players-hand-container">
<h1>Player's Hand</h1>
<div class="hand" id="players-hand"></div>
<p class="hand-description" id="players-hand-description"></p>
</section>
</section>
</section>
<section id="user-options-section">
<section id="payout-description-container">
<div>
<h1>Pair Plus Bonus Payout:</h1>
<ul class="payout-list">
<li>Straight Flush: 40 to 1</li>
<li>Three of a Kind: 30 to 1</li>
<li>Straight: 6 to 1</li>
<li>Flush: 3 to 1</li>
<li>Pair: 1 to 1</li>
</ul>
</div>
<div>
<h1>Ante Bonus Payout:</h1>
<ul class="payout-list">
<li>Straight Flush: 5 to 1</li>
<li>Three of a Kind: 4 to 1</li>
<li>Straight: 1 to 1</li>
</ul>
</div>
</section>
<section id="user-options-container">
<div id="purse-container">
<h1 id="purse">Purse: <span></span></h1>
</div>
<div id="bets-display-container">
<h1 id="pair-plus">Pair Plus: <span></span></h1>
<h1 id="ante">Ante: <span></span></h1>
<h1 id="play">Play: <span></span></h1>
</div>
<div id="bets-container">
<h1 id="bets-message">Place your bets!!</h1>
<form id="bets-form">
<input type="number" name="pairPlus" placeholder="pair plus" class="form-field">
<input type="number" name="ante" placeholder="ante" class="form-field">
<input type="submit" value="BET" id="bets-submit" class="form-field">
</form>
</div>
<div id="buttons-container">
<button id="deal-button" class="user-option-button">DEAL EM</button>
<button id="quit-button" class="user-option-button">CASH OUT</button>
<button id="fold-button" class="user-option-button">FOLD</button>
<button id="play-button" class="user-option-button">PLAY</button>
</div>
</section>
</section>
<section id="results-section">
<div id="results-container">
<div id="result-description-containter">
<h1 id="results-description"></h1>
</div>
<div id="leaderboard-button-containter">
<button id="leaderboard-button" class="user-option-button">LEADERBOARD</button>
</div>
<div id="play-again-button-containter">
<button id="play-again-button" class="user-option-button">PLAY AGAIN</button>
</div>
</div>
</section>
<section id="leaderboard-section">
<div id="leaderboard-container">
<h1>Leaderboard:</h1>
<table id="leaderboard">
<thead id="leaderboard-headers">
<th>User</th>
<th>Score</th>
</thead>
<tbody id="leaderboard-body">
</tbody>
</table>
<div id="close-leaderboard-button-containter">
<button id="close-leaderboard-button" class="user-option-button">CLOSE</button>
</div>
</div>
</section>
</main>
<footer></footer>
</body>
</html>