|
@ -6,11 +6,15 @@ |
|
|
<link href="style.css" rel="stylesheet"> |
|
|
<link href="style.css" rel="stylesheet"> |
|
|
</head> |
|
|
</head> |
|
|
<body> |
|
|
<body> |
|
|
|
|
|
<?php |
|
|
|
|
|
if (isset($_POST['motdepasse']) AND $_POST['motdepasse'] == "NSI42") |
|
|
|
|
|
{ |
|
|
|
|
|
?> |
|
|
|
|
|
|
|
|
<div class="entree"> |
|
|
<input type="text" id="name" class="entree" |
|
|
<input type="text" id="name" |
|
|
|
|
|
minlength="4" maxlength="8" size="10" > |
|
|
minlength="4" maxlength="8" size="10" > |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p id="a"></p> |
|
|
<p id="a"></p> |
|
|
<p id="b"></p> |
|
|
<p id="b"></p> |
|
@ -19,6 +23,7 @@ |
|
|
<p id="e"></p> |
|
|
<p id="e"></p> |
|
|
<p id="f"></p> |
|
|
<p id="f"></p> |
|
|
<p id="g"></p> |
|
|
<p id="g"></p> |
|
|
|
|
|
<p id="h"></p> |
|
|
<script> |
|
|
<script> |
|
|
var jeton_joueur=100; |
|
|
var jeton_joueur=100; |
|
|
function gain(x){ |
|
|
function gain(x){ |
|
@ -29,7 +34,7 @@ function gain(x){ |
|
|
document.getElementById("f").innerHTML="vous avez " |
|
|
document.getElementById("f").innerHTML="vous avez " |
|
|
|
|
|
|
|
|
document.getElementById("d").innerHTML =jeton_joueur+" jetons"; |
|
|
document.getElementById("d").innerHTML =jeton_joueur+" jetons"; |
|
|
document.getElementById("e").innerHTML = "il n y a plus de jetons dans la machine,le jeu s'arrete "; |
|
|
document.getElementById("h").innerHTML = "il n y a plus de jetons,le jeu s'arrete "; |
|
|
return jeton_joueur; |
|
|
return jeton_joueur; |
|
|
} |
|
|
} |
|
|
else if (resultat==2){ |
|
|
else if (resultat==2){ |
|
@ -101,7 +106,7 @@ function nbAlea(){ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else{ |
|
|
else{ |
|
|
document.getElementById("e").innerHTML = "la saisie n'est pas ,ou plus valide"; |
|
|
document.getElementById("h").innerHTML = "la saisie n'est pas ,ou plus valide"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
function regles(){ |
|
|
function regles(){ |
|
@ -142,6 +147,13 @@ function regles(){ |
|
|
</div> |
|
|
</div> |
|
|
</machineasous> |
|
|
</machineasous> |
|
|
</article1> |
|
|
</article1> |
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
echo '<p>Mot de passe incorrect</p>'; |
|
|
|
|
|
} |
|
|
|
|
|
?> |
|
|
</body> |
|
|
</body> |
|
|
</html> |
|
|
</html> |
|
|
|
|
|
|
|
|