From 1f4e2b42fd55e07014a75cd3d8ddf59fd64e9afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Tue, 21 Jun 2016 00:59:39 -0400 Subject: [PATCH] Do not display the sidebar on loading and sign-in pages Also: - Remove burger menu icon on mobile version of sign-in page - Add the .signed-out class to the initial body instead of only when sign-in has failed - Remove hiding connect and logout button icons, which was buggy and is now useless anyway --- client/css/style.css | 4 ++++ client/index.html | 5 +---- client/js/lounge.js | 3 --- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 24b79e97..7394f07a 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -512,6 +512,10 @@ button, top: 4px; } +.signed-out #main { + left: 5px; +} + #header { display: none; height: 40px; diff --git a/client/index.html b/client/index.html index 77257141..496993f4 100644 --- a/client/index.html +++ b/client/index.html @@ -23,7 +23,7 @@ - "> + ">
@@ -60,9 +60,6 @@
-
- -
diff --git a/client/js/lounge.js b/client/js/lounge.js index 97abd25e..2ff6d519 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -77,14 +77,11 @@ $(function() { }); socket.on("auth", function(data) { - var body = $("body"); var login = $("#sign-in"); login.find(".btn").prop("disabled", false); if (!data.success) { - body.addClass("signed-out"); - window.localStorage.removeItem("token"); var error = login.find(".error");