mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
better chat squashing with a red animated badge
combined chat messages no longer increases font size
This commit is contained in:
@@ -312,8 +312,14 @@ function output(message, flag) {
|
||||
{
|
||||
lastmessages.append($('<span/>', { 'class': 'r', 'text': 2}));
|
||||
}
|
||||
if(parseInt(lastmessages.css("font-size")) < 24) //Completely arbitrary max size
|
||||
lastmessages.css("font-size","+=2")
|
||||
var insertedBadge = $(lastmessages).find('.r');
|
||||
insertedBadge.animate({
|
||||
"font-size": "0.9em"
|
||||
}, 100, function() {
|
||||
insertedBadge.animate({
|
||||
"font-size": "0.7em"
|
||||
}, 100);
|
||||
});
|
||||
opts.messageCount--;
|
||||
handled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user