From fbb7039b4f0a1ec12f23831ace8818be610dfd77 Mon Sep 17 00:00:00 2001 From: Gabriel Kastenbaum Date: Tue, 26 Apr 2011 00:42:08 +0200 Subject: [PATCH] synchrotime at the end of the game --- web/fr/player/play.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/fr/player/play.html b/web/fr/player/play.html index 9ff93c1..935b40c 100644 --- a/web/fr/player/play.html +++ b/web/fr/player/play.html @@ -54,7 +54,7 @@

Il est temps de répondre aux questions...

Voir la question suivante
Nous attendons que tous les joueurs soient connectés
-
+
Score: 0
@@ -360,7 +360,9 @@

Les meilleurs scores

if (question_nb++ === 20) { // The end!! $(".play").each(hide_this); - $(".finish").each(show_this); + $("#score_board").show(); + var show_finish=function(){$(".finish").each(show_this) ; }; + setTimeout(show_finish, 8000); } else { var error_get_next_question = function(jqXHR, textStatus, @@ -392,8 +394,10 @@

Les meilleurs scores

if (question_nb === 20) { // The end!! $(".play").each(hide_this); - $(".finish").each(show_this); - } + $("#score_board").show(); + var show_finish=function(){$(".finish").each(show_this) ; }; + setTimeout(show_finish, 8000); + } }; $.get('/api/question/' + question_nb).success(question) .error(error_get_next_question);