-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (37 loc) · 1.37 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
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JS Card Game: War</title>
<link rel="stylesheet" href="style.css"/>
</head>
<body>
<main>
<h1>JavaScript Card Games: War</h1>
<div class="playarea">
<div class="playerdeck">
<p>Your Deck:</p>
<img id="playercards" src="images/card_back.png"></img>
<h3 id="playerCardCount"></h3>
</div>
<div id="playercard" class="playercard"></div>
<div class="buttons">
<button id="shuffle">Shuffle & Deal</button>
<button id="play" disabled>Play</button>
<button id="take" disabled>Take</button>
<button id="give" disabled>Give</button>
<button id="war" disabled>WAR!</button>
<h2 id="win">You win!</h2>
<h2 id="lose">Computer wins!</h2>
</div>
<div id="computercard" class="computercard"></div>
<div class="computerdeck">
<p>Computer's Deck:</p>
<img id="computercards" src="images/card_back.png"></img>
<h3 id="computerCardCount"></h3>
</div>
</div>
</main>
<script type="module" src="index.js"></script>
</body>
</html>