Commit 511393ac authored by Markus Bergt's avatar Markus Bergt

better refresh times

parent 3ae3a32f
......@@ -4,7 +4,7 @@ $(document).ready(function() {
$.get( "update.php", function( data ) {
UseData(data);
});
}, 3000);
}, 1000);
function UseData(data){
var obj = jQuery.parseJSON(data);
......@@ -17,7 +17,7 @@ $(document).ready(function() {
$('#chatbody').append(obj.newMessages);
$('html, body').animate({
scrollTop: $(document).height()-$(window).height()},
1400,
500,
"swing"
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment