From 1ed6cf945f0a1d375993c6d811457fdd0cbeb990 Mon Sep 17 00:00:00 2001 From: rand0x0m Date: Sun, 7 Oct 2018 20:45:20 +0200 Subject: [PATCH] Updated style to handle messages that refer to the user. --- client/client.js | 7 ++++++- client/index.html | 4 ++-- client/schemes/android.css | 7 +++++-- client/schemes/atelier-dune.css | 7 +++++-- client/schemes/atelier-forest.css | 7 +++++-- client/schemes/atelier-heath.css | 7 +++++-- client/schemes/atelier-lakeside.css | 7 +++++-- client/schemes/atelier-seaside.css | 7 +++++-- client/schemes/bright.css | 7 +++++-- client/schemes/chalk.css | 7 +++++-- client/schemes/default.css | 7 +++++-- client/schemes/eighties.css | 7 +++++-- client/schemes/greenscreen.css | 7 +++++-- client/schemes/mocha.css | 7 +++++-- client/schemes/monokai.css | 7 +++++-- client/schemes/nese.css | 7 +++++-- client/schemes/ocean.css | 7 +++++-- client/schemes/pop.css | 7 +++++-- client/schemes/railscasts.css | 7 +++++-- client/schemes/solarized.css | 7 +++++-- client/schemes/tomorrow.css | 7 +++++-- client/style.css | 5 +---- 22 files changed, 104 insertions(+), 45 deletions(-) diff --git a/client/client.js b/client/client.js index 1d72c9a..8a0d2e5 100644 --- a/client/client.js +++ b/client/client.js @@ -156,7 +156,12 @@ var COMMANDS = { function pushMessage(args) { // Message container var messageEl = document.createElement('div'); - messageEl.classList.add('message'); + + if (args.text.includes('@' + myNick.split('#')[0] + ' ')) { + messageEl.classList.add('refmessage'); + } else { + messageEl.classList.add('message'); + } if (verifyNickname(myNick) && args.nick == myNick) { messageEl.classList.add('me'); diff --git a/client/index.html b/client/index.html index 9abdebc..98b9428 100644 --- a/client/index.html +++ b/client/index.html @@ -20,7 +20,7 @@