|
|
@ -108,7 +108,7 @@ function paintBoard( a) { |
|
|
|
currentblock -= (a + 1); |
|
|
|
} |
|
|
|
} |
|
|
|
document.getElementById("cont").style.width = (a * 52 + 52) + "px" |
|
|
|
document.getElementById("cont").style.width = (a * 52 + 52) + "px"; |
|
|
|
|
|
|
|
document.getElementById("cont").innerHTML = data; |
|
|
|
$("#cont").slideDown("slow"); |
|
|
@ -210,31 +210,6 @@ function registerLadder(tp, lft, dv, src, dest, i) { |
|
|
|
laddest[i] = dest; |
|
|
|
} |
|
|
|
|
|
|
|
// The below function checks the change in the boardtype selection combobox.
|
|
|
|
function selectBoard() { |
|
|
|
totblocks = 0; |
|
|
|
data = ""; |
|
|
|
currentblock = 0; |
|
|
|
|
|
|
|
hideAll(); |
|
|
|
if (document.getElementById("boardtype").value != null) { |
|
|
|
paintBoard(parseInt(document.getElementById("boardtype").value)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// The below function checks the change in the player selection combobox.
|
|
|
|
function selectPlayer() { |
|
|
|
if (document.getElementById("players").value != null) { |
|
|
|
user[document.getElementById("players").value - 1] = 0; |
|
|
|
tots[document.getElementById("players").value - 1] = 0; |
|
|
|
lastposition[document.getElementById("players").value - 1] = 0; |
|
|
|
for(var j = 0; j < lastposition.length; j++) { |
|
|
|
lastposition[j] = 0; |
|
|
|
tots[j] = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// The below function starts the play.
|
|
|
|
function play() { |
|
|
|
if (tots[l] != null) { |
|
|
@ -298,7 +273,7 @@ function question() { |
|
|
|
|
|
|
|
coranswered.concat(quest.splice(picked * 4, 4)); |
|
|
|
} else { |
|
|
|
alert("Η απάντηση δεν ήταν σωστή. Χάνεις τη σειρά σου για αυτό το γύρο!") |
|
|
|
alert("Η απάντηση δεν ήταν σωστή. Χάνεις τη σειρά σου για αυτό το γύρο!"); |
|
|
|
wroanswered.concat(quest.splice(picked * 4, 4)); |
|
|
|
} |
|
|
|
|
|
|
|