[Client] Do a few changes to the lobby template

- Add an ID to start buttons;
- Add an invalid input message for the challenge mode;
- Turn the room code into a link.
This commit is contained in:
AudricV 2023-01-09 10:11:55 +01:00
parent 1e7f130081
commit fe88154d57
No known key found for this signature in database
GPG Key ID: DA92EC7905614198

View File

@ -11,14 +11,14 @@
<div class="join_room_view hidden">
<h1 class="room_title">Salon</h1>
<input type="text" id="game_username" placeholder="Entrez un pseudo" value="" required="required" maxlength="20">
<button class="action_button" id="join_game_button">Rejoindre</button>
<button id="join_game_button" class="action_button">Rejoindre</button>
<p class="game_start_failed hidden">Une erreur s'est produite. Réessayez ultérieurement.</p>
</div>
<div class="room_view hidden">
<div class="room_view_container">
<h1 class="room_title">Salon</h1>
<div class="room_code_text hidden">
<h3 class="room_code_text_title">Code&nbsp;: <span class="room_code"></span></h3>
<h3 class="room_code_text_title">Code&nbsp;: <a href="" class="room_code"></a></h3>
<button id="invite_friends_button" class="action_button">Inviter vos amis</button>
</div>
</div>
@ -30,15 +30,16 @@
<div class="multi_player_mode_choices hidden">
<div class="multi_player_mode_choice">
<h3 class="multi_player_mode_choice_title">Jouer au mode Histoire</h3>
<button class="action_button">Lancer</button>
<button id="multi_player_history_start_button" class="action_button">Lancer</button>
</div>
<div class="multi_player_mode_choice">
<h3 class="multi_player_mode_choice_title">Jouer au mode Challenge</h3>
<button class="action_button">Lancer</button>
<button id="multi_player_challenge_start_button" class="action_button">Lancer</button>
<div class="multi_player_mode_choice_number">
<h3 class="rounds_count_title">Nombre de tours&nbsp;:</h3>
<input id="rounds_count" type="number" min="5" max="15" value="5">
</div>
<p class="multi_player_challenge_mode_invalid_input hidden">Nombre de tours invalide. Veuillez entrer un nombre valide entre 5 inclus et 15 inclus.</p>
</div>
</div>
<h3 class="multi_player_mode_waiting_for_host hidden">En attente du démarrage de la partie par l'hôte&nbsp;</h3>