-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcheckout.html
115 lines (79 loc) · 3.39 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
<!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>checkout</title>
<link rel="stylesheet" href="./styles/checkout.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./styles/footer.css">
<link rel="stylesheet" href="./styles/navbar.css">
</head>
<body>
<div id="c-nav">
<p>TODAY ONLY: FREE SHIPPING! Shop our SALE styles: 70% off 3+ · 60% off 2 · 50% off 1. And 50% off almost everything else. Use code <br> SHOPTIME.</h2>
</div>
<p style="margin-bottom:-30px ;padding-left:5px;color:grey">Return to shoping bag</p>
<div id="crew-nav">
<img src="https://searchlogovector.com/wp-content/uploads/2021/11/jcrew-logo-vector.png" alt="">
</div>
<div id="checkout">
<div id="f-box">
<div id="method">
<h4>Delivery Method</h4>
<div>
<input style="height: 40px;" type="checkbox"> <p>STANDARD delivery</p> <p class="last">INR 1,710.00</p>
</div>
<p style="margin-top:-20px ;">delivered on or before 5 january</p>
<div>
<input style="height: 40px;" type="checkbox"> <p>EXPRESS delivery</p> <p class="last">INR 2,052.00</p>
</div>
<p style="margin-top:-20px ;">delivered on or before 28 december</p>
</div>
<div id="-box"></div>
<div id="address">
<h3>Delivery address</h3>
<div><input type="text" name="" id="name" placeholder="First Name"> <input type="text" id=""placeholder="Last Name">
</div>
<select name="" id="country" >
<option value="">country</option>
<option value="India">India</option>
</select>
<input type="text" placeholder="Adress line 1 *" id="ad1">
<input type="text" placeholder="Adress line 2 *" id="ad2">
<div><input type="text" name="" id="zip" placeholder="*Postal Code"> <input type="text" id="city"placeholder="*City">
</div>
<div>
<input style="margin-top: 10px;" type="checkbox" name="" id=""> <p>Save this address for my next purchase.</p>
</div>
<input type="number" name="" id="number" placeholder="+91 *************">
<input type="email" name="" id="email" placeholder="Enter your Email">
<div>
<input style="margin-top: 10px;" type="checkbox" name="" id=""> <p>I have read and consent to ESW processing my information in accordance with the Privacy Statement and Cookie Policy.</p>
</div>
<button id="payment-btn" onclick="payment()">CONTINUE TO PAYMENT</button>
<script>
function payment(){
window.location.href="payment.html"
let customer_address=JSON.parse(localStorage.getItem("address"))||[]
let name=document.getElementById("name").value
let ad1=document.getElementById("ad1").value
let ad2=document.getElementById("ad2").value
country=document.getElementById("country").value
let number=document.getElementById("number").value
let email=document.getElementById("email").value
let details={name,ad1,ad2,number,email,country}
customer_address.push(details)
localStorage.setItem("address",JSON.stringify(customer_address))
console.log(details)
}
</script>
</div>
<div id="c-f" >
<p>Powered by ESW</p>
<p>Terms & Conditions</p>
<p>Privacy Statement</p>
</div>
</body>
</html>