In the "onmessage" of the web socket within "chat.js", just pass "message.userColor" with the existing object to "displayMessage(...)". Then pass it on down to "createUserSpan(...)". The real work would be allowing the user to set that value in settings and storing in the DB somewhere.
100%
Also, optional: display timecode.
In the "onmessage" of the web socket within "chat.js", just pass "message.userColor" with the existing object to "displayMessage(...)". Then pass it on down to "createUserSpan(...)". The real work would be allowing the user to set that value in settings and storing in the DB somewhere.
@x0x7
I must be pink. PINK. PINK IS THE COLOUR OF THE BLOOD WHEN I KILL