Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MeeshyLC committed Jul 29, 2021
1 parent d0d760c commit 347784c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions starterOnly/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,20 @@ <h1 class="hero-headline">
>
<div
class="formData">
<label>Prénom</label><br>
<label for="first_name">Prénom</label><br>
<input
class="text-control"
type="text"
id="first_name"
name="firstName"
minlength="2"
pattern= "[A-Za-z]{1,32}"
/><br>
<p id="first_error"></p>
</div>
<div
class="formData">
<label>Nom</label><br>
<label for="last_name">Nom</label><br>
<input
class="text-control"
type="text"
Expand All @@ -87,7 +88,7 @@ <h1 class="hero-headline">
</div>
<div
class="formData">
<label>E-mail</label><br>
<label for="Email">E-mail</label><br>
<input
class="text-control"
type="email"
Expand All @@ -98,17 +99,18 @@ <h1 class="hero-headline">
</div>
<div
class="formData">
<label>Date de naissance</label><br>
<label for="birthday">Date de naissance</label><br>
<input
class="text-control"
type="date"
id="birthdate"
name="birthdate"
required pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}"
/><br>
</div>
<div
class="formData">
<label>À combien de tournois GameOn avez-vous déjà participé ?</label><br>
<label for="quantity">À combien de tournois GameOn avez-vous déjà participé ?</label><br>
<input type="number" class="text-control" id="quantity" name="quantity" min="0" max="99">
<p id="tournoi_error"></p>
</div>
Expand Down
1 change: 1 addition & 0 deletions starterOnly/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function checkInputs() {
}

function messageValid() {
// Au clique sur l'input le message de validation disparait + envoie du formulaire.
let cliqueOk = document.getElementById("input-confirm");
cliqueOk.addEventListener("click", () => {
msgConfirm.style.display = "none";
Expand Down

0 comments on commit 347784c

Please sign in to comment.