-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·41 lines (38 loc) · 1.34 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>
<head>
<title>Rock, Paper, Scissors</title>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="css/stylesheet.css">
<script type="text/javascript" src="js/index.js" async></script>
</head>
<body>
<h1 align="center">Rock, Paper, Scissors</h1>
<div class="wrapper">
<div class="left">
<h3 align="center">Player</h3>
<button class="rpsButton" id="rock" value="rock" onclick="rps(this.id)">rock</button>
<button class="rpsButton" id="paper" value="paper" onclick="rps(this.id)">paper</button>
<button class="rpsButton" id="scissors" value="scissors" onclick="rps(this.id)">scissors</button>
</div>
<div class="center">
<table id="scoreboard" align="center">
<thead>
<th>Win</th>
<th>Loss</th>
<th>Draw</th>
</thead>
<tbody>
<td id="wins">0</td>
<td id="losses">0</td>
<td id="draws">0</td>
</tbody>
</table>
</div>
<div class="right">
<h3 align="center">Computer</h3>
<input type="text" id="computer">
</div>
</div>
</body>
</html>