Provide dedicated page for login (#153)

This commit is contained in:
Duc Nguyen (john)
2024-03-08 08:06:51 +07:00
committed by GitHub
parent 9725d60791
commit 4f356f7f9a
6 changed files with 245 additions and 124 deletions

View File

@@ -28,7 +28,7 @@ footer {
border: none !important;
}
#chat-tab, #settings-tab, #help-tab, #admin-tab {
#chat-tab, #settings-tab, #help-tab, #admin-tab, #login-tab {
border: none !important;
}

View File

@@ -17,3 +17,14 @@ globalThis.clpseFn = (id) => {
content.style.display = "none";
}
}
// store info in local storage
globalThis.setStorage = (key, value) => {
localStorage.setItem(key, JSON.stringify(value))
}
globalThis.getStorage = (key, value) => {
return JSON.parse(localStorage.getItem(key))
}
globalThis.removeFromStorage = (key) => {
localStorage.removeItem(key)
}