-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforgot.html
87 lines (78 loc) · 2.18 KB
/
forgot.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Her Pair</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link href="css/style.css" type="text/css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script src="js/config.js"></script>
<script type="text/javascript">
//document.addEventListener("deviceready", onDeviceReady, false);
function checkDevice(){
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady() {
//navigator.splashscreen.hide();
return true;
}
</script>
</head>
<body onLoad="checkDevice();">
<div class="wrapper">
<header>
<div class="header-top">
<div class="header-right"><img src="images/menu-logo.png"></div>
</div>
</header>
<div class="container">
<div class="innerpage loginpage forgotpage">
<h1 class="header-title">Forgot Password</h1>
<div class="loginmainblock">
<input type="text" name="reset_email" id="reset_email" placeholder="EMAIL ID"/>
<input class="submitbtn" type="submit" onClick="forgotPassword();" value="Submit"/>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
function callBackFunctionFlag(){
return true;
}
function forgotPassword(){
var url = siteurl + '?route=account/forgotten';
jQuery.ajax({
type: 'POST',
url: url,
data: $('.loginpage input[type=\'text\']'),
dataType: 'json',
crossDomain: true,
success: function(data){
if(data['error'])
{
navigator.notification.alert(
data['error']['text'],
callBackFunctionFlag,
'Confirm',
"OK"
);
}else if(data['success'])
{
navigator.notification.alert(
"Please check your email and click on verification link.",
callBackFunctionFlag,
'Confirm',
"OK"
);
$("#reset_email").val('');
}
}
});
}
</script>
</html>