-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (68 loc) · 2.07 KB
/
index.html
File metadata and controls
72 lines (68 loc) · 2.07 KB
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
</<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Shall we play a game?</title>
<link rel="stylesheet" href="style.css">
</head>
<body onload="setGame()">
<div class="score">
<div class="box" id="roundCounter">
<span class="label">Round</span>
</div>
<div class="box" id="playerWins">
<span class="label">P1</span>
</div>
<div class="box" id="computerWins">
<span class="label">COM</span>
</div>
</div>
<div class="plays">
<button class="button" role="button" value="rock">
<div data-key="82" class="key">
<kbd>R</kbd>
<span class="play">Rock</span>
</div>
</button>
<button class="button" role="button" value="paper">
<div data-key="80" class="key">
<kbd>P</kbd>
<span class="play">Paper</span>
</div>
</button>
<button class="button" role="button" value="scissors">
<div data-key="67" class="key">
<kbd>C</kbd>
<span class="play">Scissors</span>
</div>
</button>
<button class="button" role="button" value="lizard">
<div data-key="76" class="key">
<kbd>L</kbd>
<span class="play">Lizard</span>
</div>
</button>
<button class="button" role="button" value="spock">
<div data-key="83" class="key">
<kbd>S</kbd>
<span class="play">Spock</span>
</div>
</button>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 License</a>. <br> Find me on github: <a href="https://github.com/jjamesjohnson/RPSLS">jjamesjohnson</a>
</div>
</div>
</div>
</body>
<script type="text/javascript" src="./rpsls.js"> </script>
</html>