-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (44 loc) · 1.46 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
<!DOCTYPE html>
<html>
<head>
<title>Rock Paper Scissor</title>
<meta charset="UTF-8" >
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<audio id="clickAudio">
<source src="sounds/tick.mp3" type="audio/mpeg">
</audio>
<audio id="playAudio">
<source src="sounds/glow.mp3" type="audio/mpeg">
</audio>
<audio id="winAudio">
<source src="sounds/win.mp3" type="audio/mpeg">
</audio>
<audio id="loseAudio">
<source src="sounds/lose.mp3" type="audio/mpeg">
</audio>
<section id="name">
<h1 id="rps">ROCK, PAPER, SCISSOR? </h1>
</section>
<section id="game">
<h1 id="comptext">COMPUTER</h1>
<div>
<button type="button" id="compRock"></button>
<button type="button" id="compPaper"></button>
<button type="button" id="compScissor"></button>
<span id="compScore">0</span>
</div>
<p id="display"> START </p>
<div>
<button type="button" class="playButton" id="playRock"></button>
<button type="button" class="playButton" id="playPaper"></button>
<button type="button" class="playButton" id="playScissor"></button>
<span id="playScore">0</span>
</div>
<h1 id="playtext">PLAYER</h1>
</section>
<script src="rps_new.js"></script>
</body>
</html>