forked from rDrama/rDrama
move online users to the top
parent
0d27ce1b27
commit
b439d0cdcb
|
@ -213,6 +213,8 @@ socket.on('online', function(data) {
|
|||
for (const u of online_li) {
|
||||
for (const marker of document.getElementsByClassName(`online-marker-${u[4]}`)) {
|
||||
marker.classList.remove('d-none')
|
||||
marker.parentElement.parentElement.insertAdjacentHTML('afterbegin', marker.parentElement.outerHTML)
|
||||
marker.parentElement.remove()
|
||||
}
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue