summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/css/chat.css2
-rw-r--r--public/js/draw.js1
-rw-r--r--public/js/game.js2
3 files changed, 4 insertions, 1 deletions
diff --git a/public/css/chat.css b/public/css/chat.css
index 9805a86..dea2dc1 100644
--- a/public/css/chat.css
+++ b/public/css/chat.css
@@ -14,7 +14,7 @@
width: 250px;
}
#chat #chat_shim {
- height: 390px;
+ height: 310px;
}
#chat p {
margin: 0;
diff --git a/public/js/draw.js b/public/js/draw.js
index d97dba1..786b6b6 100644
--- a/public/js/draw.js
+++ b/public/js/draw.js
@@ -27,6 +27,7 @@ $(function(){
drawing = false;
lastpoint = null;
}
+ $("#chat-message").focus();
});
function clearWorkspace(){
workspaceCtx.fillStyle = "#fff";
diff --git a/public/js/game.js b/public/js/game.js
index c348e9a..010f01f 100644
--- a/public/js/game.js
+++ b/public/js/game.js
@@ -6,7 +6,9 @@ var Game = {
init: function(){
// Bind events from the server
+ socket.on('event-welcome', Events.receive.join);
socket.on('event-join', Events.receive.join);
+ socket.on('event-part', Events.receive.join);
socket.on('event-message', Events.receive.message);
socket.on('event-image', Events.receive.image);
Auth.init();