<html>
<head>
<title>mud</title>
- <link type='text/css' rel='stylesheet' href='style.css'>
- <script type='text/javascript' src='jquery-core.js'></script>
-<!--
- <script type='text/javascript' src='mud.js'></script>
--->
+ <link type='text/css' rel='stylesheet' href='/mud/style.css'>
+ <script type='text/javascript' src='/mud/jquery-core.js'></script>
+ <script type='text/javascript' src='/mud/mud.js'></script>
</head>
<body>
<canvas width='450px' height='450px' id='universe'></canvas>
$('<span>').addClass(style).text(action),
$('<span>').addClass('msg').text(msg)
)
- )
+ );
+ $("#log").animate({ scrollTop: $('#log')[0].scrollHeight}, 1000);
}
$('#submit').click(function() {
var text = $('#chat').val();
var msg = messages[i];
if (msg.id == self.player.id) continue;
writeToLog(msg.name + ':', msg.type, msg.message);
+ $("#log").animate({ scrollTop: $('#log')[0].scrollHeight}, 1000);
}
});
}