scroll chat
Este commit está contenido en:
@@ -86,9 +86,11 @@ class App {
|
||||
})
|
||||
socket.on('join', function (data) {
|
||||
createLi('chats', 'JOINS ' + data.user)
|
||||
document.getElementById('chats').scrollTo(0, document.getElementById('chats').scrollHeight)
|
||||
})
|
||||
socket.on('msg', function (data) {
|
||||
createLi('chats', data.user + ': ' + data.chat)
|
||||
document.getElementById('chats').scrollTo(0, document.getElementById('chats').scrollHeight)
|
||||
})
|
||||
socket.on('adduser', function (data) {
|
||||
createLi('users', data.user)
|
||||
@@ -102,6 +104,7 @@ class App {
|
||||
})
|
||||
socket.on('quit', function (data) {
|
||||
createLi('chats', data.msg)
|
||||
document.getElementById('chats').scrollTo(0, document.getElementById('chats').scrollHeight)
|
||||
})
|
||||
socket.on('disconnectuser', function (event) {
|
||||
socket.removeAllListeners()
|
||||
|
||||
Referencia en una nueva incidencia
Block a user