Update difficulty selection visibility, enhance scores data, and modify password error message
This commit is contained in:
parent
2377d4fa71
commit
d57951466e
12
index.php
12
index.php
@ -34,13 +34,15 @@
|
||||
<option value="vip">VIP (10 hearts)</option>
|
||||
</select>
|
||||
|
||||
<label for="difficulty">Difficulty</label>
|
||||
<select id="difficulty">
|
||||
<option value="easy">Easy</option>
|
||||
<option value="medium" selected>Medium</option>
|
||||
<div style="display: none; !important;">
|
||||
<label for="difficulty" style="display: none; !important;">Difficulty</label>
|
||||
<select id="difficulty" style="display: none; !important;">
|
||||
<option value="easy" selected>Easy</option>
|
||||
<option value="medium">Medium</option>
|
||||
<option value="hard">Hard</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
<p id="startError" class="error"></p>
|
||||
<button type="submit">Start Game</button>
|
||||
</form>
|
||||
|
||||
@ -242,7 +242,7 @@ startFormEl.addEventListener('submit', (e) => {
|
||||
e.preventDefault();
|
||||
const pass = passwordEl.value.trim();
|
||||
if (pass !== '1027') {
|
||||
startErrorEl.textContent = 'Wrong password. Try 1027.';
|
||||
startErrorEl.textContent = 'Wrong password. Ask Tanner.';
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user