22:dba8124befc3
Anton Shestakov <av6@dwimlabs.net>, 2016-03-21
index: wire up login form

next change 23:98a9a4b85104
previous change 0:52035246db0a

index.html

Other formats: Feeds:
--- a/index.html Mon Mar 21 14:33:42 2016 +0800
+++ b/index.html Mon Mar 21 15:47:51 2016 +0800
@@ -8,7 +8,10 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.25.0/css/uikit.min.css">
<link rel="stylesheet" href="/css/tram-im.css">
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.2.3/backbone-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/2.25.0/js/uikit.min.js"></script>
+ <script src="/vendor/strophejs/strophe.min.js"></script>
</head>
<body>
<div class="smart-container" data-step="noscript">
@@ -20,7 +23,7 @@
</div>
<div class="smart-container uk-hidden" data-step="login">
- <div class="uk-form uk-form-horizontal" data-connect-form>
+ <div class="uk-form uk-form-horizontal" data-form="connect">
<div class="uk-form-row">
<label for="username" class="uk-form-label">Username</label>
<div class="uk-form-controls">
@@ -35,6 +38,7 @@
</div>
<div class="uk-form-row">
<div class="uk-form-controls">
+ <div class="uk-alert uk-alert-danger uk-hidden" data-msg="a/fail">Invalid username or password.</div>
<button type="button" class="uk-button uk-button-primary"><i class="uk-icon-sign-out"></i>&nbsp;Log in</button>
<a class="uk-float-right uk-button uk-button-link" href="/register.html">Register</a>
</div>
@@ -45,5 +49,10 @@
$('[data-step="noscript"]').addClass('uk-hidden');
$('[data-step="login"]').removeClass('uk-hidden');
</script>
+ <script src='/js/tram.js'></script>
+ <script src='/js/validation.js'></script>
+ <script src='/js/xmpp.js'></script>
+ <script src='/config.js'></script>
+ <script src='/js/index.js'></script>
</body>
</html>