From 78619468b5455d868b5290ef348a5a61254963fb Mon Sep 17 00:00:00 2001 From: Arlo Filley Date: Tue, 22 Nov 2022 20:30:47 +0000 Subject: [PATCH] iteration 2 complete --- website/api/api.js | 7 ++++++- website/index.html | 3 ++- website/ui_elements/timemenu.js | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/website/api/api.js b/website/api/api.js index c98fc5d..a65a1b5 100644 --- a/website/api/api.js +++ b/website/api/api.js @@ -210,7 +210,12 @@ class API { localStorage.setItem("userId", user.userId); localStorage.setItem("username", pUsername); localStorage.setItem("password", pPassword); - } + } else { + user.username = "no one"; + user.password = "none"; + user.userId = 0; + user.tests = []; + } }; } else if (localStorage.userId > 0) { user.userId = localStorage.userId; diff --git a/website/index.html b/website/index.html index 1c30299..8d1f912 100644 --- a/website/index.html +++ b/website/index.html @@ -13,7 +13,8 @@ - + + diff --git a/website/ui_elements/timemenu.js b/website/ui_elements/timemenu.js index f78a94e..418bea4 100644 --- a/website/ui_elements/timemenu.js +++ b/website/ui_elements/timemenu.js @@ -1,10 +1,10 @@ class TimeMenu { constructor() { this.buttons = [ - new Button(660,0,100,30,0,true,"#fff",false,"#000","#000","15s"), - new Button(660,30,100,30,0,true,"#fff",false,"#000","#000","30s"), - new Button(660,60,100,30,0,true,"#fff",false,"#000","#000","45s"), - new Button(660,90,100,30,0,true,"#fff",false,"#000","#000","60s"), + new Button(700,0,100,30,0,true,"#fff",false,"#000","#000","15s"), + new Button(700,30,100,30,0,true,"#fff",false,"#000","#000","30s"), + new Button(700,60,100,30,0,true,"#fff",false,"#000","#000","45s"), + new Button(700,90,100,30,0,true,"#fff",false,"#000","#000","60s"), ]; this.dropdown = false; }