Extract login pages to own files
Fix api Remove login window
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user