mirror of
https://framagit.org/JonathanMM/sutom.git
synced 2024-05-09 09:16:45 +02:00
Compare commits
7 commits
a4aef5903c
...
58db9c65ad
Author | SHA1 | Date | |
---|---|---|---|
58db9c65ad | |||
2fa99d2a2e | |||
999d7ef326 | |||
ee29afd206 | |||
7200280c17 | |||
4ec1bf5975 | |||
aa1bcacc77 |
|
@ -2,6 +2,7 @@
|
|||
--taille-cellule: 48px;
|
||||
--epaisseur-bordure-cellule: 1px;
|
||||
--epaisseur-padding-cellule: 2px;
|
||||
--couleur-bar-max: rgb(231, 0, 42);
|
||||
--couleur-bien-place: rgb(231, 0, 42);
|
||||
--couleur-mal-place: rgb(255, 189, 0);
|
||||
--couleur-fond-grille: rgb(0, 119, 199);
|
||||
|
@ -37,8 +38,9 @@ body {
|
|||
font-family: "Roboto Regular", Ubuntu, Arial, Helvetica, sans-serif;
|
||||
font-size: 32px;
|
||||
background-color: var(--couleur-fond);
|
||||
height: 100vh;
|
||||
min-height: -webkit-fill-available; /* Seulement pour safari et sa flotting bar */
|
||||
max-height: 95vh;
|
||||
height: 95vh;
|
||||
height: -webkit-fill-available; /* Seulement pour safari et sa flotting bar */
|
||||
text-align: center;
|
||||
color: var(--couleur-police);
|
||||
margin: 0;
|
||||
|
@ -157,6 +159,7 @@ h1 {
|
|||
max-width: 100%;
|
||||
width: calc(100% - 5px);
|
||||
max-width: 500px;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.input-ligne {
|
||||
|
@ -414,7 +417,7 @@ h1 {
|
|||
}
|
||||
|
||||
.stats-bar.bar-max {
|
||||
background-color: var(--couleur-bien-place);
|
||||
background-color: var(--couleur-bar-max);
|
||||
}
|
||||
|
||||
.stats-valeur {
|
||||
|
|
|
@ -131,7 +131,7 @@ export default class ConfigurationPanel {
|
|||
|
||||
contenu.appendChild(
|
||||
this.genererConfigItem(
|
||||
"Retour haptique (si votre navigateur est compatique)",
|
||||
"Retour haptique (si votre navigateur est compatible)",
|
||||
[
|
||||
{ value: false.toString(), label: "Non" },
|
||||
{ value: true.toString(), label: "Oui" },
|
||||
|
|
|
@ -7,6 +7,17 @@ export default class NotesMaJPanel {
|
|||
private readonly _panelManager: PanelManager;
|
||||
|
||||
private readonly _notes = [
|
||||
{
|
||||
version: 512,
|
||||
notes: [
|
||||
"Correction du non affichage du bouton Partie de la veille",
|
||||
"Ajustement de la hauteur du jeu sur certains téléphones",
|
||||
"Correction de la couleur de la longue barre des statistiques",
|
||||
"Ajout des couleurs dans les stats pour les terminaux sans emoji",
|
||||
"Correction d'une coquille dans les options",
|
||||
"Résolution d'un problème de selection de texte sur le clavier",
|
||||
],
|
||||
},
|
||||
{
|
||||
version: 500,
|
||||
notes: [
|
||||
|
|
|
@ -129,9 +129,9 @@ export default class Sauvegardeur {
|
|||
veille.setDate(veille.getDate() - 1);
|
||||
|
||||
return (
|
||||
veille.getDate() === partieVeille.datePartie.getDate() &&
|
||||
veille.getMonth() === partieVeille.datePartie.getMonth() &&
|
||||
veille.getFullYear() === partieVeille.datePartie.getFullYear() &&
|
||||
veille.getDate() !== partieVeille.datePartie.getDate() ||
|
||||
veille.getMonth() !== partieVeille.datePartie.getMonth() ||
|
||||
veille.getFullYear() !== partieVeille.datePartie.getFullYear() ||
|
||||
!partieVeille.dateFinPartie
|
||||
);
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ export default class StatistiquesDisplayer {
|
|||
|
||||
statsNumeriques.appendChild(this.creerStatNumerique("Victoires", stats.partiesGagnees, stats.partiesJouees));
|
||||
statsNumeriques.appendChild(this.creerStatNumerique("Moyenne", this.getMoyenne(stats.repartition)));
|
||||
statsNumeriques.appendChild(this.creerStatNumerique("Lettres 🟥", stats.lettresRepartitions.bienPlace));
|
||||
statsNumeriques.appendChild(this.creerStatNumerique("Lettres 🟡", stats.lettresRepartitions.malPlace));
|
||||
statsNumeriques.appendChild(this.creerStatNumerique("Lettres 🟦", stats.lettresRepartitions.nonTrouve));
|
||||
statsNumeriques.appendChild(this.creerStatNumerique('Lettres <span class="emoji-carre-rouge">🟥</span>', stats.lettresRepartitions.bienPlace));
|
||||
statsNumeriques.appendChild(this.creerStatNumerique('Lettres <span class="emoji-cercle-jaune">🟡</span>', stats.lettresRepartitions.malPlace));
|
||||
statsNumeriques.appendChild(this.creerStatNumerique('Lettres <span class="emoji-carre-bleu">🟦</span>', stats.lettresRepartitions.nonTrouve));
|
||||
|
||||
statsArea.appendChild(statsNumeriques);
|
||||
|
||||
|
@ -105,7 +105,7 @@ export default class StatistiquesDisplayer {
|
|||
|
||||
const labelDiv = document.createElement("div");
|
||||
labelDiv.className = "stats-numerique-case-label";
|
||||
labelDiv.innerText = label;
|
||||
labelDiv.innerHTML = label;
|
||||
caseDiv.appendChild(labelDiv);
|
||||
|
||||
return caseDiv;
|
||||
|
|
Loading…
Reference in a new issue