Add nick highlighting

This commit is contained in:
calzoneman 2013-03-17 20:49:25 -05:00
parent 2f38c4cafc
commit 3f843e9c8c
2 changed files with 6 additions and 0 deletions

View file

@ -95,3 +95,7 @@
.option button {
margin-right: 15px;
}
.nick-highlight {
background-color: #ddffdd;
}

View file

@ -116,6 +116,8 @@ function addUserDropdown(entry, name) {
function formatChatMessage(data) {
var div = document.createElement('div');
if(data.msg.indexOf(uname) != -1)
$(div).addClass('nick-highlight');
if(data.msgclass == "action") {
var message = document.createElement('span');
$(message).addClass('action');