-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (27 loc) · 1.04 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
<!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">
<link rel="stylesheet" href="style.css"></a>
<script src="scripts.js" defer></script>
<title>Rock Paper Scissors</title>
</head>
<body>
<div class="moves-container" style="display:block;">
<button onclick="game('rock',computerPlay())" class="moves-button">Rock</button>
<button onclick="game('paper',computerPlay())" class="moves-button">Paper</button>
<button onclick="game('scissors',computerPlay())" class="moves-button">Scissors</button>
</div>
<h2 class="round-text" style="display:block;">Click on the buttons above to start!</h1>
<div id="counters">
<h1 id="computerScore">Computer: 0</h1>
<h1 id="playerScore">Player: 0</h1>
</div>
<div id="winText">
<h1 id="winnerText">Someone Won!</h1>
<button onclick="toggleHide()">New Game</button>
</div>
</body>
</html>