31 lines
895 B
HTML
31 lines
895 B
HTML
|
<!DOCTYPE html>
|
||
|
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Sign Up</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 = "/editor";
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<h1>Sign Up</h1>
|
||
|
<input id="username" maxlength="24" placeholder="Username..."><br>
|
||
|
<input id="password" placeholder="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>
|