From 36c10169f6bfa0595d228fac720ac06dd5b36818 Mon Sep 17 00:00:00 2001 From: adrien Date: Tue, 20 Jan 2026 13:38:35 +0100 Subject: [PATCH] material icons --- index.html | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 3bc31d2..41dc5eb 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Chatβeta* - + @@ -21,6 +21,11 @@ body { min-height: var(--vph); } +.material-symbols-outlined { + font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; + font-size: 1em; +} + @media screen and (min-height: 600px) { body { height: var(--vph); @@ -90,7 +95,9 @@ body > main {
@@ -100,9 +107,13 @@ body > main {
- +
- +
@@ -110,7 +121,7 @@ body > main {

- Synthèse vocale + text_to_speech Synthèse vocale

@@ -238,7 +249,7 @@ function charger_voix() { option.selected = true; select_voix.value = i; utterance.voice = voix; - bouton_synthese_vocale.innerHTML = ``; + bouton_synthese_vocale.innerHTML = `volume_up`; } }) @@ -252,11 +263,11 @@ function charger_voix() { utterance.voice = voix; voix_selectionnee = voix.voiceURI; window.localStorage.setItem('voiceURI', voix.voiceURI); - bouton_synthese_vocale.innerHTML = ``; + bouton_synthese_vocale.innerHTML = `volume_up`; } else { voix_selectionnee = null; window.localStorage.removeItem('voiceURI'); - bouton_synthese_vocale.innerHTML = ``; + bouton_synthese_vocale.innerHTML = `volume_mute`; } }; bouton_synthese_vocale.onclick = function() { @@ -285,9 +296,7 @@ if (SpeechRecognition) { reconnaissance.continuous = false; reconnaissance.interimResults = false; reconnaissance.maxAlternatives = 1; - bouton_reconnaissance_vocale_inner_HTML = bouton_reconnaissance_vocale.innerHTML - bouton_reconnaissance_vocale.innerHTML = "" - bouton_reconnaissance_vocale.setAttribute("aria-busy", true) + bouton_reconnaissance_vocale.classList.add("contrast") reconnaissance.onresult = function(event) { const transcript = event.results[0][0].transcript; @@ -298,8 +307,7 @@ if (SpeechRecognition) { reconnaissance.onerror = reconnaissance.onnomatch = function () { reconnaissance.stop(); - bouton_reconnaissance_vocale.setAttribute("aria-busy", false) - bouton_reconnaissance_vocale.innerHTML = bouton_reconnaissance_vocale_inner_HTML + bouton_reconnaissance_vocale.classList.remove("contrast") }; reconnaissance.start();