From e75184713039b4cf4d81434e64be739f13f606d3 Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 19 Jan 2026 23:43:33 +0100 Subject: [PATCH] icones --- index.html | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 986ef25..831df18 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,7 @@ Chatβeta* + @@ -77,10 +78,6 @@ body > main { z-index: 10; } -#bouton_reconnaissance_vocale:hover { - filter: brightness(1.2); -} - #bouton_envoyer { padding: 1rem; } @@ -98,7 +95,7 @@ body > main {
@@ -108,9 +105,9 @@ body > main {
- +
- +
@@ -118,7 +115,7 @@ body > main {

- 🔊 Synthèse vocale + Synthèse vocale

@@ -149,7 +146,6 @@ const bouton_annuler = document.getElementById('bouton_annuler'); const bouton_ok = document.getElementById('bouton_ok'); const footer = document.querySelector('footer'); const langue = document.documentElement.lang; -let voix = null; let utterance = null; question.onkeydown = function(e) { @@ -235,7 +231,7 @@ function charger_voix() { } speechSynthesis.removeEventListener('voiceschanged', charger_voix); - + utterance = new SpeechSynthesisUtterance(); utterance.lang = langue; utterance.rate = 1; @@ -249,7 +245,7 @@ function charger_voix() { select_voix.value = i; utterance.voice = voix; option.selected = true; - bouton_synthese_vocale.innerHTML = "🔊"; + bouton_synthese_vocale.innerHTML = ``; } }) @@ -266,11 +262,11 @@ function charger_voix() { let voix = liste_voix[select_voix.value]; utterance.voice = voix; window.localStorage.setItem('voix', voix.voiceURI); - bouton_synthese_vocale.innerHTML = "🔊"; + bouton_synthese_vocale.innerHTML = ``; } else { utterance.voice = null; window.localStorage.removeItem('voix'); - bouton_synthese_vocale.innerHTML = "🔈"; + bouton_synthese_vocale.innerHTML = ``; } }; }