Browse Source

Transférer les fichiers vers ''

master
BERDUGO Simon 3 years ago
parent
commit
ed06da147d
  1. 29
      pageaccueilphp.html
  2. 50
      projetjavascript.html

29
pageaccueilphp.html

@ -1,26 +1,15 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<title>casinoooooo</title>
<meta charset="utf-8">
<link href="styl.css" rel="stylesheet">
<meta charset="utf-8" />
<title>Page NSI</title>
</head>
<body>
<p>connexion</p>
<p id="a"></p>
<p>inscription</p>
<p id="b"></p>
<input type="button" value="connexion" onclick="nbAlea()">
<input type="button" value="inscription" onclick="regles()">
<?php
function familyName() {
<FORM Method="POST" Action="test.php">
Nom : <INPUT type=text size=20 name=nom><BR>
Prénom : <INPUT type=text size=20 name=prenom><BR>
Age : <INPUT type=text size=2 name=age><BR>
<INPUT type=submit value=Envoyer>
</FORM>;
}
?>
<p>Veuillez entrer le mot de passe pour passer à la page secrète :</p>
<form method="post" action="projetjavascript.html" >
<p>
<input type="password" name="mot_de_passe" />
<input type="submit" value="Valider" />
</p>
</body>
</html>

50
projetjavascript.html

@ -3,14 +3,28 @@
<head>
<title>casinoooooo</title>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet">
<link href="styl.css" rel="stylesheet">
</head>
<body>
<?php
if (isset($_POST[prenom]) AND $_POST[mot_de_passe] == "NSI42")
?>
<?php
}
else
{
<?php
header('Location:pagedaccueilphp.html');
exit();
?>
}
?>
<h1><marquee width="600" scrollamount="600"scrolldelay="500">casino jackpot </marquee></h1>
<input type="text" id="name"
minlength="4" maxlength="8" size="10" >
<input type="button" value="Démarrer la machine" onclick="nbAlea()">
<input type="button" value="affiche les régles" onclick="regles()">
<p id="a"></p>
<p id="b"></p>
<p id="c"></p>
@ -99,36 +113,6 @@ function regles(){
document.getElementById("e").innerHTML ="il y a "+ jeton_bac +" jetons dans la machine";}, 15000);
}
</script>
<css>
<lancer>
<div class="wrapper">
<a class="cta" href="#" onclick="nbAlea()">
<span>LANCER</span>
<span>
<svg width="66px" height="43px" viewBox="0 0 66 43">
</svg>
</span>
</a>
</div>
</lancer>
<regles>
<div class="wrapper">
<a class="cta" href="#" onclick="regles()">
<span>REGLES</span>
<span>
<svg width="66px" height="43px" viewBox="0 0 66 43">
</svg>
</span>
</a>
</div>
</regles>
<machineasous>
<div class="machineasous">
<img src="Machineàsous.png" width="828px" height="505px">
</div>
</machineasous>
</css>
</body>
</html>

Loading…
Cancel
Save