From d6b7a5331a7f09dff98d163299b9261c7ce005cd Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Tue, 8 Apr 2014 16:18:06 +0200 Subject: [PATCH] Added show/hide for kick and modes --- client/css/style.css | 8 ++++++-- client/index.html | 2 ++ client/js/chat.js | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 2ab3fb1e..063dc14c 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -105,14 +105,18 @@ h2 { #chat .join, #chat .part, #chat .nick, -#chat .quit { +#chat .quit, +#chat .mode, +#chat .kick { /* Hidden by default */ display: none; } #chat.show-join .join, #chat.show-part .part, #chat.show-nick .nick, -#chat.show-quit .quit { +#chat.show-quit .quit, +#chat.show-mode .mode, +#chat.show-kick .kick { display: block; } #chat .window { diff --git a/client/index.html b/client/index.html index a449df4f..58cd0df6 100644 --- a/client/index.html +++ b/client/index.html @@ -38,6 +38,8 @@ + + diff --git a/client/js/chat.js b/client/js/chat.js index aa0ded2f..c3e4dfc1 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -25,10 +25,10 @@ $(function() { event(type, json); }); }); - + var chat = $("#chat"); var sidebar = $("#sidebar"); - + var tpl = []; function render(id, json, partials) { tpl[id] = tpl[id] || $(id).html();