-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgame.html
83 lines (75 loc) · 2.98 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="JaveScript Poker Game"/>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon/favicon-32x32.png">
<!-- Stylesheet import-->
<link rel="stylesheet" href="assets/css/style.css">
<title>Game - Poker Fun</title>
</head>
<body>
<header>
<!-- site logo -->
<div class="logo">
<img src="assets/images/logo.png" alt="Poker Fun logo" id="logo">
</div>
<!-- Navigation menu -->
<nav id="menu">
<ul>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a href="game.html" class="active">Play</a>
</li>
</ul>
</nav>
</header>
<main>
<div id="card-table">
<!-- Empty div to hold cards that are rendered dynamically by javascript code-->
</div>
<!-- Initial message to user(message is changed throughout the game by javascript code) -->
<div id="game-display-message">Place Bet and Click Deal</div>
<div class="game-controls-area">
<div id="current-chips-container" class="game-controls">
Current Chips:<span id="current-chips">1000</span>
</div>
<div id="bet-amount-container" class="game-controls">
<label for="bet-amount">BET:</label>
<input id="bet-amount" type="number" value="10" step="10">
</div>
<!-- create buttons for game play (different buttons will be set as displayed through game stages)-->
<div class="game-controls">
<button id="btn-deal">Deal</button>
<button id="btn-draw">Draw</button>
<button id="btn-bank-win">Bank Win</button>
<button id="btn-high">High</button>
<button id="btn-low">Low</button>
<div id="winnings">
Winnings:<span id="winnings-amount"></span>
</div>
</div>
</div>
</main>
<!-- Footer with external link and icon -->
<footer>
<p>Follow me on Github
<a href="https://github.com/Gareth-McGirr/" target="_blank" rel="noopener"
aria-label="Github (Opens in a new tab)">
<i class="fab fa-github"></i>
</a>
</p>
</footer>
<!-- script -->
<script src="assets/js/script.js"></script>
<!-- Font awesome script -->
<script src="https://kit.fontawesome.com/58cc89d8c4.js" crossorigin="anonymous"></script>
</body>
</html>