look, a bug!
This commit is contained in:
parent
597a7030c5
commit
3eb90e938f
6
quiz.js
6
quiz.js
|
@ -85,13 +85,13 @@ function switchToScoreboard() {
|
||||||
|
|
||||||
function updateScores() {
|
function updateScores() {
|
||||||
for(var i = 0; i < playerNames.length; i++) {
|
for(var i = 0; i < playerNames.length; i++) {
|
||||||
if (!playerNames[i])
|
if (playerNames[i]) {
|
||||||
continue;
|
// FIXME: eq(i) is bad when first player is empty
|
||||||
|
|
||||||
$('#scoreboard dl dd').eq(i).text(playerScores[i]);
|
$('#scoreboard dl dd').eq(i).text(playerScores[i]);
|
||||||
$('#players .player'+i+' .score').text(playerScores[i]);
|
$('#players .player'+i+' .score').text(playerScores[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Game screen is the one with the question in question
|
// Game screen is the one with the question in question
|
||||||
function switchToGame() {
|
function switchToGame() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user