mirror of https://github.com/Trivernis/whooshy.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
673 B
Plaintext
21 lines
673 B
Plaintext
div(id='container-chat')
|
|
style(id='js-style')
|
|
div(id='chat-content')
|
|
for message in messages
|
|
span.chatMessage(
|
|
msg-type=message.type
|
|
msg-id=message.id
|
|
msg-pid=message.playerId
|
|
msg-raw=message.content)
|
|
|
|
if message.type === 'USER'
|
|
span.chatUsername= `${message.username}: `
|
|
span(class=`chatMessageContent ${message.type}`)!= message.htmlContent
|
|
input(
|
|
id='chat-input'
|
|
type='text'
|
|
placeholder='send message'
|
|
onkeypress='onInputKeypress(event)'
|
|
maxlength="250"
|
|
autocomplete='off')
|