Add js behind login form
[matches/MCTX3420.git] / testing / MCTXWeb / public_html / login.html
index 9227988..493a4e3 100644 (file)
     <link rel="stylesheet" type="text/css" href="static/nav-menu.css">
     <script type="text/javascript">
       $(document).ready(function () {
-        
+        $("#login").submit(function () {
+          $("#login").login();
+          return false;
+        });
       });
     </script>
   </head>
@@ -38,9 +41,9 @@
     </div>
     <!-- End header -->
     
-    <div id="login">
+    <div id="login-container">
      <div class="widget">
-         <form id="login2" action="#">
+         <form id="login" action="#">
            <p>
              <label>
                Username<br>
@@ -59,6 +62,9 @@
            <p style="float:right; margin:0;">
              <input type="submit" value="Log In">
            </p>
+           <p id="result">
+             &nbsp;
+           </p>
           </form>
      </div>
     </div>

UCC git Repository :: git.ucc.asn.au