forked from rDrama/rDrama
1
0
Fork 0

remove pointless element

master
Aevann 2023-10-10 22:45:54 +03:00
parent d46f121ea0
commit 133b9a7347
2 changed files with 0 additions and 5 deletions

View File

@ -246,19 +246,15 @@ ta.addEventListener("input", function() {
socket.on('typing', function (users){
if (users.length==0){
document.getElementById('typing-indicator').innerHTML = '';
document.getElementById('loading-indicator').classList.add('d-none');
}
else if (users.length==1){
document.getElementById('typing-indicator').innerHTML = '<b>'+users[0]+"</b> is typing...";
document.getElementById('loading-indicator').classList.remove('d-none');
}
else if (users.length==2){
document.getElementById('typing-indicator').innerHTML = '<b>'+users[0]+"</b> and <b>"+users[1]+"</b> are typing...";
document.getElementById('loading-indicator').classList.remove('d-none');
}
else {
document.getElementById('typing-indicator').innerHTML = '<b>'+users[0]+"</b>, <b>"+users[1]+"</b>, and <b>"+users[2]+"</b> are typing...";
document.getElementById('loading-indicator').classList.remove('d-none');
}
})

View File

@ -339,7 +339,6 @@
<div id='message' class="position-relative form-group d-flex">
<div class="position-absolute text-muted text-small ml-1" style="bottom: -1.5rem; line-height: 1">
<span id="typing-indicator"></span>
<span id="loading-indicator" class="d-none"></span>
</div>
{{emoji_btn('input-text-chat')}}