Updated with login screen

This commit is contained in:
Tracker-Friendly 2024-02-28 13:15:54 +00:00
parent e897c7d563
commit efe8a51c5f
4 changed files with 13 additions and 9 deletions

View File

@ -69,7 +69,7 @@
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.</p>
<br>
<button onclick="history.back()" style="padding: 15px 20px;margin-right: auto;color: white;text-decoration: none;background-color: var(--theme-color);border-radius: 8px;border: medium;font-size: 15px;">Take me back where I was!</button>
<button onclick="history.back()" style="cursor: pointer; padding: 15px 20px;margin-right: auto;color: white;text-decoration: none;background-color: var(--theme-color);border-radius: 8px;border: medium;font-size: 15px;">Take me back where I was!</button>
<br><br>
</body>

View File

@ -17,11 +17,11 @@
<p>Signup for a Burgernotes account</p>
<p id="statusBox"></p>
<input id="usernameBox" type="text" placeholder="Username">
<input id="passwordBox" type="password" placeholder="Password">
<input id="passwordBox" type="password" placeholder="Password"><br>
<button id="signupButton">Signup</button><br><br>
<p>Please note that it's impossible to reset your password, do not forget it!</p>
<p>Already have an account? If so, <a href="../login/index.html">Login</a> instead!</p>
<a href="../privacy/index.html">Privacy &amp; Terms</a>
By signing up, you agree to our <a href="../privacy/index.html">Privacy &amp; Terms</a>.<br><br>
<p>Already have an account? If so, <a href="../login/index.html">Login</a> instead!</p><br>
</div>
<script type="text/javascript" src="../static/js/signup.js"></script>

View File

@ -170,7 +170,7 @@ body {
filter: invert(var(--invertdm));
padding-left: 17.5px;
padding-right: 17.5px;
background-image: url("../static/svg/delete.svg");
background-image: url("../../static/svg/delete.svg");
background-position: center;
background-repeat: no-repeat;
background-size: 55%;
@ -261,8 +261,8 @@ body {
overflow-y: scroll;
}
.notesBar .noteButton {
width: calc(100% - 5px - 5px);
.notesBar .noteButton, .notesBar .loadingStuff {
width: calc(100% - 7px - 7px - 3.5px);
height: 35px;
line-height: 0px;
padding: 10px;

View File

@ -206,7 +206,11 @@ function updateUserInfo() {
"Content-Type": "application/json; charset=UTF-8"
}
})
.then((response) => response)
.catch((error) => {
noteBox.readOnly = true
noteBox.value = ""
noteBox.placeholder = "Failed to connect to the server.\nPlease check your internet connection."
})
.then((response) => {
async function doStuff() {
if (response.status == 500) {