Permalink
Browse files

Merge branch 'master' of https://github.com/neojp/irc.bejes.us

  • Loading branch information...
2 parents af14e6a + f4944ba commit 8435201af7cbb91c8e96c1444cf0605e60fcbdb6 @DanBUK committed Feb 6, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 public/index.html
View
@@ -61,6 +61,7 @@
+ '<th class="author">' + from + '</th>'
+ '<td class="msg">' + message + '</td>';
chatBody.appendChild(row);
+ scrollBody();
}
var handleMessage = function (data) {
var obj = JSON.parse(data);
@@ -101,6 +102,9 @@
sendMessage();
}
}
+ var scrollBody = function() {
+ document.body.scrollTop = document.body.clientHeight;
+ }
</script>
</div>
</body>

0 comments on commit 8435201

Please sign in to comment.