Compare commits
No commits in common. "c529b88e94d23093a509bad7d6be092aafb2290b" and "53c09b221a29378f6e1d97291ab6652e6fa70ab3" have entirely different histories.
c529b88e94
...
53c09b221a
3 changed files with 1 additions and 42 deletions
|
|
@ -61,11 +61,6 @@ article
|
|||
text-align: center;
|
||||
|
||||
}
|
||||
.BoiteNb
|
||||
{
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
footer
|
||||
{
|
||||
margin-top: auto;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="JustePrix.css" type="text/css">
|
||||
<script src="JustePrix.js"></script>
|
||||
<html>
|
||||
<head>
|
||||
<title>JustePrix</title>
|
||||
|
|
@ -24,10 +23,9 @@
|
|||
<p class="Titre"><strong>Le Juste Prix</strong></p>
|
||||
<img src="Lagaf.jpg" class="Lagaf">
|
||||
<p>Bonjour mon ami et Bienvenue dans le JUSTE PRIX </p>
|
||||
<div id="BoiteNb" class="BoiteNb">
|
||||
<div id="BoiteNb">
|
||||
<label for="Inp_Valeur"> Veuillez rentrer votre nombre</label>
|
||||
<input type="text" id="Inp_Valeur">
|
||||
<button name="btntent" id="btntent">Verification</button>
|
||||
</div>
|
||||
</main>
|
||||
<footer>© Copyright 2019 by ME. All Rights Reserved.</footer>
|
||||
|
|
|
|||
34
JustePrix.js
34
JustePrix.js
|
|
@ -1,34 +0,0 @@
|
|||
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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in a new issue