This commit is contained in:
Aevann1 2022-03-24 04:52:40 +02:00
parent 6529d70dfd
commit 031e332be3
2 changed files with 2 additions and 7 deletions

View file

@ -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('typing-indicator').innerHTML = '<b>'+users[0]+"</b> and <b>"+users[1]+"</b> are typing...";
document.getElementById('loading-indicator').classList.remove('d-none'); 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('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'); 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');
}
}) })

View file

@ -81,7 +81,7 @@
<input id="vid" type="hidden" value="{{v.id}}"> <input id="vid" type="hidden" value="{{v.id}}">
<input id="site_name" type="hidden" value="{{SITE_NAME}}"> <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> <style>
#chat-window { #chat-window {