mirror of https://github.com/calzoneman/sync.git
Add CSS for message modifiers [untested]
This commit is contained in:
parent
1e1e51a4ca
commit
ab6fc96517
|
@ -73,3 +73,21 @@
|
|||
.userlist_op {
|
||||
color: #00cc00;
|
||||
}
|
||||
|
||||
.action {
|
||||
text-decoration: italic;
|
||||
color: #bbbbbb;
|
||||
}
|
||||
|
||||
.spoiler {
|
||||
color: #000000;
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
.spoiler:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.greentext {
|
||||
color: #99ff99;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,9 @@ function initCallbacks() {
|
|||
var div = document.createElement('div');
|
||||
var span = document.createElement('span');
|
||||
$(span).addClass(data.msgclass);
|
||||
span.innerHTML = "<strong><" + data.username + "></strong> " + data.msg;
|
||||
if(data.msgclass != "action")
|
||||
data.msg = "<strong><" + data.username + "></strong> " + data.msg;
|
||||
span.innerHTML = data.msg;
|
||||
div.appendChild(span);
|
||||
$('#messagebuffer')[0].appendChild(div);
|
||||
// Cap chatbox at most recent 100 messages
|
||||
|
|
Loading…
Reference in New Issue