generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jstest.html
252 lines (227 loc) · 9.11 KB
/
jstest.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>JavaScript Playground</title>
<link href="css/js-style.css" rel="stylesheet" type="text/css">
</head>
<body>
<nav>
<p>Andrew Harvey - Portfolio</p>
<a href="index.html">Home</a>
</nav>
<div class="container text-center my-4">
<h3>JavaScript Testing Page</h3>
</div>
<!-- LEAGUE OF LEGENDS ROLE/CHAMP RANDOMISER SECTION -->
<!-- RANDOMISER BUTTONS -->
<div class="container text-center">
<div class="row justify-content-center">
<div class="col-sm-6">
<button class="randomButtons" id="randRoleButton" onclick="RandRole()">Random role</button>
</div>
<div class="col-sm-6">
<button class="randomButtons" id="resetButtons" onclick="ResetLoL()">Reset</button>
</div>
</div>
</div>
<!-- LEAGUE MAP BACKGROUND AND ROLE ICONS -->
<div class="container text-center" id="leagueMap">
<div class="row justify-content-center" id="mapButtons">
<img src="images/map.png" class="roleMap">
<div class="col"><button class="roleButtons" id="top" onclick="RandTop();"></button></div>
<div class="col"><button class="roleButtons" id="jung" onclick="RandJung();"></button></div>
<div class="col"><button class="roleButtons" id="mid" onclick="RandMid();"></button></div>
<div class="col"><button class="roleButtons" id="adc" onclick="RandADC();"></button></div>
<div class="col"><button class="roleButtons" id="supp" onclick="RandSupp();"></button></div>
</div>
<div class="row justify-content-center">
<div class="col-sm-auto">
<p id="TopText" class="ChampText"></p>
</div>
<div class="col-sm-auto">
<p id="JungText" class="ChampText"></p>
</div>
<div class="col-sm-auto">
<p id="MidText" class="ChampText"></p>
</div>
<div class="col-sm-auto">
<p id="ADCText" class="ChampText"></p>
</div>
<div class="col-sm-auto">
<p id="SuppText" class="ChampText"></p>
</div>
</div>
</div>
<!-- FOOTBALL POSITION RANDOMISER SECTION -->
<div class="container text-center my-3">
<label for="formationSelect">Choose a formation:</label>
<select id="formationSelect" onchange="changeFormation()">
<option value="4-3-3">4-3-3</option>
<option value="4-2-3-1">4-2-3-1</option>
<option value="4-4-2">4-4-2</option>
</select>
</div>
<div class="container text-center">
<div class="row justify-content-center">
<div class="col-sm-6">
<button class="randomButtons" id="randPosButton" onclick="RandPos();">Random position</button>
</div>
<div class="col-sm-6">
<button class="randomButtons" id="resetButtons" onclick="ClearPos();">Reset</button>
</div>
</div>
</div>
<div class="container text-center" id="pitch">
<div class="row">
<img src="/images/pitch.png" class="roleMap">
<div class="col">
<div class="position" id="GK">GK</div>
<div class="position" id="RB">RB</div>
<div class="position" id="LCB">LCB</div>
<div class="position" id="RCB">RCB</div>
<div class="position" id="LB">LB</div>
<div class="position" id="RCM">RCM</div>
<div class="position" id="CAM">CAM</div>
<div class="position" id="LCM">LCM</div>
<div class="position" id="RW">RW</div>
<div class="position" id="ST">ST</div>
<div class="position" id="LW">LW</div>
<div id="RM" class="position" style="display:none;">RM</div>
<div id="LM" class="position" style="display:none;">LM</div>
<div id="RDM" class="position" style="display:none;">RDM</div>
<div id="LDM" class="position" style="display:none;">LDM</div>
<div id="LAM" class="position" style="display:none;">LAM</div>
<div id="RAM" class="position" style="display:none;">RAM</div>
<div id="RS" class="position" style="display:none;">ST</div>
<div id="LS" class="position" style="display:none;">ST</div>
</div>
</div>
</div>
<!-- EURO 2024 SWEEPSTAKE SECTION -->
<div class="container text-center" id="sweepstake">
<div class="row justify-content-center" id="sweepstake">
<div class="col-sm-6">
<button onclick="Sweepstake()" id="sweepstakeButton" class="randomButtons">Sweepstake</button>
</div>
<div class="col-sm-6">
<button onclick="resetSweepstake()" class="randomButtons" id="resetButtons">Reset</button>
</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-2">
<h4>Group A</h4>
<p class="country" id="Germany">Germany</p>
<p class="country" id="Scotland">Scotland</p>
<p class="country" id="Hungary">Hungary</p>
<p class="country" id="Switzerland">Switzerland</p>
</div>
<div class="col-sm-2">
<h4>Group B</h4>
<p class="country" id="Spain">Spain</p>
<p class="country" id="Croatia">Croatia</p>
<p class="country" id="Italy">Italy</p>
<p class="country" id="Albania">Albania</p>
</div>
<div class="col-sm-2">
<h4>Group C</h4>
<p class="country" id="Slovenia">Slovenia</p>
<p class="country" id="Denmark">Denmark</p>
<p class="country" id="Serbia">Serbia</p>
<p class="country" id="England">England</p>
</div>
<div class="col-sm-2">
<h4>Group D</h4>
<p class="country" id="Poland">Poland</p>
<p class="country" id="Netherlands">Netherlands</p>
<p class="country" id="Austria">Austria</p>
<p class="country" id="France">France</p>
</div>
<div class="col-sm-2">
<h4>Group E</h4>
<p class="country" id="Belgium">Belgium</p>
<p class="country" id="Slovakia">Slovakia</p>
<p class="country" id="Romania">Romania</p>
<p class="country" id="Ukraine">Ukraine</p>
</div>
<div class="col-sm-2">
<h4>Group F</h4>
<p class="country" id="Turkey">Turkey</p>
<p class="country" id="Georgia">Georgia</p>
<p class="country" id="Portugal">Portugal</p>
<p class="country" id="Czech Republic">Czech Republic</p>
</div>
</div>
</div>
<!-- CURRENCY CONVERTOR SECTION -->
<!-- AMOUNT TO CONVERT -->
<div class="container text-center" id="convertor">
<label for="currencyAmount">Amount to Convert:</label>
<input type="text" class="currencyAmount" placeholder="0.00" id="currencyAmount">
<!-- CONVERTED FROM -->
<div class="row justify-content-center">
<div class="col-sm-auto">
<span>From</span>
<select id="currencyFrom" name="currencyFrom">
<option value="Select One">Please choose a currency</option>
<option value="AUD">AUD ($)</option>
<option value="CAD">CAD ($)</option>
<option value="CNY">CNY (¥)</option>
<option value="EUR">EUR (€)</option>
<option value="GBP">GBP (£)</option>
<option value="JPY">JPY (¥)</option>
<option value="USD">USD ($)</option>
</select>
</div>
<!-- CURRENCY TO CONVERT TO -->
<div class="col-sm-auto">
<span>To</span>
<select id="currencyTo" name="currencyTo">
<option value="Select One">Please choose a currency</option>
<option value="AUD">AUD ($)</option>
<option value="CAD">CAD ($)</option>
<option value="CNY">CNY (¥)</option>
<option value="EUR">EUR (€)</option>
<option value="GBP">GBP (£)</option>
<option value="JPY">JPY (¥)</option>
<option value="USD">USD ($)</option>
</select>
</div>
<!-- CURRENCY CONVERT BUTTONS/RESULT -->
<div class="row justify-content-center">
<div class="col-sm-auto">
<button class="convertorBtns" id="convert" type="submit" onClick="Convert()">Convert</button>
<button class="convertorBtns" onclick="clearVal()">Reset</button>
</div>
</div>
<div id="finalAmount" class="text-center">
<h2>Converted Amount:
<span class="finalValue" id="finalValue" style="color:rgb(0, 0, 0);"></span>
</h2>
</div>
</div>
</div>
<!-- Reaction Game -->
<div class="container text-center">
<div class="row justify-content-center">
<div class="col-sm-12">
<h4 id="reactionHeader">Click on the button to start the reaction speed test. When it turns green, click it! Your reaction speed will be displayed below. Good luck!</h4>
</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-12">
<button class="randomButtons" id="reactionButton" onclick="reactionGame()">Start!</button>
</div>
</div>
<div class="row justify-content-center">
<div class="col-sm-12">
<p id="reactionSpeed"></p>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>