forked from KwickerHub/WebCraftifyAI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.html
190 lines (180 loc) · 6.8 KB
/
signup.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
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<title>SignUp 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 signUpFunc(){
$("#processor_shower").fadeIn();
var username, password, email, agreement;
username = $("#signup_username").val();
email = $("#signup_email").val();
password = $("#signup_password").val();
agreecheck = document.getElementById("agreecheck").checked;
if(username.length == 0 || password.length == 0){
alert("Please All fields are required");
}else{
if(agreecheck != true){
alert("You should agree to our terms of use.");
}else{
//alert(username + email + password + agreecheck);
// you can change this link depending on what you are doing - Signin: sign_in.php
// Also check the requirements from the php file before using it.
$.post("../../backend/register_user.php", {
username: username,
password: password,
email: email,
key: "gjhtiidsimi09403jfjkdknf"
},
function(data, status){
//alert("Proceed to Sign Up.");
console.log(data + "status: " + status );
dataJson = JSON.parse(data);
if (dataJson["status"] == "true"){
$("#processor_shower").fadeOut();
$("#loader_side_success").fadeIn();
$("#msg_success").text(dataJson["msg"]);
//alert("account created successfully");
//we can redirect the user to the Dashboard environment...
location.assign("verify.html");
//before the redirect, we can use a successful pop-up...
}else{
$("#processor_shower").fadeOut();
$("#loader_side_error").fadeIn();
$("#msg_error").text(dataJson["msg"]);
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>SignUp Form</h1>
<div class="main-agileinfo">
<div class="agileits-top">
<form method="post">
<input class="text" id="signup_username" type="text" name="KwickerUsername" placeholder="Username" required="">
<input class="text email" id="signup_email" type="email" name="Kwickeremail" placeholder="Email" required="">
<input class="text" id="signup_password" type="password" name="Kwickerpassword" placeholder="Password" required="">
<br>
<div class="wthree-text">
<label class="anim">
<input id="agreecheck" type="checkbox" class="checkbox" value="off" required="">
<span>I Agree To The Terms & Conditions</span>
</label>
<div class="clear"> </div>
</div>
<input onclick="signUpFunc()" type="button" value="SIGNUP">
</form>
<p>Already have an Account? <a href="login.html"> Login Now!</a></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>