-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
26 lines (25 loc) · 992 Bytes
/
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
<!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">
<title>Blackjack Game with JavaScript</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<h1>Blackjack</h1>
<p id="message-el">Want to play a round?</p>
<!-- Give the cards paragraph and id of cards-el -->
<p id="cards-el">Cards: </p>
<!-- Give the sum paragraph and id of sum-el -->
<p id="sum-el">Sum: </p>
<!-- Create a button that says START GAME. Make it call a startGame() function when clicked -->
<button onclick="startGame()">START GAME</button>
<!-- Create a NEW CARD button, make it run newCard() on click -->
<button onclick="newCard()">NEW CARD</button>
<!-- Create a paragraph with an id of "player-el" -->
<p id="player-el"></p>
<script src="index.js"></script>
</body>
</html>