32 lines
1 KiB
HTML
32 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Bettermost</title>
|
|
</head>
|
|
<body>
|
|
<form>
|
|
<table>
|
|
<tr><th>Server</th><td><input type="text" id="server" value="http://localhost:8080"/></td></tr>
|
|
<tr><th>Username</th><td><input type="text" id="username"/></td></tr>
|
|
<tr><th>Password</th><td><input type="password" id="password"/></td></tr>
|
|
</table>
|
|
|
|
<input type="button" onclick="logIn(); return false" id="login" value="Log in"/>
|
|
<span id="login_message"></span><br/>
|
|
|
|
<input type="button" onclick="validateToken(); return false" id="validate" value="Validate token"/>
|
|
<span id="validate_message">(ignores username and password)</span><br/>
|
|
|
|
<input type="button" onclick="logOut(); return false" id="logout" value="Log out"/>
|
|
<span id="logout_message"></span><br/>
|
|
|
|
</form>
|
|
|
|
<pre id="user_json"></pre>
|
|
|
|
<script type="text/javascript" src="xhr.js"></script>
|
|
<script type="text/javascript" src="main.js"></script>
|
|
</body>
|
|
</html>
|