-
Notifications
You must be signed in to change notification settings - Fork 1
/
delivery.html
329 lines (275 loc) · 8.88 KB
/
delivery.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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<!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>Delivery&Payment</title>
<style>
body {
background-color: whitesmoke;
}
#container {
display: grid;
grid-template-columns: repeat(2, 1fr);
width: 80%;
margin: auto;
margin-top: 3%;
}
#left {
width: 90%;
}
#right {
width: 60%;
background-color: white;
padding: 0.7%;
}
#login {
background-color: white;
border-radius: 7px;
margin-bottom: 7px;
padding: 0.7%;
/* font-weight: bold; */
}
#login>div {
display: flex;
}
#delivery {
background-color: white;
border-radius: 7px;
margin-bottom: 7px;
padding: 0.7%;
}
#FreeItem {
color: green;
}
#deliveryAdd {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 2%;
/* border: 1px solid red; */
}
#deliveryAdd>#add1 {
border: dotted orange;
align-items: center;
justify-content: center;
}
#deliveryAdd>#add2 {
border: dotted orange;
align-items: center;
justify-content: center;
}
#deliveryAdd button {
margin-left: 0px;
margin-top: 7%;
}
#delivery h4 {
margin: auto;
}
#add>button {
width: 80%;
margin: auto;
}
#button_add {
width: 100px;
height: 30px;
cursor: pointer;
display: block;
background-color: orange;
border-radius: 5px;
}
#detail {
display: flex;
justify-content: space-between;
}
#final {
margin-top: 100px;
}
#final>div {
display: flex;
justify-content: space-between;
}
hr {
background-color: black;
}
#total {
display: flex;
justify-content: space-between;
}
img {
width: 100%;
}
/* Payment */
#payment {
background-color: white;
border-radius: 7px;
padding: 0.7%;
}
#bottomcontainer {
width: 100%;
/* border: 1px solid grey; */
margin: auto;
}
#bottomimage {
display: flex;
width: 30%;
}
#detailcontainer {
display: flex;
justify-content: space-between;
}
#leftdetail p {
margin-top: 10%;
}
#rightdetail select {
margin-top: 10%;
}
input {
margin-top: 10%;
}
#placeorder {
justify-content: flex-end;
display: flex;
width: 78%;
}
#placeorder button {
background-color: #81a555;
color: white;
}
button {
/* display: block;
margin: auto; */
background-color: orange;
width: 32%;
margin-left: 68%;
}
</style>
</head>
<body>
<div id="container">
<div id="left">
<div id="login"></div>
<div id="delivery">
<h3>Delivery Address</h3>
<div id="deliveryAdd">
<div id="add1">
<h4>ADD NEW ADDRESS</h4>
<button id="button_add" onclick="window.location.href='address.html'">
ADD NEW
</button>
<div id="add1ap"></div>
</div>
<div id="add2">
<h4>OLD ADDRESS</h4>
<button id="button_add" onclick="window.location.href='address.html'">
SELECT
</button>
<div id="add2ap"></div>
</div>
</div>
</div>
<div id="payment">
<h3>Payment</h3>
<div id="bottomcontainer">
<div id="bottomimage">
<img src="https://ztransaction.bongous.com/static/css/images/pm/visa.png" alt="" />
<img src="https://ztransaction.bongous.com/static/css/images/pm/mastercard.png" alt="" />
<img src="https://ztransaction.bongous.com/static/css/images/pm/bitcoin.png" alt="" />
</div>
<div id="detailcontainer">
<div id="leftdetail">
<p>Card Type</p>
<p>Credit Card Number*</p>
<p>Expiration Date*</p>
<p>Security Code*</p>
</div>
<div id="rightdetail">
<div>
<select>
<option>MASTER CARD</option>
<option>VISA</option>
<option>BITCOIN</option>
</select>
</div>
<input type="number" />
<div class="date">
<select name="" id="">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>
<select name="" id="">
<option>2024</option>
<option>2025</option>
<option>2026</option>
<option>2027</option>
</select>
</div>
<input type="number" name="" id="" />
</div>
</div>
</div>
</div>
<button onclick="window.location.href='thankyou.html'">
Proceed Next
</button>
</div>
<div id="right">
<h3>Order Summary</h3>
<img src="Screenshot (443).png" alt="Not Available" />
<p id="detail"></p>
<div id="final"></div>
<hr />
<div id="total">
<h3 id="Total">Grand Total</h3>
</div>
</div>
</div>
</body>
</html>
<script src="./delivery.js"></script>
<script>
var oldAdd = JSON.parse(localStorage.getItem("UserAdd"));
const i = oldAdd.length - 1;
// console.log("i:", i);
displayAdd(oldAdd);
function displayAdd(ele) {
// console.log("i", i);
var a = document.createElement("p");
a.innerHTML = ele[i].name1;
var b = document.createElement("p");
b.innerHTML = ele[i].name2;
var c = document.createElement("p");
c.innerHTML = ele[i].add1;
var d = document.createElement("p");
d.innerHTML = ele[i].state1;
var e = document.createElement("p");
e.innerHTML = ele[i].mobile1;
var f = document.createElement("p");
f.innerHTML = ele[i].country1;
document.querySelector("#add1ap").append(a, b, c, d, e, f);
///////
var m = document.createElement("p");
m.innerHTML = ele[i - 1].name1;
var n = document.createElement("p");
n.innerHTML = ele[i - 1].name2;
var o = document.createElement("p");
o.innerHTML = ele[i - 1].add1;
var p = document.createElement("p");
p.innerHTML = ele[i - 1].state1;
var q = document.createElement("p");
q.innerHTML = ele[i - 1].mobile1;
var r = document.createElement("p");
r.innerHTML = ele[i - 1].country1;
document.querySelector("#add2ap").append(m, n, o, p, q, r);
}
</script>