From dbe228c6c20c927ed4eabc3cba48324b18a6e0a7 Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 28 Apr 2025 02:37:02 +0200 Subject: [PATCH] =?UTF-8?q?liste=20de=20d=C3=A9finitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dico.php | 4 ++-- index.php | 4 ++-- style.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dico.php b/dico.php index e55a600..e633651 100644 --- a/dico.php +++ b/dico.php @@ -62,9 +62,9 @@ function mots_espaces($longueur) foreach ($mots_de_n_lettres[$i] as $mot1) { foreach (mots_espaces($longueur - $i - 1) as $mot2) { if ($mot1 != $mot2) { - $dico["$mot1 $mot2"] = $dico[$mot1] && $dico[$mot2] ? "
  1. {$dico[$mot1]}
  2. {$dico[$mot2]}
" : $dico[$mot1] . $dico[$mot2]; + $dico["$mot1 $mot2"] = $dico[$mot1] && $dico[$mot2] ? "
  • {$dico[$mot1]}
  • {$dico[$mot2]}
  • " : $dico[$mot1] . $dico[$mot2]; yield "$mot1 $mot2"; - $dico["$mot2 $mot1"] = $dico[$mot2] && $dico[$mot1] ? "
    1. {$dico[$mot2]}
    2. {$dico[$mot1]}
    " : $dico[$mot2] . $dico[$mot1]; + $dico["$mot2 $mot1"] = $dico[$mot2] && $dico[$mot1] ? "
  • {$dico[$mot2]}
  • {$dico[$mot1]}
  • " : $dico[$mot2] . $dico[$mot1]; yield "$mot2 $mot1"; $nb_mots += 2; if ($nb_mots > MAX_MOTS) { diff --git a/index.php b/index.php index c342d6c..67a8173 100644 --- a/index.php +++ b/index.php @@ -106,7 +106,7 @@ $grille = new Grille($hauteur, $largeur, $id);

    Horizontalement

      -
    1. get_ligne($l, $largeur)] ?>
    2. +
      1. get_ligne($l, $largeur)] ?>
    @@ -114,7 +114,7 @@ $grille = new Grille($hauteur, $largeur, $id);

    Verticalement

      -
    1. get_colonne($c, $hauteur)] ?>
    2. +
      1. get_colonne($c, $hauteur)] ?>
    diff --git a/style.css b/style.css index 581edac..6aad88e 100644 --- a/style.css +++ b/style.css @@ -104,7 +104,7 @@ table.grille { } .definitions li ol { - padding-left: 1em; + padding-left: 0.8em; } .definitions li li::marker {