mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 08:09:37 +00:00
timestap -> timestamp
This commit is contained in:
parent
360ff0058d
commit
74df55c3bc
@ -11,18 +11,18 @@ function getNChatMessages(socket, count, skip) {
|
||||
}
|
||||
|
||||
const chatBox = document.getElementById('chatBox');
|
||||
message_array.forEach(message => chatBox.appendChild(message));
|
||||
message_array.forEach(message => chatBox.appendChild(message))
|
||||
|
||||
chatBox.style.overflow = 'auto';
|
||||
chatBox.scrollTop = chatBox.scrollHeight;
|
||||
});
|
||||
}
|
||||
|
||||
function buildChatMessage(author, content, timestap) {
|
||||
//console.log(content, author, timestap);
|
||||
function buildChatMessage(author, content, timestamp) {
|
||||
const message = document.createElement('div');
|
||||
message.classList.add('chat-message');
|
||||
|
||||
|
||||
const messageContent = document.createElement('div');
|
||||
messageContent.classList.add('chat-message-content');
|
||||
const content_field = document.createElement('p');
|
||||
@ -38,7 +38,7 @@ function buildChatMessage(author, content, timestap) {
|
||||
const messageTimestamp = document.createElement('div');
|
||||
messageTimestamp.classList.add('chat-message-timestamp');
|
||||
const timestamp_field = document.createElement('p');
|
||||
timestamp_field.textContent = timestap;
|
||||
timestamp_field.textContent = timestamp;
|
||||
messageTimestamp.appendChild(timestamp_field);
|
||||
|
||||
const messageDetails = document.createElement('div');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user