Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (19 sloc) 541 Bytes
<html>
<head>
<script src="/js/jquery.min.js" type="text/javascript"></script>
<script src="/socket.io/socket.io.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var log = new io.Socket();
log.connect();
log.on('message', function (message) {
$('#log').append(message + "<br/>");
window.scrollTo(0, document.body.scrollHeight);
});
});
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>