better class name

master
Aevann 2024-04-05 09:59:32 +02:00
parent 5da59be285
commit fdfaf36570
3 changed files with 3 additions and 3 deletions

View File

@ -221,7 +221,7 @@ socket.on('online', function(data) {
const muted_li = Object.keys(data[1])
document.getElementsByClassName('board-chat-count')[0].innerHTML = online_li.length
document.getElementsByClassName('chat-count')[0].innerHTML = online_li.length
document.getElementById('chat-count-header-bar').innerHTML = online_li.length
const admin_level = parseInt(document.getElementById('admin_level').value)
let online = ''

View File

@ -32,7 +32,7 @@
<div class="border-right d-md-none fl-r pt-2 mr-3">
<span data-bs-html="true" data-bs-toggle="tooltip" data-bs-placement="bottom" title="<b>Members</b> {% for membership in chat.memberships %}<br>@{{membership.user.username}}{% endfor %}" class="text-muted">
<i class="fas fa-user fa-sm mr-1"></i>
<span class="board-chat-count" style="cursor:default">{{chat.memberships|length}}</span>
<span class="chat-count" style="cursor:default">{{chat.memberships|length}}</span>
</span>
</div>

View File

@ -274,7 +274,7 @@
<div class="border-right pb-1 px-3">
<span id="online2" data-bs-html="true" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users Online" class="text-muted">
<i class="fas fa-user fa-sm mr-1"></i>
<span class="board-chat-count">0</span>
<span class="chat-count">0</span>
</span>
</div>
{% endmacro %}