summaryrefslogtreecommitdiff
path: root/web/login
diff options
context:
space:
mode:
authorDaniel Jin <[email protected]>2021-04-13 02:23:28 -0400
committerGitHub <[email protected]>2021-04-13 09:23:28 +0300
commita145e7295415fbf97d36170df9a7bc1f8d59255e (patch)
tree60d34451dde62d99907117e6b43fa8931627fec7 /web/login
parent3af4a8b852019993ee31becd5651734377da6ec9 (diff)
Add form tag to allow autocomplete of username and password. (#42)
Diffstat (limited to 'web/login')
-rw-r--r--web/login/index.html48
-rw-r--r--web/login/index.pug25
2 files changed, 38 insertions, 35 deletions
diff --git a/web/login/index.html b/web/login/index.html
index 1496d3e1..47e2b8ca 100644
--- a/web/login/index.html
+++ b/web/login/index.html
@@ -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>
diff --git a/web/login/index.pug b/web/login/index.pug
index 6b8cb290..3156f525 100644
--- a/web/login/index.pug
+++ b/web/login/index.pug
@@ -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")