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
This commit is contained in:
parent
4b901783d8
commit
1f4e2b42fd
@ -512,6 +512,10 @@ button,
|
|||||||
top: 4px;
|
top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.signed-out #main {
|
||||||
|
left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
display: none;
|
display: none;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="<%= public ? "public" : "" %>">
|
<body class="signed-out <%= public ? "public" : "" %>">
|
||||||
|
|
||||||
<div id="wrap">
|
<div id="wrap">
|
||||||
<div id="viewport">
|
<div id="viewport">
|
||||||
@ -60,9 +60,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="sign-in" class="window">
|
<div id="sign-in" class="window">
|
||||||
<div class="header">
|
|
||||||
<button class="lt" aria-label="Toggle channel list"></button>
|
|
||||||
</div>
|
|
||||||
<form class="container" method="post" action="">
|
<form class="container" method="post" action="">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
|
@ -77,14 +77,11 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on("auth", function(data) {
|
socket.on("auth", function(data) {
|
||||||
var body = $("body");
|
|
||||||
var login = $("#sign-in");
|
var login = $("#sign-in");
|
||||||
|
|
||||||
login.find(".btn").prop("disabled", false);
|
login.find(".btn").prop("disabled", false);
|
||||||
|
|
||||||
if (!data.success) {
|
if (!data.success) {
|
||||||
body.addClass("signed-out");
|
|
||||||
|
|
||||||
window.localStorage.removeItem("token");
|
window.localStorage.removeItem("token");
|
||||||
|
|
||||||
var error = login.find(".error");
|
var error = login.find(".error");
|
||||||
|
Loading…
Reference in New Issue
Block a user