Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
Phonographe
Commits
a2480828
Commit
a2480828
authored
Mar 25, 2021
by
Sylvain Coulange
Browse files
update traces
parent
1739efb0
Changes
3
Hide whitespace changes
Inline
Side-by-side
static/js/clavierCalques.js
View file @
a2480828
...
...
@@ -14,18 +14,18 @@ function setKeyboards(bgColor) {
// Clavier par défaut :
pngPochoir
.
src
=
"
/static/png/01.png
"
;
pngCalq
.
src
=
"
/static/png/04.png
"
;
rien
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
''
;
btnFocus
(
rien
);
famille
=
"
formes
"
;
saveTrace
(
`
S
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
vsm
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/03.png
"
;
btnFocus
(
vsm
);
famille
=
"
formes
"
;
saveTrace
(
`
S
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
bch
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/04.png
"
;
btnFocus
(
bch
);
famille
=
"
bouches
"
;
saveTrace
(
`
S
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
cpsg
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/06.png
"
;
btnFocus
(
cpsg
);
famille
=
"
coupes
"
;
saveTrace
(
`
S
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
rien
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
''
;
btnFocus
(
rien
);
famille
=
"
formes
"
;
saveTrace
(
`
s
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
vsm
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/03.png
"
;
btnFocus
(
vsm
);
famille
=
"
formes
"
;
saveTrace
(
`
s
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
bch
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/04.png
"
;
btnFocus
(
bch
);
famille
=
"
bouches
"
;
saveTrace
(
`
s
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
cpsg
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/06.png
"
;
btnFocus
(
cpsg
);
famille
=
"
coupes
"
;
saveTrace
(
`
s
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
}
else
if
(
bgColor
==
'
white
'
)
{
// Clavier par défaut :
pngPochoir
.
src
=
"
/static/png/02.png
"
;
pngCalq
.
src
=
"
/static/png/05.png
"
;
rien
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
''
;
btnFocus
(
rien
);
famille
=
"
formes
"
});
vsm
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/03.png
"
;
btnFocus
(
vsm
);
famille
=
"
formes
"
;
saveTrace
(
`
S
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
bch
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/05.png
"
;
btnFocus
(
bch
);
famille
=
"
bouches
"
;
saveTrace
(
`
S
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
cpsg
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/06.png
"
;
btnFocus
(
cpsg
);
famille
=
"
formes
"
;
saveTrace
(
`
S
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
vsm
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/03.png
"
;
btnFocus
(
vsm
);
famille
=
"
formes
"
;
saveTrace
(
`
s
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
bch
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/05.png
"
;
btnFocus
(
bch
);
famille
=
"
bouches
"
;
saveTrace
(
`
s
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
cpsg
.
addEventListener
(
'
click
'
,
function
(){
pngCalq
.
src
=
"
/static/png/06.png
"
;
btnFocus
(
cpsg
);
famille
=
"
formes
"
;
saveTrace
(
`
s
hiftKeyboard
${
famille
}
`
);
showPanneau
()});
};
};
...
...
static/js/playerPhono.js
View file @
a2480828
...
...
@@ -111,7 +111,7 @@ function recupPhon(identifiant) {
newCarte
.
classList
.
remove
(
'
dragging
'
)
let
listCartes
=
[]
for
(
i
=
0
;
i
<
rep
.
children
.
length
;
i
++
)
listCartes
.
push
(
Array
.
from
(
rep
.
children
[
i
].
classList
).
join
(
"
.
"
))
saveTrace
(
"
drag to
"
+
listCartes
.
join
(
'
'
))
saveTrace
(
`
drag to
${
listCartes
.
join
(
'
'
)
}
`
)
})
repDiv
.
appendChild
(
newCarte
)
...
...
@@ -150,7 +150,7 @@ function demarrer() {
document
.
getElementById
(
'
divConsigne
'
).
style
.
display
=
"
block
"
document
.
getElementById
(
'
divReponse
'
).
style
.
display
=
""
cptitem
=
0
saveTrace
(
'
Démarrage
s
é
rie
'
+
serieName
)
saveTrace
(
`start
s
e
rie
${
serieName
}
`
)
loadNext
()
}
...
...
@@ -158,7 +158,7 @@ function demarrer() {
function
loadNext
()
{
document
.
getElementById
(
"
bravo
"
).
style
.
display
=
"
none
"
if
(
cptitem
<
nbmots
)
{
saveTrace
(
"
next
'
"
+
mots
[
cptitem
][
"
motGenerique
"
]
+
"
'
"
)
saveTrace
(
`
next
${
mots
[
cptitem
][
"
motGenerique
"
]
}
`
)
rep
.
innerHTML
=
""
if
(
audioMode
)
{
currentAudio
=
mots
[
cptitem
][
"
audio
"
]
...
...
@@ -175,7 +175,7 @@ function loadNext() {
}
else
{
getFelicitations
()
playEffect
(
"
success
"
)
saveTrace
(
'
fin
s
é
rie
'
+
serieName
)
saveTrace
(
`end
s
e
rie
${
serieName
}
`
)
}
}
...
...
static/js/syntheseVocale.js
View file @
a2480828
...
...
@@ -73,7 +73,7 @@ async function playIpa() {
sv_audio
.
play
();
}
saveTrace
(
`playIpa [
${
ipa
}
]
${
voix
}
${
lang
}
`
)
saveTrace
(
`playIpa [
${
ipa
}
]
${
voix
}
${
lang
}
${
document
.
getElementById
(
'
debitParole
'
).
value
}
`
)
}
function
readResponse
(
response
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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