diff --git a/client/css/style.css b/client/css/style.css index fadcc39..0dc86f2 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -221,7 +221,9 @@ button { text-align: center; width: 220px; } -#footer button { +#footer .icon { + color: #7c838d; + display: inline-block; font: 16px Octicons; line-height: 34px; padding: 0px 12px; @@ -613,6 +615,9 @@ button { } @media (max-width: 480px) { + .title { + display: none; + } .container { margin-bottom: 5%; } diff --git a/client/index.html b/client/index.html index 9552f3c..e52696f 100644 --- a/client/index.html +++ b/client/index.html @@ -26,10 +26,10 @@ You're not connected to any networks yet.
@@ -55,7 +55,7 @@
@@ -121,32 +121,32 @@
@@ -154,8 +154,8 @@
diff --git a/client/js/chat.js b/client/js/chat.js index 50f23ea..aca31a2 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -35,7 +35,7 @@ $(function() { pop.src = "/audio/pop.ogg"; $("#play").on("click", function() { pop.play(); }); - $("#footer button").tooltip(); + $("#footer .icon").tooltip(); var favico = new Favico({ animation: "none" @@ -59,6 +59,7 @@ $(function() { socket.on("auth", function(data) { $("body").addClass("signed-out"); + $("#sign-in input[name='user']").val($.cookie("user") || ""); sidebar.find(".sign-in") .click() .end() @@ -285,6 +286,7 @@ $(function() { var chan = $(target) .css("z-index", top++) .addClass("active") + .trigger("show") .find(".chat") .sticky(); }); @@ -375,6 +377,13 @@ $(function() { } }); + $("#windows").on("show", ".window", function() { + var self = $(this); + setTimeout(function() { + self.find("input").eq(0).focus(); + }, 0); + }); + $("#sign-in, #connect").on("submit", "form", function(e) { e.preventDefault() var event = "auth"; @@ -391,6 +400,9 @@ $(function() { values[obj.name] = obj.value; } }); + if (values.user) { + $.cookie("user", values.user); + } socket.emit( event, values );