Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vital-Vuillaume committed Aug 15, 2024
1 parent f4a96a5 commit eb009ad
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 22 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="text-reverse.css"/>
<script defer src="word.js"></script>
<script defer src="text-reverse.js"></script>
<link rel="icon" href="icone.png" type="image/png">
<link rel="icon" type="image/svg+xml" href="icone.svg">
Expand All @@ -22,9 +23,9 @@
<input class="input" type="text" placeholder="Remettez les lettres dans l'ordre..." maxlength="25">
<button class="btn bg" id="btnValider">Valider</button>
<div class="timer bg">Temps restant: 10</div>
<div class="score bg">Score: 0</div>
<div class="scoreBest bg">Meilleur score: 0</div>
</div>
<div class="score bg">Score: 0</div>
<div class="scoreBest bg">Meilleur score: 0</div>
<a class="footer bg" href="https://github.com/Vital-Vuillaume">ⓒ 2024 - Vital production</a>
</div>
</body>
Expand Down
27 changes: 26 additions & 1 deletion text-reverse.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ body {
padding: 7px;
position: absolute;
width: max-content;
transition: 1.2s;

}

Expand Down Expand Up @@ -68,13 +69,14 @@ body {
text-align: center;
bottom: 325px;
height: max-content;
border-radius: 0px;
transition: 1.2s;

}

.btn {

border: none;
transition: 1.2s;
cursor: pointer;
font-size: 1em;

Expand Down Expand Up @@ -171,4 +173,27 @@ body {
height: 90vh;

}

.input:focus {

bottom: 100px;

}

.input:focus ~ .score {
display: none;
}

.input:focus ~ .scoreBest {
display: none;
}

.input:focus ~ .btn:nth-child(2) {
bottom: 70px;
}

.input:focus ~ .timer {
bottom: 70px;
left: 110px;
}
}
19 changes: 0 additions & 19 deletions text-reverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,6 @@ const scoreBestTxt = document.querySelector(".scoreBest");
const popup = document.querySelector(".popup");
const popupBtn = document.getElementById("btnOk");

const words = `
bournmouth
plage
école
éduactionfirst
unionhouse
lunch
subway
papajones
ririburger
skyline
picadili
cantine
cash
bitcoin
crypto
avion
`;

const wordArray = words.trim().split('\n');

let score = 0;
Expand Down
18 changes: 18 additions & 0 deletions word.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const words = `
bournmouth
plage
école
éduactionfirst
unionhouse
lunch
subway
papajones
ririburger
skyline
picadili
cantine
cash
bitcoin
crypto
avion
`;

0 comments on commit eb009ad

Please sign in to comment.