iteration 2 complete

This commit is contained in:
Arlo Filley 2022-11-22 20:30:47 +00:00
parent b647ec727f
commit 78619468b5
3 changed files with 12 additions and 6 deletions

View File

@ -210,7 +210,12 @@ class API {
localStorage.setItem("userId", user.userId); localStorage.setItem("userId", user.userId);
localStorage.setItem("username", pUsername); localStorage.setItem("username", pUsername);
localStorage.setItem("password", pPassword); localStorage.setItem("password", pPassword);
} } else {
user.username = "no one";
user.password = "none";
user.userId = 0;
user.tests = [];
}
}; };
} else if (localStorage.userId > 0) { } else if (localStorage.userId > 0) {
user.userId = localStorage.userId; user.userId = localStorage.userId;

View File

@ -13,7 +13,8 @@
<link rel="manifest" href="./assets/favicon/site.webmanifest"> <link rel="manifest" href="./assets/favicon/site.webmanifest">
<!-- Main Script Files --> <!-- Main Script Files -->
<script src="./lib/p5.js"></script> <!-- <script src="./lib/p5.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/p5@1.5.0/lib/p5.js"></script>
<script src="./index.js" type="text/javascript"></script> <script src="./index.js" type="text/javascript"></script>
<!-- Element Script Files --> <!-- Element Script Files -->

View File

@ -1,10 +1,10 @@
class TimeMenu { class TimeMenu {
constructor() { constructor() {
this.buttons = [ this.buttons = [
new Button(660,0,100,30,0,true,"#fff",false,"#000","#000","15s"), new Button(700,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(700,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(700,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,90,100,30,0,true,"#fff",false,"#000","#000","60s"),
]; ];
this.dropdown = false; this.dropdown = false;
} }