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>
|
<option value="vip">VIP (10 hearts)</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<label for="difficulty">Difficulty</label>
|
<div style="display: none; !important;">
|
||||||
<select id="difficulty">
|
<label for="difficulty" style="display: none; !important;">Difficulty</label>
|
||||||
<option value="easy">Easy</option>
|
<select id="difficulty" style="display: none; !important;">
|
||||||
<option value="medium" selected>Medium</option>
|
<option value="easy" selected>Easy</option>
|
||||||
|
<option value="medium">Medium</option>
|
||||||
<option value="hard">Hard</option>
|
<option value="hard">Hard</option>
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p id="startError" class="error"></p>
|
<p id="startError" class="error"></p>
|
||||||
<button type="submit">Start Game</button>
|
<button type="submit">Start Game</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -242,7 +242,7 @@ startFormEl.addEventListener('submit', (e) => {
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const pass = passwordEl.value.trim();
|
const pass = passwordEl.value.trim();
|
||||||
if (pass !== '1027') {
|
if (pass !== '1027') {
|
||||||
startErrorEl.textContent = 'Wrong password. Try 1027.';
|
startErrorEl.textContent = 'Wrong password. Ask Tanner.';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user