-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
84 lines (67 loc) · 3.05 KB
/
login.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
<!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>login page</title>
<link rel="stylesheet" href="login.css">
</head>
<body>
<div class="container">
<div class="header">
<h1>Shopbop</h1>
<h2>Sign in</h2>
</div>
</div>
<form id="form">
<div class="control">
<h3>Email</h3>
<input id="email" placeholder=" email" type="text">
</div>
<div class="control">
<h3>Password</h3>
<input id="password" placeholder="password" type="text">
</div>
<div>
<input class="but" type="submit" value="Sign In">
</div>
<!-- <div >
<p>By creating an account, you agree to our <a href="https://www.shopbop.com/ci/aboutShopBop/privacypolicy.html"> Privacy Notice</a> <br> and <a href="https://www.shopbop.com/ci/aboutShopBop/privacypolicy.html">Conditions of Use</a> </p>
</div> -->
<div class="abhay">
<p>More sign in options</p>
</div>
<div>
<a href="https://na.account.amazon.com/ap/signin?_encoding=UTF8&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.pape.max_auth_age=0&ie=UTF8&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&pageId=lwa&openid.assoc_handle=amzn_lwa_na&marketPlaceId=ATVPDKIKX0DER&arb=46db5020-25ed-4b58-b1b4-e3b1ca1ac28f&language=en_US&openid.return_to=https%3A%2F%2Fna.account.amazon.com%2Fap%2Foa%3FmarketPlaceId%3DATVPDKIKX0DER%26arb%3D46db5020-25ed-4b58-b1b4-e3b1ca1ac28f%26language%3Den_US&enableGlobalAccountCreation=1&metricIdentifier=amzn1.application.0c71532436c34d7c847876e8faf16238&signedMetricIdentifier=0XXM9dAGwpAkW8qI%2F%2F4wPD4imL1z65JbKzV2nC7A9Sw%3D"><img src="https://images-na.ssl-images-amazon.com/images/G/01/Shopbop/media/images/authportal/lwa_209x48._CB485945402_.png" alt=""></a></div>
<div class="already">
<h4> New to Shopbop? <a href="index.html">Sign up</a> </h4>
</div>
</form>
</form>
</body>
</html>
<script>
var form = document.querySelector("form")
var userData=JSON.parse(localStorage.getItem
("userData"))
form.addEventListener("submit",function(event){
event.preventDefault()
var data = {
email:form.email.value,
password:form.password.value,
}
if(userData===null){
alert("create your account")
}
else if(userData.email == data.email && userData.password == data.password){
// alert("login Successful")
localStorage.setItem("login",JSON.stringify
(userData))
window.location.href="homepage.html"
}
else{
alert("User does not exist")
}
})
</script>