-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.64 KB
/
index.html
File metadata and controls
40 lines (40 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>formSubmit test</title>
<link rel="stylesheet" type="text/css" href="./style.css"/>
</head>
<body>
<div id="loginWrap">
<div id="whenLogged" hidden="1">
<!--a(href=".") Logout (just reloads the page)-->
<button type="button" onclick="loginForm.hidden = 1; whenLogged.hidden = 0;">Logout</button>
</div>
<form class="formSubmit" id="loginForm" method="POST" action="/login" enctype="application/x-www-form-urlencoded" autocomplete="on" data-formSubmit-done="
/* TODO/implement: !!! in next test run this js !!! */
console.log('done', data);
loginForm.hidden = 1;
whenLogged.hidden = 0;
">
<div class="m-b-3">
<label>Username
<input id="username" name="username" value="foo" type="text" required="required" autocomplete="username" autofocus="autofocus"/>
</label>
</div>
<div class="m-b-3">
<label>Password
<input id="password" name="password" value="123" type="password" required="required" autocomplete="current-password"/>
</label>
</div>
<hr style="margin-inline:0"/>
<div class="btns">
<button type="submit">Login</button>
</div>
</form>
</div>
<pre>
<button id="loginForm_output_reset" type="button" onclick="loginForm_output.innerHTML=''">× Reset output</button>
<output id="loginForm_output"></output></pre>
<!-- scripts-->
<script src="./script.js"></script>
</body></html>