diff --git a/JustePrix.css b/JustePrix.css index 9c321a4..0084618 100644 --- a/JustePrix.css +++ b/JustePrix.css @@ -61,6 +61,11 @@ article text-align: center; } +.BoiteNb +{ + margin: auto; + text-align: center; +} footer { margin-top: auto; diff --git a/JustePrix.html b/JustePrix.html index cf17baa..1656d6c 100644 --- a/JustePrix.html +++ b/JustePrix.html @@ -3,6 +3,7 @@ + JustePrix @@ -23,9 +24,10 @@

Le Juste Prix

Bonjour mon ami et Bienvenue dans le JUSTE PRIX

-
+
+
diff --git a/JustePrix.js b/JustePrix.js index e69de29..6af05a7 100644 --- a/JustePrix.js +++ b/JustePrix.js @@ -0,0 +1,34 @@ +let NbJoueur= document.getElementById("Inp_Valeur"); +let Nb_a_Trouver = 5; + +let btnver = document.getElementById("btntent"); + +btnver.addEventListener("click",Verif) + +function Verif() +{ + const NbJoueur2 = parseFloat(NbJoueur); //Verifie qu'il s'agit dun nombre + if(NbJoueur2 == isNaN(NbJoueur)) + { + alert("La Valeur rentre est errone"); + } + else + { + alert("La valeur est bonne"); + } +} + +function Trouver(NbJoueur) +{ + if(Nb_a_Trouver == NbJoueur) + { + return true + } + else + { + return false + } + +} + +