-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (41 loc) · 1.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<pre style="text-align: center;overflow: hidden;">
____ _ _ _ _____
| _ \ | | | | | / ____|
| |_) |_ _| | |___ __ _ _ __ __| | | | _____ _____
| _ | | | | | / __| / _` | '_ \ / _` | | | / _ \ \ /\ / / __|
| |_) | |_| | | \__ \ | (_| | | | | (_| | | |___| (_) \ V V /\__ \
|____/ \__,_|_|_|___/ \__,_|_| |_|\__,_| \_____\___/ \_/\_/ |___/
</pre>
<div id="start-screen" class="show">
<p>You'll guess a 4 digit number.</p>
<p>A bull means you've found a correct number in the correct location.</p>
<p>A cow means you've found a correct number, but it's not in the correct position.</p>
<p>Keep making educated guesses till you win!</p>
<button id="start">Start</button>
</div>
<div id="game-screen" class="hide">
<input id="number-guess" type="text" style="width: 300px;height: 30px;font-size:25px;">
<button id="try">Try</button>
<span id="warning-message"></span>
<p id="motivation">Keep on guessing!</p>
<div id="attempts-so-far">
<p id="attempt-message"></p>
</div>
<div id="guess-result">
<p id="bull-cow"></p>
</div>
<p id="winner" class="hide">Congratulations! You win! <a href="./index.html">Play again?</a></p>
<p id="loser" class="hide">Sorry, you lost. <a href="./index.html">Play again?</a></p>
</div>
<script src="https://d3js.org/d3.v4.js"></script>
<script src="app.js"></script>
</body>
</html>