-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkout.html
301 lines (254 loc) · 11.7 KB
/
checkout.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!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>Document</title>
<style>
#container{
display: flex;
}
#right{
border: 1px solid rgb(240, 238, 238);
border-bottom: none;
flex: 4;
background-color: rgba(218, 214, 214, 0.897);
}
#left{
border: 1px solid grey;
border-bottom: none;
flex: 6;
}
img {
margin-left: 200px;
margin-top: 50px;
}
#text{
font-size: 12px;
margin-left: 200px;
}
#checlout{
margin-left: 300px;
border: 1px solid grey;
margin-right: 200px;
margin-left: 200px;
text-align: center;
box-sizing: content-box;
}
#paypal
{
height: 20px;
max-height: 25px;
padding-bottom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IEMgOTYuMiAyNi40MTcgOTYuNyAyNi4wMTcgOTYuOCAyNS41MTcgTCAxMDAgNS42MTcgQyAxMDAuMSA1LjIxNyA5OS44IDQuOTE3IDk5LjQgNC45MTcgTCA5NS44IDQuOTE3IEMgOTUuNCA0LjkxNyA5NS4yIDUuMTE3IDk1LjEgNS40MTcgWiI+PC9wYXRoPjwvc3ZnPg");
background-repeat: no-repeat;
background-color: rgb(255, 255, 32);
width: 170px;
height: 40px;
padding-bottom: 15px;
border: none;
background-position: center;
}
.policy-list__item {
float: left;
font-size: 0.8571428571em;
margin-right: 1.5em;
margin-bottom: 0.5em;
}
.policy-list:after, .policy-list:before {
content: "";
display: table;
}
#contact{
margin-left: 100px;
}
div {
display: block;
}
.policy-list {
zoom: 1;
text-align: center;
margin-left: 200px;
}
ul, ol {
margin: 0;
padding: 0;
list-style: none;
}
ul {
display: block;
list-style-type: disc;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 40px;
}
li {
display: list-item;
list-style: none;
text-align: -webkit-match-parent;
}
#address{
margin-left: 200px;
}
#fname,#lname{
margin-top: 40px;
width:200px;
height: 50px;
}
#inpt{
height: 50px;
margin-top: 40px;
width: 410px;
}
#container{
display: flex;
}
#int{
margin-top: 50px;
}
#bn{
width: 200px;
height: 70px;
background-color: rgb(62, 62, 102);
color: aliceblue;
margin-left: 400px;
}
#tt{
padding-right: 15px;
}
#in{
margin-top: 100px;
margin-left: 80px;
width: 200px;
height: 40px;
}
#appl{
width: 100px;
height: 40px;
background-color: white;
}
#innerright{
margin-top: 100px;
margin-left: 150px;
}
#appl:hover{
background-color: palevioletred;
}
button{
margin-top: 20px;
width: 200px;
height: 50px;
background-color: white;
}
button:hover{
background-color: rgb(211, 58, 84);
color: white;
}
</style>
</head>
<body>
<div id="container">
<div id="left">
<a href="home.html"><img src="https://cdn.shopify.com/s/files/1/0637/6147/files/logo_556396e7-3386-4a9c-8dfc-b9250175595e.png?height=628&pad_color=ffffff&v=1523377568&width=1200" width="150px" height="100px" alt=""></a>
<br>
<p id="text">Cart > Information > Shipping > Payment </p>
<br> <p id="checlout"> Express Checkout <br>
<button id="btn"></button>
</p>
<hr><br>
<p id="contact">Contact Information</p>
<div style="display: flex;">
<img src="https://www.pngall.com/wp-content/uploads/5/User-Profile-PNG-High-Quality-Image.png"width="50px" height="50px" alt="">
<p id="profile" style="margin-top: 60px; margin-left: 50px;"></p>
</div><br>
<p style="margin-left: 200px;"><input type="checkbox" name="" id="">Email me with news and offers</p>
<br>
<div id="address">
<h3>Shipping Address</h3>
<form action="">
<input type="text" id="inpt"placeholder="Use a new address"><br>
<input type="text" id="fname" placeholder="First Name"> <input type="text" id="lname"placeholder="Last Name ">
<br>
<input type="text" id="inpt"name="" placeholder="Address" >
<br> <input type="text" id="inpt"placeholder="Apartmet,Suite,etc. (optional)" name="" id="">
<br><input type="text"id="inpt" placeholder="city" name="" id="">
<br> <input id="int" type="checkbox" name="" id=""> <p id="tt"> Send me news and special offers via text message*
By checking the box and entering your phone number above, you consent to receive marketing text <br>
messages from Credo Beauty at the number provided,<br> including messages sent by autodialer. Consent is not a condition of any purchase. Message and data rates may apply.
<br> Message frequency varies. Reply HELP for help or STOP to cancel. View our Privacy Policy and Terms of Service.</p>
<button id="bn" > Continue to shipping</button>
</form>
</div>
<hr width="600px">
<ul class="policy-list" role="list">
<li class="policy-list__item ">
<a aria-haspopup="dialog" data-modal="policy-refund-policy" data-title-text="Refund policy" data-close-text="Close" data-iframe="true" href="https://credobeauty.com/6376147/policies/refund-policy.html?locale=en-US">Refund policy</a>
</li>
<li class="policy-list__item ">
<a aria-haspopup="dialog" data-modal="policy-shipping-policy" data-title-text="Shipping policy" data-close-text="Close" data-iframe="true" href="https://credobeauty.com/6376147/policies/shipping-policy.html?locale=en-US">Shipping policy</a>
</li>
<li class="policy-list__item ">
<a aria-haspopup="dialog" data-modal="policy-privacy-policy" data-title-text="Privacy policy" data-close-text="Close" data-iframe="true" href="https://credobeauty.com/6376147/policies/privacy-policy.html?locale=en-US">Privacy policy</a>
</li>
<li class="policy-list__item ">
<a aria-haspopup="dialog" data-modal="policy-terms-of-service" data-title-text="Terms of service" data-close-text="Close" data-iframe="true" href="https://credobeauty.com/6376147/policies/terms-of-service.html?locale=en-US">Terms of service</a>
</li>
</ul>
</div>
<div id="right">
<h2 style="margin-top: 50px; margin-left:100px; color:teal;">Enter Your Card Details</h2>
<div id="innerright">
<label for="cardNumber" style="color: palevioletred;" ><h3>CARD NUMBER</h3></label>
<input
type="text"
id="cardNumber"
name="cardNumber"
placeholder="Card Number" style="height: 40px;"
/>
<br />
<br />
<label for="dateOfExpiry" style="color: palevioletred; "><h3>DATE OF EXPIRY</h3></label>
<input type="date" id="dateOfExpiry"name="dateOfExpiry"placeholder="Date Of Expiry" style="height: 40px;" />
<br />
<br />
<label for="cvv" style="color: palevioletred;"><h3>CVV</h3>
</label>
<input type="text" id="cvv" placeholder="CVV" style="height: 40px;" />
<br />
<br />
<button onclick="createOrder()">Make Payment</button>
<br />
<br />
</div>
<div>
</div>
</div>
</div>
</body>
</html>
<script>
var scdata=JSON.parse(localStorage.getItem("BEAUTYKEY"));
// var scdata1=JSON.parse(localStorage.getItem("searchUserdata"));
console.log(scdata)
scdata.map(function (elem){
document.getElementById("profile").textContent= ` ${elem.FNAME}`;
})
function createOrder() {
let cardNumber = document.getElementById("cardNumber").value;
let dateOfExpiry = document.getElementById("dateOfExpiry").value;
let cvv = document.getElementById("cvv").value;
console.log(cardNumber, dateOfExpiry, cvv);
if (cardNumber && dateOfExpiry && cvv) {
setTimeout(function () {
alert("order has been created successfully");
}, 3000);
window.location.href="success.html";
}
}
</script>