michel.wang
3 years ago
7 changed files with 51 additions and 68 deletions
Binary file not shown.
@ -1,68 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="fr"> |
|||
<head> |
|||
<title>Machine à sous NSI</title> |
|||
<meta charset="utf-8"> |
|||
<link href="stylepagecss/menu.css" rel="stylesheet"> |
|||
<link rel="icon" type="image/jpg" sizes="16x16" href="icon.jpg"> |
|||
<script src="app.js"></script> |
|||
</head> |
|||
<body> |
|||
<div class="title"> |
|||
<div class="title1"> |
|||
<p>machine à sous nsi.</p> |
|||
</div> |
|||
</div> |
|||
<div id="container rouleaux"> |
|||
<div class="wrapper"> |
|||
<div class="board item1"> |
|||
<div class="digit">0</div> |
|||
<div class="digit">1</div> |
|||
<div class="digit">2</div> |
|||
<div class="digit">3</div> |
|||
<div class="digit">4</div> |
|||
<div class="digit">5</div> |
|||
<div class="digit">6</div> |
|||
<div class="digit">7</div> |
|||
<div class="digit">8</div> |
|||
<div class="digit">9</div> |
|||
</div> |
|||
<div class="board item3"> |
|||
<div class="digit">0</div> |
|||
<div class="digit">1</div> |
|||
<div class="digit">2</div> |
|||
<div class="digit">3</div> |
|||
<div class="digit">4</div> |
|||
<div class="digit">5</div> |
|||
<div class="digit">6</div> |
|||
<div class="digit">7</div> |
|||
<div class="digit">8</div> |
|||
<div class="digit">9</div> |
|||
</div> |
|||
<div class="board item3"> |
|||
<div class="digit">0</div> |
|||
<div class="digit">1</div> |
|||
<div class="digit">2</div> |
|||
<div class="digit">3</div> |
|||
<div class="digit">4</div> |
|||
<div class="digit">5</div> |
|||
<div class="digit">6</div> |
|||
<div class="digit">7</div> |
|||
<div class="digit">8</div> |
|||
<div class="digit">9</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="button"> |
|||
<button class="btn btn_1">Regle</button> |
|||
<button class="btn btn_2" id="valider">Lancer</button> |
|||
</div> |
|||
<div id="jeton"> |
|||
<h2>Jetons dans la machine : <h2 id="machine_coins"></h2> |
|||
</h2> |
|||
<h2>Jetons du joueur : <h2 id="player_coins"></h2> |
|||
</h2> |
|||
</div> |
|||
<input id="mise"> |
|||
</body> |
|||
</html> |
@ -0,0 +1,32 @@ |
|||
<?php |
|||
if (isset($_POST['submit'])) { |
|||
if (isset($_POST['username']) AND isset($_POST[username])) { |
|||
$username = htmlspecialchars($_POST['username']) |
|||
$password = htmlspecialchars($_POST['password']) |
|||
|
|||
if ($password == "NSI") { |
|||
setcookie("logged", $username, 120) |
|||
header('location: google.fr') |
|||
} |
|||
} |
|||
} |
|||
?> |
|||
<!DOCTYPE html> |
|||
<html lang="fr"> |
|||
<head> |
|||
<title>M A C H I N E</title> |
|||
<meta charset="utf-8"> |
|||
<link href="stylepagecss/style.css" rel="stylesheet"> |
|||
<link rel="icon" type="image/jpg" sizes="16x16" href="icon.jpg"> |
|||
</head> |
|||
|
|||
<body> |
|||
<div> |
|||
<form method="post" action=""> |
|||
<input type="text" name="username"> |
|||
<input type="text" name="password"> |
|||
<input type="submit" value="Valider" name="submit"> |
|||
</form> |
|||
</div> |
|||
</body> |
|||
</html> |
Loading…
Reference in new issue