Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
Phonographe
Commits
57bdb5c2
Commit
57bdb5c2
authored
Jan 09, 2023
by
Sylvain Coulange
🌼
Browse files
ajout mot feedback serie random
parent
edf915d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
static/js/playerPhono.js
View file @
57bdb5c2
...
...
@@ -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
"
...
...
static/js/playerPhonoAuto.js
View file @
57bdb5c2
// 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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment