audio2
This commit is contained in:
parent
d567cf2204
commit
b35a04146a
@ -348,13 +348,14 @@
|
||||
//http://translate.google.com/translate_tts?ie=UTF-8&q=bravo%2C%20tu%20as%20gagn%C3%A9&tl=fr
|
||||
//http://translate.google.com/translate_tts?ie=UTF-8&q=bravo%2C%20tu%20as%20gagn%C3%A9&tl=fr&total=1&idx=0&textlen=18&client=t&prev=input
|
||||
//une petite voix dit à l'utilisateur qu'il a gagné
|
||||
|
||||
this.game.appendChild(this.gameMessages);
|
||||
document.getElementById("mg__onend--restart").addEventListener( "click", function(e) {
|
||||
document.location.href="/memo";
|
||||
var temps = Math.ceil(((new Date()) - dateDebut)/60000);
|
||||
var texteADire = (temps <= 1) ? "Bravo, tu as mis moins d'une minute." :
|
||||
"Bravo, tu as mis "+temps+" minutes. ";;
|
||||
responsiveVoice.speak(texteADire, "French Female");
|
||||
this.game.appendChild(this.gameMessages);
|
||||
document.getElementById("mg__onend--restart").addEventListener( "click", function(e) {
|
||||
document.location.href="/memo";
|
||||
});
|
||||
} else {
|
||||
// run callback
|
||||
|
Reference in New Issue
Block a user