pas d'infobulle sur les mots d'une lettre

This commit is contained in:
2025-12-05 09:11:20 +01:00
parent 27b6033625
commit aeb1d28672
2 changed files with 12 additions and 10 deletions

View File

@@ -145,14 +145,14 @@ function mot_courant($mots, $position) {
<?php else: ?>
<td class="case blanche">
<?php
$title = "";
$title = [];
$definition_horizontale = mot_courant($grille->definitions["horizontales"][$y], $x);
$definition_verticale = mot_courant($grille->definitions["verticales"][$x], $y);
if (isset($definition_horizontale[0])) $title .= "→ " . $definition_horizontale[0];
if (isset($definition_horizontale[1])) $title .= " (" . $definition_horizontale[1] . ")";
if (isset($definition_verticale[0])) $title .= "\n↓ " . $definition_verticale[0];
if (isset($definition_verticale[1])) $title .= " (" . $definition_verticale[1] . ")";
$title = htmlspecialchars($title);
if (isset($definition_horizontale[0])) $title[0] = "→ " . $definition_horizontale[0];
if (isset($definition_horizontale[1])) $title[0] .= " (" . $definition_horizontale[1] . ")";
if (isset($definition_verticale[0])) $title[1] = "↓ " . $definition_verticale[0];
if (isset($definition_verticale[1])) $title[1] .= " (" . $definition_verticale[1] . ")";
$title = htmlspecialchars(implode("\n", $title));
?>
<input id="<?= chr($x + 65) . ($y + 1) ?>" type="text" maxlength="1" size="1" pattern="[A-Z]"
title="<?=$title?>" />