Browse Source

Transférer les fichiers vers ''

master
CHASSAGNOL Bruno 3 years ago
parent
commit
ea4d087fbb
  1. 39
      projetjavascript.html

39
projetjavascript.html

@ -3,15 +3,14 @@
<head> <head>
<title>casinoooooo</title> <title>casinoooooo</title>
<meta charset="utf-8"> <meta charset="utf-8">
<link href="styl.css" rel="stylesheet"> <link href="style.css" rel="stylesheet">
</head> </head>
<body> <body>
<h1><marquee width="600" scrollamount="600"scrolldelay="500">casino jackpot </marquee></h1>
<input type="text" id="name" <input type="text" id="name"
minlength="4" maxlength="8" size="10" > 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="a"></p>
<p id="b"></p> <p id="b"></p>
<p id="c"></p> <p id="c"></p>
@ -99,7 +98,37 @@ function regles(){
setTimeout (() => {document.getElementById("d").innerHTML ="vous avez "+jeton_joueur+" jetons", setTimeout (() => {document.getElementById("d").innerHTML ="vous avez "+jeton_joueur+" jetons",
document.getElementById("e").innerHTML ="il y a "+ jeton_bac +" jetons dans la machine";}, 15000); document.getElementById("e").innerHTML ="il y a "+ jeton_bac +" jetons dans la machine";}, 15000);
} }
</script> </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> </body>
</html> </html>

Loading…
Cancel
Save