-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrockpaperscissors.html
More file actions
138 lines (91 loc) · 3.65 KB
/
rockpaperscissors.html
File metadata and controls
138 lines (91 loc) · 3.65 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="rps.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Climate+Crisis&family=Lalezar&display=swap" rel="stylesheet">
<title>Rock! Paper! Scissors!</title>
<link rel="icon" type="image/x-icon" href="0_3oJdSb7B26rt3xjJ.png">
</head>
<body>
<div class="container-shadowbox">
<div class="head-title">
<h1>Rock Paper Scissors</h1>
</div>
<div class="result-container">
<div id="gameResult"></div>
</div>
<!-- -->
<div class="container-pc">
<!-- -->
<div class="container-player">
<div class="container-playerresults">
<div class="scoreResult">PlayerScore:
<span id="playerScoreResult">0</span>
</div>
</div>
<div id="playerDisplay"></div>
</div>
<!-- -->
<div class="containercomputer-results">
</div>
<div class="container-computer"><div class="scoreResult">ComputerScore:
<span id="computeScoreResult">0</span>
</div>
<div id="computerDisplay"></div>
</div>
</div>
<!-- -->
<div class="homerestart-container">
<!-- In the future addeventlistner would be good practice comapre to event handler as addeventlistner provides flexbility -->
<button class="home" onclick="homeclick()">HOME</button>
<!-- <div class="restart">
<button class="refresh-btn" onclick="refreshFunction('reFresh')">
<i class="fa fa-refresh fa-2x" aria-hidden="true"></i>
</button>
</div>
-->
<div class="restart">
<button class="refresh-btn" onclick="startSpinningAndThenRefresh()">
<i id="refresh-icon" class="fa fa-refresh fa-2x" aria-hidden="true"></i>
</button>
</div>
</div>
<!-- -->
<div class="choices">
<!-- These arguements are for playgame() in javascript-->
<button onclick="playgame('✊🏼')">✊🏼</button>
<button onclick="playgame('✋🏼')">✋🏼</button>
<button onclick="playgame('✌🏼')">✌🏼</button>
</div>
<audio id="winAudio">
<source src="correct-6033.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="loseAudio">
<source src="wronganswer-37702.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="tieAudio">
<source src="RPReplay_Final1710825002.mov" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="resetAudio">
<source src="interface-124464.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<audio id="homecardAudio">
<source src="shooting-sound-fx-159024.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
<script src="rps.js"></script>
</body>
</html>