-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·179 lines (146 loc) · 6.37 KB
/
index.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<!--[if IE]><![endif]-->
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/ui-lightness/jquery-ui.css" rel="Stylesheet" />
<link rel="stylesheet" href="css/style.css?v=1">
<link rel="stylesheet" href="index.css">
</head>
<!--[if lt IE 7 ]> <body class="ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie7"> <![endif]-->
<!--[if IE 8 ]> <body class="ie8"> <![endif]-->
<!--[if IE 9 ]> <body class="ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <body> <!--<![endif]-->
<div id="container">
<header></header>
<div id="main">
<div style="padding: 10px;">
<p> <a href="index.html">home</a> <a href="actions.html">actions</a> <a href="email.html">email</a>
<a href="protectedPage.html">pageLogin</a> <a href="protectedResource.html">clickLogin</a>
<a href="http://code.google.com/p/safeajax/">googleCode</a> <a href="SA-Users.pdf">diagram</a>
</div>
<div class="bordered leftFloater">
<div class="bordered">
<p>New User Registration
<p style="padding: 20px;">
email: <input id="register-EMail" /> <br>
username: <input id="register-Username" /> <br>
password: <input id="register-Password" /> <br>
<button id="registerUser">Register User</button>
<div class="wrapped" id="registerUser-result"></div>
</div>
<div class="bordered">
<p>Delegate Creation
<p style="padding: 20px;">
email: <input id="delegateCreate-EMail" /> <br>
username: <input id="delegateCreate-Username" /> <br>
password: <input id="delegateCreate-Password" /> <br>
<button id="delegateCreate">Create Delegate</button> <br>
<div class="wrapped" id="delegateCreate-result"></div>
</div>
<div class="bordered">
<p>Delegate Destruction
<p style="padding: 20px;">
email: <input id="delegateDelete-EMail" /> <br>
username: <input id="delegateDelete-Username" /> <br>
<button id="delegateDelete">Delete Delegate</button> <br>
<div class="wrapped" id="delegateDelete-result"></div>
</div>
</div>
<div class="bordered leftFloater">
<div class='bordered'>
<p>User Login
<p style="padding: 20px;">
username: <input id="loginUser-username" /> <br>
password: <input id="loginUser-password" /> <br>
<button id="loginUser">Login</button>
<button id="logoutUser">Logout</button>
<button id="loggedIn">Logged In?</button> <br>
<div class="wrapped" id="loginUser-result"></div>
</div>
<div class='bordered'>
<p>Login Was Forgotten
<p style="padding: 20px;">
email: <input id="userForgotten-email" /> <br>
<button id="userForgotten">EMail Login Info</button> <br>
<div class="wrapped" id="userForgotten-result"></div>
</div>
<div class='bordered'>
<p>Password Was Forgotten
<p style="padding: 20px;">
email: <input id="forgotPassword-email" /> <br>
username: <input id="forgotPassword-username" /> <br>
<button id="forgotPassword">Forgot Password</button> <br>
<div class="wrapped" id="forgotPassword-result"></div>
</div>
<div class='bordered'>
<p>Reset Your Password
<p style="padding: 20px;">
passwordHash: <input id="passwordForgotten-hash" /> <br>
password: <input id="passwordForgotten-password" /> <br>
<button id="passwordForgotten">Update Password</button> <br>
<div class="wrapped" id="passwordForgotten-result"></div>
</div>
</div>
<div class="bordered leftFloater" style="width: 400px;">
<div class='bordered' style="width: 100%;">
<p>Update User Data
<p style="padding: 20px;">
key: <input size="10" id="updateKey" />
<select id="sa_fieldList">
<option value="" disabled>predefined userdata fields</option>
<option value="userId">userId</option>
<option value="creatorId">creatorId</option>
<option value="email">email (*)</option>
<option value="username">username (*)</option>
<option value="password">password</option>
<option value="access">access</option>
<option value="persistence">persistence (*)</option>
<option value="resetPwdHash">resetPwdHash (*)</option>
<option value="" disabled>(*) these are indexed fields</option>
</select> :index <br>
value: <input id="updateValue" /> <br>
<button id="updateIndexed">updateIndexed</button>
<button id="updateArbitrary">updateArbitrary</button> <br>
<div class="wrapped" id="updateValue-result"></div>
</div>
<div class='bordered' style="width: 100%; height: 300px;">
<p>User Data Record
<div id="userDataRec" class="wrapped centered" style="width: 98%; height: 100%;"></div>
</div>
</div>
<div class='clearFloat padded'>
auth-err: <span id="auth-err" class="aResult"></span>
</div>
<div class='clearFloat padded wrapped'>
auth-result: <span id="auth-result" class="aResult"></span>
</div>
<div style="position: absolute; bottom:5px;">
<div id="debugDiv"></div>
this page is based on Paul Irish's <a href="http://html5boilerplate.com/">html5 boilerplate</a>
</div>
</div>
<footer></footer>
</div> <!-- end of #container -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script>
<script src="lib/jquery.checkboxes.min.js"></script>
<script src="lib/jquery.selectboxes.min.js"></script>
<script type="text/javascript" src="./lib/safeAjax/safeAjax_v5.js"></script>
<!--[if lt IE 7 ]>
<script src="js/dd_belatedpng.js?v=1"></script>
<![endif]-->
<script src="index.js"></script>
<script>
var _gaq = [['_setAccount', 'UA-10127989-1'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
g.async = true; g.src = '//www.google-analytics.com/ga.js'; s.parentNode.insertBefore(g, s);
})(document, 'script');
</script>
</body>
</html>