Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit a2480828 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

update traces

parent 1739efb0
......@@ -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(`ShiftKeyboard ${famille}`); showPanneau()});
vsm.addEventListener('click', function(){pngCalq.src="/static/png/03.png";btnFocus(vsm);famille="formes";saveTrace(`ShiftKeyboard ${famille}`); showPanneau()});
bch.addEventListener('click', function(){pngCalq.src="/static/png/04.png";btnFocus(bch);famille="bouches";saveTrace(`ShiftKeyboard ${famille}`); showPanneau()});
cpsg.addEventListener('click', function(){pngCalq.src="/static/png/06.png";btnFocus(cpsg);famille="coupes";saveTrace(`ShiftKeyboard ${famille}`); showPanneau()});
rien.addEventListener('click', function(){pngCalq.src='';btnFocus(rien);famille="formes";saveTrace(`shiftKeyboard ${famille}`); showPanneau()});
vsm.addEventListener('click', function(){pngCalq.src="/static/png/03.png";btnFocus(vsm);famille="formes";saveTrace(`shiftKeyboard ${famille}`); showPanneau()});
bch.addEventListener('click', function(){pngCalq.src="/static/png/04.png";btnFocus(bch);famille="bouches";saveTrace(`shiftKeyboard ${famille}`); showPanneau()});
cpsg.addEventListener('click', function(){pngCalq.src="/static/png/06.png";btnFocus(cpsg);famille="coupes";saveTrace(`shiftKeyboard ${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(`ShiftKeyboard ${famille}`); showPanneau()});
bch.addEventListener('click', function(){pngCalq.src="/static/png/05.png";btnFocus(bch);famille="bouches";saveTrace(`ShiftKeyboard ${famille}`); showPanneau()});
cpsg.addEventListener('click', function(){pngCalq.src="/static/png/06.png";btnFocus(cpsg);famille="formes";saveTrace(`ShiftKeyboard ${famille}`); showPanneau()});
vsm.addEventListener('click', function(){pngCalq.src="/static/png/03.png";btnFocus(vsm);famille="formes";saveTrace(`shiftKeyboard ${famille}`); showPanneau()});
bch.addEventListener('click', function(){pngCalq.src="/static/png/05.png";btnFocus(bch);famille="bouches";saveTrace(`shiftKeyboard ${famille}`); showPanneau()});
cpsg.addEventListener('click', function(){pngCalq.src="/static/png/06.png";btnFocus(cpsg);famille="formes";saveTrace(`shiftKeyboard ${famille}`); showPanneau()});
};
};
......
......@@ -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 serie ${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 serie ${serieName}`)
}
}
......
......@@ -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) {
......
Markdown is supported
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