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 {