forked from Sumit-Gangwar/Rodan-Fields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddress.html
144 lines (124 loc) · 3.46 KB
/
address.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
<!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">
<link rel="shortcut icon" href="./Images/R+F.ico" type="image/x-icon">
<title>Address</title>
<style>
*{
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
}
#top{
/* border: 1px solid red; */
margin: auto;
margin-top: 30px;
width: 40%;
text-align: center;
}
#body{
border: 1px solid grey;
border-radius: 5px;
height: auto;
width: 50%;
margin: auto;
margin-top: 40px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
padding-left: 20px;
padding-bottom: 15px;
}
#name{
width: 40%;
}
#email{
width: 40%;
}
#mobile{
width: 40%;
}
.pin{
width: 20%;
}
input{
margin-top: -19px;
width: 93%;
height: 30px;
border: 1px solid lightgray;
border-radius: 5px;
}
#next{
width: 30%;
height: 40px;
margin-top: 20px;
margin-left: 900px;
font-size: large;
background-color: black;
color: aliceblue;
border: 0px;
}
select{
display:block;
margin-top: 20px;
margin-bottom: 20px;
height: 30px;
border: 1px solid lightgray;
border-radius: 5px;
font-size: 15px;
width: 30%;
text-align: center;
}
#name,#email{
/* border: 1px solid black; */
padding: 5px 3px;
font-weight: 600;
border-radius: 5px;
width: 95%;
}
</style>
</head>
<body>
<div id="top">
<h1>Delivery Address Details</h1>
</div>
<div id="body">
<form id="form">
<h4>Name</h4>
<input id="name">
<h4>Enter Full Address</h4>
<input type="text" name="" id="">
<h4>Enter Pin Code</h4>
<input type="Number" name="" class="pin">
<select>
<option>Select State</option>
<option value="">Kansas</option>
<option value="">Maryland</option>
<option value="">Indiana</option>
<option value="">New York</option>
<option value="">Washington</option>
<option value="">Virginia</option>
<option value="">Texas</option>
</select>
<h4>Email</h4>
<input id="email">
<h4>Enter Mobile Number</h4>
<input type="number" id="mobile">
</form>
</div>
<input type="submit" name="" value="Proceed to Payment" id="next">
</body>
</html>
<script>
var signIn=JSON.parse(localStorage.getItem("signIn"));
console.log(signIn)
document.querySelector("#name").value=signIn.username;
document.querySelector("#email").value=signIn.useremail;
document.querySelector("#name").disabled=true;
document.querySelector("#email").disabled=true;
document.querySelector("#next").addEventListener("click",nextPage)
function nextPage(){
window.location.href="/payment.html";
}
</script>