2024-02-20 14:55:22 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
2024-02-26 17:33:35 -05:00
|
|
|
<title>Sign Up - InfoPage</title>
|
2024-02-20 14:55:22 -05:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<link rel="stylesheet" href="/css/base.css">
|
|
|
|
<script src="/js/base.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
if (localStorage.getItem("token")) {
|
|
|
|
setCookie("token", localStorage.getItem("token"));
|
2024-02-26 17:33:35 -05:00
|
|
|
window.location.href = "/home";
|
2024-02-20 14:55:22 -05:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<h1>Sign Up</h1>
|
|
|
|
<input id="username" maxlength="24" placeholder="Username..."><br>
|
2024-03-28 21:36:08 -04:00
|
|
|
<input id="password" placeholder="Password..." type="password"><br>
|
|
|
|
<input id="confirm" placeholder="Confirm password..." type="password"><br><br>
|
2024-02-20 14:55:22 -05:00
|
|
|
<button id="submit">Sign Up</button><br><br>
|
|
|
|
<button id="toggle-password">Show/Hide Password</button><br><br>
|
|
|
|
<a href="/login">Log in instead...</a>
|
|
|
|
<div id="error"></div>
|
|
|
|
|
|
|
|
<script src="/js/signup.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|