-
Notifications
You must be signed in to change notification settings - Fork 0
/
resetPwd.html
60 lines (59 loc) · 2.78 KB
/
resetPwd.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
<br>
<ul data-role="listview" data-theme="c" data-divider-theme="e">
<li data-role="list-divider" class="ui-corner-top">
<h1 style="text-align: center;">Reset Password</h1>
</li>
<li class="ui-corner-bottom">
<form id="resetPwdForm" action="#" method="post">
<div>
<label for="userfield">Username</label>
<input type="text" name="username" maxlength=30 id="userfield"
value=""/>
<label for="emailfield">Email</label>
<input type="text" name="email" maxlength=30 id="emailfield"
value=""/>
<div class="ui-bar">
<br>
<div id="mc">
<p>Draw the shape in the box</p>
<canvas id="mc-canvas"></canvas>
</div>
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a">
<a href="javascript:loadSignUpPage();"
data-role="button" data-theme="c"
data-icon="arrow-r">Sign Up</a>
</div>
<div class="ui-block-b">
<a href="javascript:loadSignInPage();"
data-role="button" data-theme="c"
data-icon="check">Sign In</a>
</div>
</div>
<div class="ui-grid-solo">
<input type="submit" disabled="disabled" data-theme="b" data-icon="alert" value="Reset Password"/>
<input type="hidden" id="mc-action" value="javascript:resetPwd();"/>
</div>
</form>
</li>
</ul>
<script type="text/javascript">
$('#resetPwdForm').motionCaptcha({
// Basics:
action:'#mc-action', // the ID of the input containing the form action
divId:'#mc', // if you use an ID other than '#mc' for the placeholder, pass it in here
cssClass:'.mc-active', // this CSS class is applied to the 'mc' div when the plugin is active
canvasId:'#mc-canvas', // the ID of the MotionCAPTCHA canvas element
// An array of shape names that you want MotionCAPTCHA to use:
shapes:['triangle', 'x', 'rectangle', 'circle', 'check', 'caret', 'zigzag', 'arrow', 'leftbracket', 'rightbracket', 'v', 'delete', 'star', 'pigtail'],
// These messages are displayed inside the canvas after a user finishes drawing:
errorMsg:'Wrong!',
successMsg:'Correct!',
// This message is displayed if the user's browser doesn't support canvas:
noCanvasMsg:"Your browser doesn't support <canvas>",
// This could be any HTML string (eg. '<label>Draw this shit yo:</label>'):
label:'<p>Please draw the shape in the box to submit the form:</p>'
});
</script>