-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (65 loc) · 1.99 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]> <html class="no-js"> <!--<![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Guessing game</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
<style>
body {
margin: 10px auto;
width: 80%;
border: 3px solid #e0d6ce;
padding: 10px;
text-align: center;
font-size: 1.1em;
}
button {
padding: 10px 20px;
margin: 10px;
}
#play {
background-color: yellow;
}
.center {
margin: 10px auto;
width: 80%;
border: 3px solid #e0d6ce;
padding: 10px;
text-align: center;
font-size: 1.1em;
}
</style>
</head>
<body class='center'>
<h1>Number Guessing Game</h1>
<p id ='title'></p> <br>
<p>Guess the correct number to win this Pastry.</p>
<img src="./images/pasteis.jpg" alt="pastry" width=50 height=50> <br>
<label for="userGuess">Enter a guess:</label>
<input type="number" id='userGuess' name='userGuess'>
<button value='submitGuessButton' id='submitBtn'>Play</button>
<section id='message'>
<div id='messageBoard'></div>
</section>
<hr>
<!-- ROCK PAPER SCISSORS -->
<h1>Rock Paper Scissors</h1>
<div id='game-area'>Pick: </div>
<section>
<button id='rock' class='btnChoice'>rock</button>
<button id='paper' class='btnChoice'>paper</button>
<button id='scissors' class='btnChoice'>scissors</button>
</section>
<button id='play' value='play'>Play</button>
<p id='msg'></p>
<script src="./script.js" async defer></script>
<script src="./rock.js" async defer></script>
</body>
</html>