-
Notifications
You must be signed in to change notification settings - Fork 2
/
shipmentpage.html
466 lines (398 loc) · 15.1 KB
/
shipmentpage.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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
<!DOCTYPE html>
<html lang="en">
<head>
<title>Payment Page</title>
</head>
<link
rel="icon"
type="image/x-icon"
href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX/b2EAAAD/cWP/c2W4UEbAVEn/cWKHOzNjKyZ2My2PPjZPIx7uaFvlZFfbX1O1T0WsS0HQWk/4bF6LPTUdDQsjDw3tZ1qVQTlEHhrGVktnLSfNWU4zFhOlSD8pEhA8GhcSCAedRDx9NzBUJCAtExFcKCNAHBhlLCYWCQg2FxUfDgy/R+/lAAAHtklEQVR4nO2daXuqPBCGMVFcCuLS4lbb2lNP6/v/f+Arm8wTEsWeMhWveb51ApKb7GEm9TyRSCQSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBIdFQelYv/q29WM3B/MGsig47mTznl1VXahHoC5r/Mf8C/c38nv98ZoZkNU0YUM9vIczgx78QP+4/n7n4o39I727fW1oFlCf2fYi7KtS+gZ9kdtz9CvEeoXw/6gryJUPTNhylSIdQnHlYT4KkL9x0wYMhViTUKzFR01UtcQBtUUpr6mbhlaUvwrCNWumjJR7myxE6quJWWlriB8qqa88lTTeoT6wZKyT3N4aTx8SwmntqQxC6E3nY8yzeHpw9zaT7MRWzMfpISL/AcWMCX4WOS/ukjf0NB2f5+rrykET5/q3JpesrMS7tKW6OcXaqgND8X9WWu13t85k6tGhIR0tNJv1gw+QRng/O+BprmaQo+nrznJSehbW5H5Gs4Q6qX9/geueU0uZ+ahFdHMwqB9hjAkCR90chRzsWVyEsKkGzodOmi7CdWCJOxoj7bgraYuQmhFaxg46KDtJtQ0IYT5320QQivqQZd5oCXlIvQ3xP6iodvasCK6CGkr6hh1lgzaTkK9JvadUiPy54C1r3EQQo6OfQss9smg7SSEVxIayxS+3YwzhNR8nIviSq+83UUI9uejWdM5KttS302oVhUgaigHbRehfjWAYIb0wllN7YT6k1jTARDalaOsiB2acVyxME2/zxBCK9okVizV06DtIFR0/MsWTPrZfGm/SehDvvM9F2oaFdXURUitW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T0QOe2j4OhsU9NIbIVzVIKQ9S4hu4ktjRUXpb4SwThkahPTPvUFIg4PbS0jjmz4NQtpG20tIa6IZ3kRrcHsJoS/FiF+IaWsvIcSoRTBawKqqvYQQWvNICXHl32JCCK+EeFhYiLSX0Ig0WntFnImx+9ZiQvNsoW2QbOqHuD3casLqMW9fr5bduRtZH36L0DhP0qEbWeN/i9B2El1VN7JP8z3Ci6eHtp7QcZDZPRHWQWw5oblxlYsextR2Qk9bvsAt6WSg9YSeUuj3eBwfNF1ZNeoxxEKYuCn0ym++z4tAw9qRzc+7QcLEXcMLN1EUrcaz1BmDXsp2lJJPCd8NT4V/JUwfUAZXwLKjy1VLIYQ8+zjmCimvYSdWpWPzTC9YOnKepPTzOtbO6eK50l1qerIG65FmPyulg/xb2iMSQiX9YD4C8yc1P5S9CWLQ04cZnQThKId/lWd+t3Ae/NGoeynIeuLztzUz3RSivFM6Vl30K+crwh8nxJ2ozms3UNqfbYyp+K7FhHgWkUtsfI0Q1nDmYCzCBghr7NN8MQI2Qeh5lxxqxpzHezZCODvv1xaxjvaNEPqB5Z8GnDThnc40QnjUp/OaFfN8rSlC7ehRBzPONtgkoadUVPUwHo75J9yNESYztXA7KPuc5XzltXhB4ZB/nLCNp6vVZhwkDny/nZ2m5DccxiUSiUQikUgkEolEIpFIJBKJRCKRSCQSiUQikUgkEolEIpFIJBKJWqj/AX/GerQran0bAAAAAElFTkSuQmCC"
/>
<style>
* {
font-family: "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body {
margin: 0%;
}
#main {
height: 800px;
}
#navbar {
height: 50px;
display: flex;
}
#navbar>img {
width: 115px;
margin-left: 18px;
margin-right: 15px;
}
#inside_nav {
width: 80%;
margin-left: 45px;
height: 50px;
margin-top: 5px;
}
#inside_nav>div {
display: flex;
}
#inside_nav>div:first-child {
height: 50px;
}
#inside_nav>div>div>div>h3 {
margin-top: 7px;
font-size: 14px;
}
#my_cart {
display: flex;
margin-right: 60px;
}
#order_summary {
display: flex;
margin-right: 60px;
}
#payment {
display: flex;
margin-right: 60px;
}
.circle {
border-radius: 50%;
background-color: rgb(255, 111, 97);
width: 20px;
height: 20px;
display: flex;
justify-content: center;
align-items: center;
margin-top: 5px;
margin-right: 5px;
}
.circle>p {
color: white;
margin: 2%;
}
#line {
height: 5px;
width: 38%;
}
#line>div:first-child {
background-color: rgb(255, 111, 97);
width: 60%;
}
#line>div:last-child {
background-color: rgb(255, 174, 167);
width: 40%;
}
#need_help {
margin-top: 10px;
}
#need_help>a {
text-decoration: none;
color: black;
font-size: 14px;
}
/* ______________________End of navbar_________________ */
#box {
margin-top: 40px;
width: 40%;
margin-left: 160px;
}
#box>p {
font-size: 18px;
margin: 0;
font-weight: 200;
}
/* _____________________________Form part______________________________ */
#box_1 {
box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
padding: 10px;
}
#form {
height: 580px;
width: 100%;
}
#addres {
width: 100%;
height: 50px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
#landmark {
width: 100%;
height: 30px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
#pincode {
width: 100%;
height: 30px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
#locality {
width: 100%;
height: 30px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
#city {
width: 100%;
height: 30px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
#state {
width: 100%;
height: 30px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
#name {
width: 100%;
height: 30px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
#mobile {
width: 100%;
height: 30px;
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
border-radius: 10px;
margin-bottom: 25px;
border: none;
}
/* ____________________________________________________________________ */
#buttons {
display: flex;
height: 30px;
}
#buttons>div>input {
width: 30px;
height: 20px;
}
#buttons>div>input:hover {
cursor: pointer;
}
#buttons>div:nth-child(2),
#buttons>div:nth-child(3) {
margin-left: 15px;
}
#buttons>div>label {
margin: 0;
font-size: 15px;
margin-left: 10px;
font-weight: 300;
color: rgb(167, 163, 158);
}
#last_part {
display: flex;
justify-content: right;
}
#last_part>div>h4 {
color: rgb(255, 111, 97);
font-size: 20px;
margin: 0%;
}
#last_part>div>h4:hover {
cursor: pointer;
}
#last_part>div:first-child {
margin-top: 10px;
margin-right: 10px;
padding: 5px;
}
#save {
width: 120px;
height: 45px;
border-radius: 8px;
border: none;
color: white;
font-weight: 300;
background-color: rgb(255, 111, 97);
}
#save:hover {
cursor: pointer;
}
/* ________________________End of mainpage________________ */
#bottom_part {
width: 100%;
display: flex;
height: 150px;
}
#bottom_part>div {
padding: 10px;
display: flex;
}
#bottom_part>div:nth-child(1) {
width: 60%;
}
#bottom_part>div:nth-child(2) {
width: 38%;
}
#bottom_part>div>p {
font-size: 9px;
line-height: 20px;
}
#terms {
display: inline;
color: red;
}
#terms>a {
color: red;
text-decoration: none;
}
#terms:hover {
cursor: pointer;
}
</style>
<body>
<div id="main">
<div id="navbar">
<img src="https://www.1mg.com/images/tata_1mg_logo.svg" alt="logo">
<div id="inside_nav">
<div>
<div id="my_cart">
<div class="circle">
<p>1</p>
</div>
<div>
<h3>My cart</h3>
</div>
</div>
<div id="order_summary">
<div class="circle">
<p>2</p>
</div>
<div>
<h3>Order Summary</h3>
</div>
</div>
<div id="payment">
<div class="circle">
<p>3</p>
</div>
<div>
<h3>Payment</h3>
</div>
</div>
</div>
<div id="line">
<div></div>
<div></div>
</div>
</div>
<div id="need_help"><a href="https://www.1mg.com/help">Need Help?</a></div>
</div>
<!-- _______________________________End of navbar________________________________________ -->
<div id="box">
<p>Add New Address</p>
<div id="box_1">
<form id="form">
<input type="text" name="addres" id="addres" placeholder="Flat Number, Building Name, Street/Locality">
<input type="text" name="Landmark" id="landmark" placeholder="Landmark(optional)">
<input type="text" name="pincode" id="pincode" placeholder="Enter your pincode">
<input type="text" name="locality" id="locality" placeholder="Locality">
<input type="text" name="city" id="city" placeholder="City">
<input type="text" name="State" id="state" placeholder="State">
<input type="text" name="name" id="name" placeholder="Customer Name">
<input type="text" name="mobile" id="mobile" placeholder="10 Digit Mobile Number">
<div id="buttons">
<div class="home"><input type="radio" id="Home" name="ho" value="Home"><label for="home">Home</label></div>
<div class="office"><input type="radio" id="office" name="ho" value="office"><label for="offide">Office</label></div>
<div class="other"><input type="radio" id="other" name="ho" value="other"><label for="other">Other</label></div>
</div>
<div id="last_part">
<div>
<h4 id="cancel">CANCEL</h4>
</div>
<div>
<input type="submit" value="SAVE" id="save">
</div>
</div>
</form>
</div>
<!-- _________________________________________End of main box_____________________________ -->
<div id="bottom_part">
<div>
<p>
Tata 1mg isatechnology platform to facilitate transaction of business. The products and services are offered for sale by the sellers. The user authorizes the delivery personel to be his agent for delivery of the goods. For details read
<span id="terms"><a href="https://www.1mg.com/tnc"> terms and conditions.</a></span>
</p>
</div>
<div>
<p>*NeuCoins will be credited 7 days after your complete order is delivered in case of Products and in case of Lab Services NeuCoins will be credited within 24 hours from the time of generation of test report. NeuCoins will not be credited
in case a return request is initiated for the order. NeuCoins are rounded to the nearest integer and the value of NeuCoins earned may change if total order value changes.
<br>**Coupon Discount value may change if the total order value changes.
<br>***Items in your cart will always reflect the most recent price as compared to the prices in their product detail page.
</p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script>
var form=document.querySelector("#form");
form.addEventListener("submit",submiting)
// console.log(form.home==true)
var shipdata=JSON.parse(localStorage.getItem("shipdata"))||[];
function submiting(){
event.preventDefault()
var obj={
mobile:form.mobile.value,
name:form.name.value,
address:form.addres.value,
landmark:form.landmark.value,
locality:form.locality.value,
city:form.city.value,
state:form.state.value,
pin:form.pincode.value,
addwhere:"",
p:function(){
if(form.Home.checked==true)
{
this.addwhere="HOME"
}
else if(form.office.checked==true)
{
this.addwhere="OFFICE"
}
else if(form.other.checked==true)
{
this.addwhere="OTHER"
}
}
}
obj.p();
shipdata.push(obj);
localStorage.setItem("shipdata",JSON.stringify(shipdata));
window.location.href="ordersummery.html"
}
var cancel=document.querySelector("#cancel");
cancel.addEventListener("click", empty)
function empty(){
// form.mobile.value="";
// form.name.value="";
// form.addres.value="";
// form.landmark.value="";
// form.locality.value="";
// form.city.value="";
// form.state.value="";
// form.pincode.value="";
window.location.reload();
}
</script>