show online on chat in dropdown menu

master
Aevann1 2022-08-14 05:51:25 +02:00
parent ad9cdceab4
commit a817fc35c0
3 changed files with 5 additions and 2 deletions

View File

@ -126,6 +126,7 @@ socket.on('online', function(data){
}
document.getElementById('online').innerHTML = online
document.getElementById('online2').setAttribute("data-bs-original-title", online2);
document.getElementById('online3').innerHTML = online
})
window.addEventListener('blur', function(){

View File

@ -201,7 +201,7 @@
<input id="site_name" type="hidden" value="{{SITE_NAME}}">
<input id="slurreplacer" type="hidden" value="{{v.slurreplacer}}">
<script src="/chat.js?v=33"></script>
<script src="/chat.js?v=34"></script>
{% include "emoji_modal.html" %}
{% include "expanded_image_modal.html" %}

View File

@ -327,7 +327,9 @@
</li>
{% endif %}
<li class="mt-3">
{% if has_sidebar %}
{% if request.path == "/chat" %}
<div id="online3" class="col sidebar text-left d-lg-none pt-3 bg-white" style="max-width:300px"></div>
{% elif has_sidebar %}
{% include "sidebar_" + SITE_NAME + ".html" %}
{% endif %}
</li>