-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
117 lines (113 loc) · 3.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" />
<title>Poker Chip Calculator</title>
<link rel="shortcut-icon" type="image/png" href="img/poker-chip.png" />
<link rel="stylesheet" href="style.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-sm bg-secondary navbar-dark">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
</ul>
</nav>
<div class="heading">
<h1>Poker Chip Calculator</h1>
</div>
<div class="player-buyin">
<h3 id="heading-player-count">How many player's do you have?</h3>
<input type="number" id="noOfPlayers" />
<h3 id="heading-buyin">Buy in chip value</h3>
<input type="number" id="buyInValue" />
</div>
<div class="colour-selector">
<p id="colourSelectorPara">Choose the chip colours you have</p>
<div class="colour-row">
<div class="column">
<img
onclick="addToTable('Grey')"
class="chips"
id="greyChip"
src="img/grey.png"
alt="Grey"
/>
<img
onclick="addToTable('Red')"
class="chips"
id="redChip"
src="img/red.png"
alt="Red"
/>
<img
onclick="addToTable('Blue')"
class="chips"
id="blueChip"
src="img/blue.png"
alt="Blue"
/>
<img
onclick="addToTable('Green')"
class="chips"
id="greenChip"
src="img/green.png"
alt="Green"
/>
<img
onclick="addToTable('Black')"
class="chips"
id="blackChip"
src="img/black.png"
alt="Black"
/>
<img
onclick="addToTable('Pink')"
class="chips"
id="pinkChip"
src="img/pink.png"
alt="Pink"
/>
<img
onclick="addToTable('Yellow')"
class="chips"
id="yellowChip"
src="img/yellow.png"
alt="Yellow"
/>
</div>
</div>
</div>
<div class="chipTableDiv">
<table id="chipTable">
<tr>
<th>Colour</th>
<th>Qty in set</th>
<th>Value</th>
<th>Per Player</th>
<th>Remaining in set</th>
</tr>
</table>
</div>
<script type="text/javascript" src="js/script.js"></script>
<div class="footer">
<p>
Developed by Asim Javaid in 2022.
<a href="https://github.com/AsimAJ33/poker-chip-calculator">Github</a>
</p>
</div>
</body>
</html>