-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
187 lines (161 loc) · 5.99 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!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">
<title>Rock Paper Scissors</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="bundle.js" defer></script>
<link rel="stylesheet" href="style.css">
<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=Roboto:wght@100;300;400&display=swap" rel="stylesheet">
</head>
<body>
<div class="top-div">
<h1>Rock Paper Scissors!</h1>
<!-- col 80 is where you switch to a new line for readability -->
<p>
A battle royale! 64 Contestants pick their avatar and fight to the death...
with rock paper scissors! Contestants will face a random opponent each time,
the first to reach a score of 5 survives and moves on to face the next! This
goes on until one is left standing and is hailed champion!
<br><br>
The common rules apply, rock beats scissors and so on. Starting with a timer of
10 seconds, the timer decrements by 1 each round. Contestants have no right for
surrender, it's win or lose, and the winner takes all.
<br><br>
Do you have what it takes to win? <b>press the up or down arrow key to navigate....</b>
<a class="link" href="https://github.com/Numbers00/odin-rock-paper-scissors-v2" target="_blank">
github
</a>
</p>
</div>
<div class="bottom-div invisible">
<div class="left-div">
<h2 id="left-div-title">Create your Avatar</h2>
<div class="avatar-cards">
<div class="avatar-card">
<img src="imgs/template_avatar.png" alt="Avatar">
<div id="input-container" class="text-container">
<input
type="text" id="name" maxlength="16"
pattern="([^\s][A-z0-9À-ž\s]*)"
>
<input
type="text" id="epithet" maxlength="16"
pattern="([^\s][A-z0-9À-ž\s]*)"
>
<input
type="url" id="image" placeholder="Image URL: imgs/template_avatar.png"
>
</div>
</div>
</div>
<div class="round-div removed">
<div class="round-left-div">
<div class="contestants-div">
<div class="left-contestant-div">
<div class="left-contestant-details">
<p><b>Champion:</b> </p>
<p><b>Wins:</b> </p>
</div>
<div class="left-contestant-cards">
<div class="avatar-card">
<img src="imgs/template_avatar.png" alt="Avatar">
<div class="text-container">
<h4><b></b></h4>
<p></p>
</div>
</div>
<div class="left-contestant-controls">
<div id="player-rock" class="control-card player-card">
<b>R</b>
</div>
<div id="player-paper" class="control-card player-card">
<b>P</b>
</div>
<div id="player-scissors" class="control-card player-card">
<b>S</b>
</div>
<div id="left-score" class="control-card">
<b>0</b>
</div>
</div>
</div>
</div>
<div class="right-contestant-div">
<div class="right-contestant-details">
<p><b>Champion:</b> </p>
<p><b>Wins:</b> </p>
</div>
<div class="right-contestant-cards">
<div class="right-contestant-controls">
<div id="enemy-rock" class="control-card enemy-card">
<b>R</b>
</div>
<div id="enemy-paper" class="control-card enemy-card">
<b>P</b>
</div>
<div id="enemy-scissors" class="control-card enemy-card">
<b>S</b>
</div>
<div id="right-score" class="control-card">
<b>0</b>
</div>
</div>
<div class="avatar-card">
<img src="imgs/template_avatar.png" alt="Avatar">
<div class="text-container">
<h4><b></b></h4>
<p></p>
</div>
</div>
</div>
</div>
</div>
<div class="round-history">
<ul></ul>
</div>
</div>
<div class="round-right-div">
<ul></ul>
</div>
</div>
<div class="champion-div removed">
<div class="champion-details">
<p><b>Champion:</b> </p>
<p><b>Wins:</b> </p>
</div>
<div class="champion-card">
<img src="imgs/template_avatar.png" alt="Avatar">
<div class="text-container">
<h4><b></b></h4>
<p></p>
</div>
</div>
</div>
</div>
<div class="right-div">
<h2>Mechanics</h2>
<p>
Type your name, epithet, and image link on the left card to create your avatar
and press enter. You will be matched with 63 other <s>computers</s> players.
You will fight using rock, paper, scissors, and the first to reach a score of
five (5) wins the round.
<br><br>
Each round divides the players into winners and losers until one is left and
titled champion. Each round matches you with a random winner to fight against.
</p>
<h2>Controls</h2>
<ul>
<li>Up and down arrow keys to navigate</li>
<li>Rock: Press R or 1</li>
<li>Paper: Press P or 2</li>
<li>Scissors: press S or 3</li>
</ul>
</div>
</div>
</body>
</html>