ch
This commit is contained in:
parent
6529d70dfd
commit
031e332be3
2 changed files with 2 additions and 7 deletions
|
@ -133,13 +133,8 @@ socket.on('typing', function (users){
|
|||
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 if (users.length==3){
|
||||
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');
|
||||
}
|
||||
else if (users.length>=4){
|
||||
more=users.length-3
|
||||
document.getElementById('typing-indicator').innerHTML = '<b>'+users[0]+"</b>, <b>"+users[1]+"</b>, <b>"+users[2]+"</b> and "+more.toString()+" more are typing...";
|
||||
document.getElementById('loading-indicator').classList.remove('d-none');
|
||||
}
|
||||
})
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
<input id="vid" type="hidden" value="{{v.id}}">
|
||||
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
|
||||
|
||||
<script data-cfasync="false" src="/assets/js/chat.js?v=28"></script>
|
||||
<script data-cfasync="false" src="/assets/js/chat.js?v=29"></script>
|
||||
|
||||
<style>
|
||||
#chat-window {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue