1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
addHandler(REQUESTS.ANSWER, function (data, timestamp) {
setGlobal("game_turn", true);
});
addHandler(REQUESTS.CHECK, function (data, timestamp) {
setGlobal("round_answerSelected", data.value);
setGlobal("round_answerCorrect", data.key); // order does matter (see game.js addVarListener)
delayedReady(REQUESTS.CHECK, false, timestamp);
});
addHandler(REQUESTS.DROP, function (data, timestamp) {
setGlobal("rate_drop", data);
//delayedReady(REQUESTS.DROP, true);
});
addHandler(REQUESTS.KICK, function (data, timestamp) {
displayMessage("", "Вы отключились от игры", {}, getGlobal("phrase_timer"), showWindow, "menu");
//showWindow('menu');
});