-
Notifications
You must be signed in to change notification settings - Fork 0
/
Signup.html
113 lines (112 loc) · 4.68 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
<!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.0" />
<title>Signup</title>
<link rel="stylesheet" href="./Styles/Signup.css" />
<link rel="stylesheet" href="./Script/Signup.js" />
</head>
<body>
<div id="gparent">
<div>
<img
id="home"
src="https://www.jefit.com/images/jefit_logo_website_signuplogin.svg"
alt=""
/>
</div>
<div id="parent">
<form action="">
<h1>CREATE ACCOUNT</h1>
<p>Continue with</p>
<div>
<a
href="https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?response_type=code&access_type=online&client_id=447303321639-t75iduaas17fb5bsah6tls8oophbd3g9.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fwww.jefit.com%2Flogin%2Fgplus-login.php&state&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.login%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&approval_prompt=auto&flowName=GeneralOAuthFlow"
>
<img src="https://www.jefit.com/images/rg_google.svg" alt="" />
</a>
<a
href="https://www.facebook.com/login.php?skip_api_login=1&api_key=165523163464640&kid_directed_site=0&app_id=165523163464640&signed_next=1&next=https%3A%2F%2Fwww.facebook.com%2Fv2.5%2Fdialog%2Foauth%3Fclient_id%3D165523163464640%26state%3Daf5879a04c38623900248f9287559984%26response_type%3Dcode%26sdk%3Dphp-sdk-5.0.0%26redirect_uri%3Dhttps%253A%252F%252Fwww.jefit.com%252Flogin%252Ffacebook-login.php%26scope%3Demail%26ret%3Dlogin%26fbapp_pres%3D0%26logger_id%3D6f8f789c-a486-4e73-aaab-d41d1a7777b1%26tp%3Dunspecified&cancel_url=https%3A%2F%2Fwww.jefit.com%2Flogin%2Ffacebook-login.php%3Ferror%3Daccess_denied%26error_code%3D200%26error_description%3DPermissions%2Berror%26error_reason%3Duser_denied%26state%3Daf5879a04c38623900248f9287559984%23_%3D_&display=page&locale=en_GB&pl_dbl=0"
>
<img src="https://www.jefit.com/images/rg_fb.svg" alt="" />
</a>
<a
href="https://appleid.apple.com/auth/authorize?client_id=com.web.JEFIT&redirect_uri=https%3A%2F%2Fwww.jefit.com%2Fapi%2Fapple-signin-callback%3Fplatform%3Dweb&response_type=code%20id_token&state=8uhtj5guV9ZSvRRUiXAAKb6KeCMwol1z34UxBVv5&scope=name%20email&response_mode=form_post&frame_id=37d9c817-1363-4cec-a18f-59d7a7b253d1&m=22&v=1.5.4"
>
<img src="https://www.jefit.com/images/rg_apple.svg" alt="" />
</a>
</div>
<br />
<br />
<label>Username</label><br />
<input
id="Username"
type="text"
placeholder="Enter a Username"
required
/><br />
<label>Email</label><br />
<input
id="mail"
type="email"
placeholder="Enter your email"
required
/><br />
<label>Password</label><br />
<input
id="pass"
type="password"
placeholder="Password"
required
/><br />
<p>
Minimum 8 characters1 number (0-9) <br />
1 lowercase letter (a-z)1 uppercase letter (A-Z) <br />
1 special character (from standard US keyboard)
</p>
<input
id="cpass"
type="password"
placeholder="Confirm Password"
required
/><br />
<input type="submit" value="Create Account" />
<h4>
Already a member?
<a href="./Login.html">Signin</a>
</h4>
<h4>
By signing up, you agree to the JEFIT
<a href=""> Terms of Use </a> and
<a href=""> Privacy Policy. </a> We respect and protect your
information and privacy.
</h4>
</form>
</div>
</div>
</body>
</html>
<script>
let submit = document.querySelector("form");
submit.addEventListener("submit", subfun);
function subfun(event) {
console.log("Invoked");
event.preventDefault();
let input = document.querySelectorAll("input");
let user = input[0].value;
let mail = input[1].value;
let pass = input[2].value;
let cpass = input[3].value;
let obj = { user, mail, pass, cpass };
localStorage.setItem("Signup_details", JSON.stringify(obj));
alert("Signup Successful");
window.location.href = "Login.html";
}
document.querySelector("#home").addEventListener("click", home);
function home() {
console.log("invoked");
window.location.href = "index.html";
}
</script>