Browse Source

update js machine à sous

master
jean-lou.saulnier 3 years ago
parent
commit
554705727a
  1. 9
      Index.html
  2. BIN
      image/casino.png
  3. BIN
      image/logo.png
  4. 3
      lien.txt
  5. 25
      main.js
  6. 30
      styles.css
  7. 5
      test.html

9
Index.html

@ -12,7 +12,11 @@
</head>
<body>
<<<<<<< HEAD
<img src="logo.jpeg">
=======
<img class=logo src="image/logo.png">
>>>>>>> 3383835b05463931dd62f7429baf70f24d275ae5
<div class="loader">
@ -23,6 +27,11 @@
<span class="lettre">7</span>
</div>
<<<<<<< HEAD
=======
>>>>>>> 3383835b05463931dd62f7429baf70f24d275ae5
<script src="loading.js"></script>
<script src="main.js"></script>

BIN
image/casino.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

BIN
image/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

3
lien.txt

@ -0,0 +1,3 @@
https://gpatuwo.github.io/css-casino/
https://fontmeme.com/polices/police-casino-queen/
https://codepen.io/imetaxas/pen/YGQXwK

25
main.js

@ -1,19 +1,28 @@
//let machine_sous = new Object();
let argent = ""
let argent
let nombres = []
let bank = 1000
let mise = -1
let mise
let gains = 0
function controle(){
function start(){
argent = document.getElementById("input").value;
test(15);
regle();
test();
}
function test(taille){
for(let i=0; i<taille; i++){
console.log(i)
}
function test(){
console.log(argent)
}
function regle(){
console.log("les règles sont ..............");
console.log("Mais aussi ça .............");
}
function saisie(){
mise = document.getElementById("argent").value;
bank += mise;
argent -= mise;
console.log(bank)
}

30
styles.css

@ -1,3 +1,12 @@
.logo {
position:absolute;
right: 41%
}
.loader {
position: absolute;
@ -19,7 +28,6 @@
.lettre {
color: #9700ff;
font-family: casino;
font-size: 80px;
@ -92,6 +100,26 @@
}
.card-fan {
position: absolute;
width: 200px;
transform-origin: bottom;
transition: all .3s linear;
}
.cards-fan-container:hover #ten-fan{
transform: rotate(20deg)
}
.cards-fan-container:hover #ace-fan{
transform: rotate(-20deg)
}
.cards-fan-container:hover #jack-fan{
transform: rotate(10deg)
}
.cards-fan-container:hover #king-fan{
transform: rotate(-10deg)
}
@font-face {
font-family: "casino";
src: url("/police/casino.TTF") format("woff2"),

5
test.html

@ -15,7 +15,10 @@
<img src="logo.jpeg">
<input type="text" id="input" name="input" value=""><br>
<input type="button" id="bouton" value="Contrôler" onclick="controle()">
<input type="button" id="bouton" value="Contrôler" onclick="start()"><br><br>
<input type="text" id="argent" name="argent" value=""><br>
<input type="button" id="bouton" value="Contrôler" onclick="saisie()">
<script src="main.js"></script>

Loading…
Cancel
Save