+ toggleChat: function() {
+ document.getElementById("chatBtn").style.backgroundColor = "#e2e2e2";
+ },
+ finishSendChat: function(chat) {
+ if (this.game.type == "corr")
+ GameStorage.update(this.gameRef.id, {chat: chat});
+ },
+ processChat: function() {
+ if (!document.getElementById("inputChat").checked)
+ document.getElementById("chatBtn").style.backgroundColor = "#c5fefe";
+ },
+ gameOver: function(score, scoreMsg) {