thumbnail
This commit is contained in:
parent
479b632989
commit
4f7abafe8f
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<main class="container">
|
<main class="container">
|
||||||
<h1>LOTUS</h1>
|
<h1>L<img src="favicons/favicon-32x32.png" alt="O">TUS</h1>
|
||||||
<div id="grille"></div>
|
<div id="grille"></div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
@ -4,7 +4,8 @@ var motATrouver
|
|||||||
var lettresTrouvees
|
var lettresTrouvees
|
||||||
var nbLettres
|
var nbLettres
|
||||||
function nouvellePartie() {
|
function nouvellePartie() {
|
||||||
motATrouver = motsATrouver[Math.floor(motsATrouver.length * Math.random())].normalize("NFD").replace(/\p{Diacritic}/gu, "")
|
motATrouver = motsATrouver[Math.floor(motsATrouver.length * Math.pow(Math.random(), 1.5))]
|
||||||
|
motATrouver = motATrouver.normalize("NFD").replace(/\p{Diacritic}/gu, "")
|
||||||
motATrouver = Array.from(motATrouver)
|
motATrouver = Array.from(motATrouver)
|
||||||
nbLettres = motATrouver.length
|
nbLettres = motATrouver.length
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ function nouvelEssai() {
|
|||||||
input.maxLength = 1
|
input.maxLength = 1
|
||||||
input.size = 1
|
input.size = 1
|
||||||
input.pattern = "[a-z]"
|
input.pattern = "[a-z]"
|
||||||
|
input.placeholder = "."
|
||||||
input.onfocus = onfocus
|
input.onfocus = onfocus
|
||||||
input.onkeydown = onkeydown
|
input.onkeydown = onkeydown
|
||||||
input.oninput = oninput
|
input.oninput = oninput
|
||||||
|
14
style.css
14
style.css
@ -2,6 +2,15 @@ h1 {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h1 img {
|
||||||
|
background-color: var(--pico-h1-color);
|
||||||
|
border-radius: 100%;
|
||||||
|
background-origin: content-box;
|
||||||
|
padding: 0;
|
||||||
|
height: 0.7em;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
#grille {
|
#grille {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@ -19,12 +28,11 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lettre-bien-placee {
|
.lettre-bien-placee {
|
||||||
background-image: linear-gradient(#D93526D0, #D93526D0);
|
background-color: #D93526D0;
|
||||||
background-origin: content-box;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.lettre-mal-placee {
|
.lettre-mal-placee {
|
||||||
background-image: radial-gradient(ellipse at center, #FFBF00A0 70%, transparent 70%);
|
background-image: radial-gradient(ellipse at center, #FFBF00A0 70%, transparent 70%);
|
||||||
background-origin: content-box;
|
background-origin: border-box-box;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
BIN
thumbnail.png
Normal file
BIN
thumbnail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
x
Reference in New Issue
Block a user