-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (45 loc) · 1.43 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blackjack</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h1 id="dCount">0</h1>
<div id="dealerCards">
<!-- displays face down cards for dealer-->
<img id ="dLeft" src= "images/cardBack.png">
<img id = "dRight"src= "images/cardBack.png">
<img id="dExtra1" src="">
<img id="dExtra2" src="">
<img id="dExtra3" src="">
<img id="dExtra4" src="">
</div>
<h2 id="result"> placeholder </h2>
<div id="playerCards">
<!-- displays face down cards for player-->
<img id="pLeft" src= "images/cardBack.png">
<img id="pRight" src= "images/cardBack.png">
<img id="pExtra1" src="">
<img id="pExtra2" src="">
<img id="pExtra3" src="">
<img id="pExtra4" src="">
<h1 id="pCount">0</h1>
<div id="pActions">
<button id="hit" onclick="hitFunction()" disabled=true>Hit</button>
<button id="stand" onClick="standFunction()" disabled=true>Stand</button>
</div>
</div>
<div id="bet">
<h2 id="money">$100</h2>
<input id="betIn">
<button id="betBut" onClick="betButton()">Bet</button>
</div>
<button id="again" onClick="againButton()"> Play Again?</button>
<body>
</html>
<script src="./script.js"></script>
</body>
</html>