add changelog and logout functionality
This commit is contained in:
parent
f20d1cc74b
commit
5f516f71f9
4 changed files with 48 additions and 1 deletions
9
static/scripts/logout.js
Normal file
9
static/scripts/logout.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
// Removes the local storage entry, and redirects to the index page.
|
||||
const ls = window.localStorage;
|
||||
if (ls.getItem("beacon:account-id")) {
|
||||
console.log("a");
|
||||
ls.removeItem("beacon:account-id");
|
||||
window.location.pathname = "/";
|
||||
} else {
|
||||
window.location.pathname = "/";
|
||||
}
|
|
@ -3,7 +3,8 @@ body {
|
|||
margin: 40px;
|
||||
}
|
||||
|
||||
section {
|
||||
section.up,
|
||||
section.always-up {
|
||||
margin-bottom: 5px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue