Extract login pages to own files

Fix api

Remove login window
This commit is contained in:
Christoph Hagen
2022-10-12 19:55:22 +02:00
parent fe429ea7d5
commit 213bb1c179
12 changed files with 459 additions and 135 deletions

View File

@ -7,6 +7,7 @@
<link rel='stylesheet' type='text/css' media='screen' href='style.css'>
<script src='elements.js?v=1'></script>
<script src='api.js'></script>
<script src='storage.js'></script>
<script src='game.js'></script>
</head>
<body>
@ -72,25 +73,8 @@
</div>
</div>
</div>
<div id="login-window">
<div id="login-window-vertical-center">
<div id="login-window-inner">
<div id="sheephead-logo">\_______/<br> \ - - / <br> \ | / <br> \_/ <br><br>Sheephead</div>
<label for="usrname">Username</label>
<input type="text" id="user-name" name="usrname" required>
<label for="psw">Password</label>
<input type="password" id="user-pwd" name="psw" required>
<button class="login-buttons standard-button" onclick="registerUser()">Register</button>
<button class="login-buttons standard-button" onclick="loginUser()">Log in</button>
<div id="login-error"></div>
</div>
</div>
</div>
<script>
loadExistingSession()
</script>
</body>
</html>
</html>