Add form tag to allow autocomplete of username and password. (#42)

This commit is contained in:
Daniel Jin
2021-04-13 02:23:28 -04:00
committed by GitHub
parent 3af4a8b852
commit a145e72954
2 changed files with 38 additions and 35 deletions

View File

@@ -44,30 +44,32 @@
</script>
</head>
<body>
<div id="login-box">
<div id="login">
<table>
<tr>
<td>Username:</td>
<td>
<input type="text" id="user-input">
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input type="password" id="passwd-input">
</td>
</tr>
<tr>
<td></td>
<td>
<button class="key" id="login-button">Login</button>
</td>
</tr>
</table>
<form action="javascript:void(0)">
<div id="login-box">
<div id="login">
<table>
<tr>
<td>Username:</td>
<td>
<input type="text" id="user-input">
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input type="password" id="passwd-input">
</td>
</tr>
<tr>
<td></td>
<td>
<button class="key" id="login-button">Login</button>
</td>
</tr>
</table>
</div>
</div>
</div>
</form>
<ul class="footer">
<li class="footer-left">This site is actively using JavaScript.<br>
It doesn't contain ads, but is blocked by some ad filters.<br>

View File

@@ -6,18 +6,19 @@ append vars
- css_list = css_list.concat(["window", "modal", "login/login"])
block body
div(id="login-box")
div(id="login")
table
tr
td Username:
td #[input(type="text" id="user-input")]
tr
td Password:
td #[input(type="password" id="passwd-input")]
tr
td
td #[button(id="login-button" class="key") Login]
form(action="javascript:void(0)")
div(id="login-box")
div(id="login")
table
tr
td Username:
td #[input(type="text" id="user-input")]
tr
td Password:
td #[input(type="password" id="passwd-input")]
tr
td
td #[button(id="login-button" class="key") Login]
ul(class="footer")
li(class="footer-left")