-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.html
47 lines (45 loc) · 1.68 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" />
<link rel="stylesheet" href="./css/style.css" />
<title>Introduction to JS: Final Project</title>
</head>
<body>
<main class="main">
<article class="game-container">
<h1 class="game-title">Guess the Number</h1>
<p class="game-message">
Try to guess the computer's number within 3 tries!
</p>
<input
class="number-input"
type="number"
name=""
id="guess-input"
placeholder="Enter Number"
/>
<div class="guess-container">
<p class="text">Result: <span id="guess-message"></span></p>
<p class="text">
Your Guess: <span id="current-guess"></span>
</p>
<p class="text">
Computer Guess: <span id="computer-guess"></span>
</p>
<p class="text">
Guess History: <span id="guess-history"></span>
</p>
</div>
<div class="btn-container">
<button id="submit-btn" class="btn">Submit Guess</button>
<button id="restart-btn" class="btn" disabled>
Restart
</button>
</div>
</article>
</main>
<script src="./js/app.js"></script>
</body>
</html>