forked from rDrama/rDrama
remove pointless element
parent
d46f121ea0
commit
133b9a7347
|
@ -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');
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -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')}}
|
||||
|
|
Loading…
Reference in New Issue