forked from KwickerHub/WebCraftifyAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverify.html
168 lines (159 loc) · 5.97 KB
/
verify.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
<!DOCTYPE html>
<html>
<head>
<title>Login Form</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Custom Theme files -->
<link href="../assets/css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- //Custom Theme files -->
<!-- web font -->
<link href="//fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i" rel="stylesheet">
<!-- //Js Libraries -->
<script type="text/javascript" src="../assets/vendor/js/access_library.js"></script>
<!-- <script type="text/javascript" src="../assets/vendor/js/jQuery_online_3_4_1.js"></script> -->
<script>
function Verify_side(){
$("#processor_shower").fadeIn();
var verify_code = $("#verify_code").val();
if(verify_code.length == 0){
alert("Please All fields are required");
$("#processor_shower").fadeOut();
}else{
$.post("../../backend/verify_user.php", {
unique: verify_code,
//email: email,
key: "gjhtiidsimi09403jfjkdknf"
},
function(data, status){
dataJson = JSON.parse(data);
if (dataJson["status"] == "true"){
$("#processor_shower").fadeOut();
$("#loader_side_success").fadeIn();
$("#msg_success").text(dataJson["msg"]);
alert("Login successfully");
location.assign("dashboard.html");
}else{
$("#processor_shower").fadeOut();
$("#loader_side_error").fadeIn();
$("#msg_error").text(dataJson["msg"]);
if(dataJson["msg"].includes("not verified") ){
$("#msg_error").append('<a href="Verify.html"><button style="background-color: green; color: #fefefe; padding: 12px; "> Verify Now </button> </a>');
}
alert("we care having some issues: " + dataJson["msg"]);
//we can use a pop-up here describing to the user the content in the alert-box
}
});
}
}
</script>
</head>
<body>
<!-- main -->
<div class="main-w3layouts wrapper">
<h1>Verify Email</h1>
<div class="main-agileinfo">
<div class="agileits-top">
<form action="#" method="post">
<input class="text" id="verify_code" type="text" name="code" placeholder="Verification code" required="">
<br><br>
<input onclick="Verify_side()" type="button" value="Verify">
</form>
<p> We sent a verification code to your email. Please enter the verification code above.</p>
</div>
</div>
<!-- copyright -->
<div>
<p></p>
</div>
<!-- //copyright -->
<ul class="colorlib-bubbles">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<!-- //main -->
</body>
<div id="processor_shower" style="display: none; position: fixed; z-index: 3; top: 10%; left: 20%; width: 60%;">
<progress style="width: 100%;" class="the_processor"></progress>
</div>
<!-- Pop ups Successful-->
<style>
#loader_side_error{
width: 70%;
padding: 12px;
background-color: blanchedalmond;
display: block;
z-index: 2;
position: absolute;
top: 10%;
left: 14%;
text-align: center;
}
#loader_side_success{
width: 70%;
padding: 12px;
background-color: blanchedalmond;
display: block;
z-index: 2;
position: absolute;
top: 10%;
left: 14%;
text-align: center;
}
.closure{
margin-left: 90%;
font-size: 23px;
width: 25px;
padding: 3px;
display: block;
border: 2px solid #aaaaaa;
border-radius: 10px;
text-align: center;
font-family: arial;
background-color: #fefefe;
color: red;
}
</style>
<center id="loader_side_error" style="display:none">
<span onclick="this.parentElement.style.display='none'" class="closure">x</span>
<br/>
<div>
<svg class="bi bi-x-octagon-fill" width="120px" height="120px" viewBox="0 0 16 16" fill="tomato">
<path fill-rule="evenodd" d="M11.46.146A.5.5 0 0 0 11.107 0H4.893a.5.5 0 0 0-.353.146L.146 4.54A.5.5 0 0 0 0 4.893v6.214a.5.5 0 0 0 .146.353l4.394 4.394a.5.5 0 0 0 .353.146h6.214a.5.5 0 0 0 .353-.146l4.394-4.394a.5.5 0 0 0 .146-.353V4.893a.5.5 0 0 0-.146-.353L11.46.146zm.394 4.708a.5.5 0 0 0-.708-.708L8 7.293 4.854 4.146a.5.5 0 1 0-.708.708L7.293 8l-3.147 3.146a.5.5 0 0 0 .708.708L8 8.707l3.146 3.147a.5.5 0 0 0 .708-.708L8.707 8l3.147-3.146z"/>
</svg>
<br/><br/>
<div>
<label id="msg_error" style="color: #00050A; font-family: tahoma; font-size: 20px;">
Error - We are facing some Challenges.
</label>
</div>
</div>
<br/>
</center>
<div id="loader_side_success" style="display:none">
<span onclick="this.parentElement.style.display='none'" class="closure">x</span>
<br/>
<center>
<svg class="bi bi-check-circle-fill" width="120px" height="120px" viewBox="0 0 16 16" fill="green">
<path fill-rule="evenodd" d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
</svg>
<br/><br/>
<div>
<label id="msg_success" style="color: #00050A; font-family: tahoma; font-size: 20px;">
Process Successful
</label>
</div>
</center>
<br/>
</div>
</html>