Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added gamestart event. Fixed yourturn banner.

  • Loading branch information...
commit 95b4759acd9d4c72d70fbb1bf6e0a9d10e0e72bb 1 parent 40be60b
@dshaw dshaw authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 public/js/socket.js
View
13 public/js/socket.js
@@ -35,10 +35,15 @@
}
},
destroyed : function(message) {
+ var msg = message.msg;
+ console.log(msg);
+ global.APPVIEW.next_page();
+ },
+ gamestart : function(message) {
var msg = message.msg;
console.log(msg);
- global.APPVIEW.next_page();
- },
+ alert(msg)
+ },
// not implemented
gravatar : function(message) {
var msg = message.msg || "";
@@ -83,8 +88,8 @@
yourturn : function(message) {
var msg = message.msg || "";
console.log(msg);
- $("#yourturn").slideDown();
- global.Target_Gameboard.set_your_turn(true);
+ $("#yourturn").show();
+ global.Target_Gameboard.set_your_turn(true);
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.