infopage/public/signup.html
2024-03-28 21:36:08 -04:00

31 lines
984 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Sign Up - InfoPage</title>
<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"));
window.location.href = "/home";
}
</script>
</head>
<body>
<h1>Sign Up</h1>
<input id="username" maxlength="24" placeholder="Username..."><br>
<input id="password" placeholder="Password..." type="password"><br>
<input id="confirm" placeholder="Confirm password..." type="password"><br><br>
<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>