This commit is contained in:
2026-01-19 00:17:42 +01:00
parent d3193b9013
commit f0d735e220
4 changed files with 10006 additions and 9975 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -84,7 +84,7 @@ body > main {
<footer class="container">
<form id="formulaire" action="question.php" method="post" role="group">
<textarea id="question" name="question" placeholder="Ma question" required></textarea>
<button id="bouton_envoyer" type="submit">Envoyer</button>
<button id="bouton_envoyer" type="submit">?</button>
</form>
</footer>
<dialog id="boite_synthese_vocale">
@@ -190,6 +190,8 @@ body > main {
if (bouton_envoyer.disabled == true) return;
bouton_envoyer.disabled = true;
let bouton_envoyer_innerHTML = bouton_envoyer.innerHTML;
bouton_envoyer.innerHTML = "";
bouton_envoyer.setAttribute("aria-busy", true)
const formulaireData = new FormData(formulaire);
const citation = document.createElement('article');
@@ -206,7 +208,7 @@ body > main {
method: formulaire.method,
body: formulaireData
});
paragraphe.setAttribute('aria-busy', 'false');
paragraphe.setAttribute('aria-busy', 'true');
const reponse = await requete.text();
paragraphe.setAttribute('aria-busy', 'false');
@@ -233,6 +235,7 @@ body > main {
conversation.scrollTop = conversation.scrollHeight;
bouton_envoyer.disabled = false;
bouton_envoyer.setAttribute("aria-busy", false);
bouton_envoyer.innerHTML = bouton_envoyer_innerHTML;
question.focus()
}, t);
})

View File

@@ -7,7 +7,7 @@ $suivants = [];
$total = [];
// Lire le fichier fra_mixed_2009_100K-sentences.txt
$fichier = fopen("fra_mixed_2009_10K-sentences.txt", "r");
$fichier = fopen("fra_wikipedia_2021_10K-sentences.txt", "r");
if ($fichier) {
while (($phrase = fgets($fichier)) !== false) {
$antepenultieme = "";