Commit 57bdb5c2 authored by Sylvain Coulange's avatar Sylvain Coulange 🌼
Browse files

ajout mot feedback serie random

parent edf915d9
......@@ -486,6 +486,9 @@ function getBravo(mot) {
} else {
document.getElementById("bravo_text").innerHTML = "Bravo !"
}
if (random) {
document.getElementById("bravo_text").innerHTML += "<br/><span style='font-size:2rem;font-weight:normal'>"+mot["motGenerique"]+"</span>"
}
}
bravoDiv.style.display = "block"
......
// Fonctions utilisées par le player automatique (suggestion de mots aléatoires)
var cheat = []
async function getPhono(mot) {
// OUTPUT: "outText": liste(mots) de liste(phonologies) de liste(phonemes) [+stress1,stress2,schwa]
......@@ -21,6 +22,7 @@ async function getPhono(mot) {
const response = await fetch('https://wikicolor.alem-app.fr/getPhonoOf/', options); //'http://127.0.0.1:9000/getPhonoOf/', options); //
const data = await response.json();
console.log(data);
cheat = data["outText"][0]
return data
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment