index.html 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Login required</title>
  5. <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:300' rel='stylesheet' type='text/css'>
  6. <link rel="stylesheet" type="text/css" href="/login/css/style.css" />
  7. <script type="text/javascript">
  8. function init() {
  9. if (localStorage.getItem("tryLogin")) {
  10. document.getElementById("error").className += "show";
  11. localStorage.removeItem("tryLogin");
  12. }
  13. document.getElementById("password").focus();
  14. }
  15. function tryLogin() {
  16. localStorage.setItem("tryLogin", true);
  17. }
  18. </script>
  19. </head>
  20. <body onload="init()">
  21. <div id="content">
  22. <h1>Feedati login</h1>
  23. <form method="POST" action="/login/do" onsubmit="tryLogin()">
  24. <label for="username">Username</label><input type="text" id="username" name="httpd_username" value="friends" />
  25. <label for="password">Password</label><input type="password" id="password" name="httpd_password" value="" />
  26. <input type="submit" name="login" value="Login" />
  27. </form>
  28. </div>
  29. </body>
  30. </html>