-
Notifications
You must be signed in to change notification settings - Fork 0
/
stateful.html
44 lines (40 loc) · 1011 Bytes
/
stateful.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<html>
<head>
<style>
input.error {
border: 1px solid red;
color: red;
}
span.error {
color: red;
}
span.success {
color: green;
}
#loader {
color: gray
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="stateful.js"></script>
<script src="stateful_example.js"></script>
</head>
<body>
<div>
<input type="text" id="username" />
<span id="availability"></span>
</div>
<div>
<input type="password" id="password" />
<span id="strength"></span>
</div>
<div>
<button id="button">Register</button>
<span id="loader">Sending...</span>
</div>
<div id="message">
You have successfully registered!
</div>
</body>
</html>