Skip to content

Commit

Permalink
synchrotime at the end of the game
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielKast committed Apr 25, 2011
1 parent 220d9d9 commit fbb7039
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions web/fr/player/play.html
Expand Up @@ -54,7 +54,7 @@ <h3 class="play none">Il est temps de répondre aux questions...</h3>
<a href='#' id='get_next_question' class="play">Voir la question suivante</a> </span>
</div>
<div class="waiting_to_begin">Nous attendons que tous les joueurs soient connectés</div>
<div class="play finish none" style="width:100%">
<div id="score_board" class="play finish none" style="width:100%">
<div>
Score: <span id="score">0</span>
</div>
Expand Down Expand Up @@ -360,7 +360,9 @@ <h3>Les meilleurs scores</h3>
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,
Expand Down Expand Up @@ -392,8 +394,10 @@ <h3>Les meilleurs scores</h3>
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);
Expand Down

0 comments on commit fbb7039

Please sign in to comment.