This commit is contained in:
NoobishSVK
2024-03-04 22:59:51 +01:00
parent eae5fcd45b
commit f1b1449909
6 changed files with 22 additions and 5 deletions
+6 -1
View File
@@ -27,7 +27,9 @@ $(document).ready(function() {
messages.append(chatMessage);
if($('#chat-chatbox').is(':visible')) {
setTimeout(function() {
$('#chat-chatbox').scrollTop($('#chat-chatbox')[0].scrollHeight);
}, 100)
} else {
if(messageData.history !== true) {
chatMessageCount++;
@@ -50,11 +52,14 @@ $(document).ready(function() {
});
$('.chatbutton').click(function() {
$('#chat-chatbox').scrollTop($('#chat-chatbox')[0].scrollHeight);
chatMessageCount = 0;
$('.chat-messages-count').text(chatMessageCount);
$('.chatbutton').removeClass('bg-color-4').addClass('bg-color-2');
$('#chat-send-message').focus();
setTimeout(function() {
$('#chat-chatbox').scrollTop($('#chat-chatbox')[0].scrollHeight);
}, 100)
});
$('#chat-nickname').keypress(function(event) {