-
Notifications
You must be signed in to change notification settings - Fork 21
/
form.html
68 lines (60 loc) · 2.53 KB
/
form.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!doctype html>
<html class="no-js" lang="en" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form</title>
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<div class="row">
<div class="small-12 columnsouterB">
<img class="left" src="images/debugging-js.png" alt="">
<h2 class="text-right right">The Console</h2>
</div>
</div>
<div class="row">
<div class="small-12 small-centered medium-10 medium-centered large-8 large-centered columns panel radius">
<div class="panel radius">
<h3 id="qunit-header">Authentication Form Test Suite</h3>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-test-area"></div>
<div id="qunit-fixture">
<!-- A slimmed down form mock is used so there are
form elements to attach event handlers to -->
<form id="authenticationForm">
<label for="username">Username</label>
<input type="text" id="username" name="username"></input>
<label for="username">Password</label>
<input type="password" id="password" name="password"></input>
<button class="submit">Submit</button>
</form>
<p><a href="tests/form.html">QUnit Form <i class="fa fa-chevron-right"></i></a></p>
<p id="username_password_required" style="display: none;">
Both the username and password are required.
</p>
<p id="authentication_success" style="display: none;">
You have successfully authenticated!
</p>
<p id="authentication_failure" style="display: none;">
This username/password combination is not correct.
</p>
<p id="authentication_error" style="display: none;">
There was a problem authenticating the user, please try again later.
</p>
</div>
</div>
<!-- end panel -->
</div>
</div>
<!-- Include the ajax mock so no XHR requests are actually made -->
<script src="js/ajax-mock.js"></script>
<!-- Load page scripts -->
<script src="js/authentication-form.js"></script>
<script src="js/form.js"></script>
</body>
</html>