summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-08-25 14:22:58 +0200
committerAleš Smodiš <aless@guru.si>2015-08-25 14:22:58 +0200
commit1973db21715555e7b668c83e6aace2c7499f8eaa (patch)
tree62efa953e62caf98bec6f3daf4459f1d15e9a033 /index.html
parent21d213dcff1367c16dc0c3f6585b8e35d7c2f0c7 (diff)
Login now fetches the list of available problems from the server.
Made the query work, so terminal interaction now works.
Diffstat (limited to 'index.html')
-rw-r--r--index.html71
1 files changed, 36 insertions, 35 deletions
diff --git a/index.html b/index.html
index 803e758..d8b0566 100644
--- a/index.html
+++ b/index.html
@@ -1,37 +1,38 @@
<html>
-<head>
- <title>CodeQ Login</title>
-</head>
-<body>
-<h1>CodeQ Login</h1>
-<hr>
-<table>
- <tbody>
- <tr>
- <td>Username:</td>
- <td><input type="text" name="username" id="username"></td>
- </tr>
- <tr>
- <td>Password:</td>
- <td><input type="password" name="password" id="password"></td>
- </tr>
- <tr>
- <td>Problem:</td>
- <td>
- <select name="problem_group" id="problem_group">
- </select>
- <select name="problem" id="problems">
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <button type="button" id="submit">Login</button>
- </td>
- </tr>
- </tbody>
-</table>
-<script src="js/jquery/jquery-1.11.3.js"></script>
-<script src="js/codeq/login.js"></script>
-</body>
+ <head>
+ <title>CodeQ Login</title>
+ </head>
+ <body style="text-align: center;">
+ <h1>CodeQ Login</h1>
+ <hr>
+ <table style="margin: 0 auto;">
+ <tbody>
+ <tr>
+ <td style="text-align: right;">Username:</td>
+ <td><input type="text" name="username" id="username"></td>
+ </tr>
+ <tr>
+ <td style="text-align: right;">Password:</td>
+ <td><input type="password" name="password" id="password"></td>
+ </tr>
+ <tr>
+ <td style="text-align: right;">Problem:</td>
+ <td>
+ <select name="problem_group" id="problem_group" style="min-width: 10em;">
+ </select>
+ <select name="problem" id="problems" style="min-width: 10em;">
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align: center;">
+ <button type="button" id="submit">Login</button>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <div id="disabled" style="position: fixed; left: 0; right: 0; top: 0; bottom: 0; cursor: wait; background-color: rgba(0, 0, 0, 0.7);"></div>
+ <script src="js/jquery/jquery-1.11.3.js"></script>
+ <script src="js/codeq/login.js"></script>
+ </body>
</html>