From 3f843e9c8ce1237effed58455b40913656d2ed02 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 17 Mar 2013 20:49:25 -0500 Subject: [PATCH] Add nick highlighting --- www/assets/css/ytsync.css | 4 ++++ www/assets/js/functions.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/www/assets/css/ytsync.css b/www/assets/css/ytsync.css index 9846e2b8..c303e9b3 100644 --- a/www/assets/css/ytsync.css +++ b/www/assets/css/ytsync.css @@ -95,3 +95,7 @@ .option button { margin-right: 15px; } + +.nick-highlight { + background-color: #ddffdd; +} diff --git a/www/assets/js/functions.js b/www/assets/js/functions.js index 568208ed..924ca1c8 100644 --- a/www/assets/js/functions.js +++ b/www/assets/js/functions.js @@ -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');