-
Notifications
You must be signed in to change notification settings - Fork 0
/
cart P1.php
466 lines (380 loc) · 11.1 KB
/
cart P1.php
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>V I O L E T</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="footer, address, phone, icons" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="http://fonts.googleapis.com/css?family=Cookie" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="index.css">
<link rel="stylesheet" type="text/css" href="Formal Shirts.css">
<style>
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
.footer-main-div{
width:100%;
height: auto;
margin: auto;
background: black;
padding: 50px 10px;
}
.footer-social-icons{
width: 100%;
height: auto;
margin: auto;
}
.footer-social-icons ul{
margin:0px;
padding: 0px;
text-align: center;
}
.footer-social-icons ul li{
display: inline-block;
width: 50px;
height: 50px;
margin:0px 10px;
border-radius: 70%;
}
.footer-social-icons ul li a{
font-size: 25px;
}
.footer-menu-one{
width: 100%;
height: auto;
margin: auto;
margin-top: 20px;
}
.footer-menu-one ul{
margin:0px;
padding: 0px;
text-align: center;
color: white;
}
.footer-menu-one ul li{
display: inline-block;
margin:0px 20px;
}
.footer-menu-one ul li a{
font-size: 25px;
font-family: arial;
color: white;
text-transform: uppercase;
}
.footer-bottom{
width: 100%;
height: auto;
background:violet;
padding: 10px;
}
.footer-bottom{
font-size: 14px;
text-align: center;
font-family: arial;
}
.alert {
padding: 30px;
background-color: green;
color: black;
}
.closebtn {
margin-left: 15px;
color: white;
font-weight: bold;
float: right;
font-size: 22px;
line-height: 20px;
cursor: pointer;
transition: 0.3s;
}
.closebtn:hover {
color: black;
}
.btn {
border: none;
outline: none;
padding: 10px 16px;
background-color: #f1f1f1;
cursor: pointer;
font-size: 18px;
}
/* Style the active class, and buttons on mouse-over */
.active, .btn:hover {
background-color: #666;
color: white;
}
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 300px;
margin: auto;
text-align: center;
font-family: arial;
}
.card button {
border: none;
outline: 0;
padding: 12px;
color: white;
background-color: black;
text-align: center;
cursor: pointer;
width: 100%;
font-size: 18px;
}
.card button:hover {
opacity: 0.7;
}
* {box-sizing: border-box;}
.img-zoom-container {
position: relative;
}
.img-zoom-lens {
position: absolute;
border: 1px solid #d4d4d4;
/*set the size of the lens:*/
width: 40px;
height: 40px;
}
.img-zoom-result {
border: 1px solid #d4d4d4;
/*set the size of the result div:*/
width: 300px;
height: 300px;
}
</style>
<script>
function imageZoom(imgID, resultID) {
var img, lens, result, cx, cy;
img = document.getElementById(imgID);
result = document.getElementById(resultID);
/*create lens:*/
lens = document.createElement("DIV");
lens.setAttribute("class", "img-zoom-lens");
/*insert lens:*/
img.parentElement.insertBefore(lens, img);
/*calculate the ratio between result DIV and lens:*/
cx = result.offsetWidth / lens.offsetWidth;
cy = result.offsetHeight / lens.offsetHeight;
/*set background properties for the result DIV:*/
result.style.backgroundImage = "url('" + img.src + "')";
result.style.backgroundSize = (img.width * cx) + "px " + (img.height * cy) + "px";
/*execute a function when someone moves the cursor over the image, or the lens:*/
lens.addEventListener("mousemove", moveLens);
img.addEventListener("mousemove", moveLens);
/*and also for touch screens:*/
lens.addEventListener("touchmove", moveLens);
img.addEventListener("touchmove", moveLens);
function moveLens(e) {
var pos, x, y;
/*prevent any other actions that may occur when moving over the image:*/
e.preventDefault();
/*get the cursor's x and y positions:*/
pos = getCursorPos(e);
/*calculate the position of the lens:*/
x = pos.x - (lens.offsetWidth / 2);
y = pos.y - (lens.offsetHeight / 2);
/*prevent the lens from being positioned outside the image:*/
if (x > img.width - lens.offsetWidth) {x = img.width - lens.offsetWidth;}
if (x < 0) {x = 0;}
if (y > img.height - lens.offsetHeight) {y = img.height - lens.offsetHeight;}
if (y < 0) {y = 0;}
/*set the position of the lens:*/
lens.style.left = x + "px";
lens.style.top = y + "px";
/*display what the lens "sees":*/
result.style.backgroundPosition = "-" + (x * cx) + "px -" + (y * cy) + "px";
}
function getCursorPos(e) {
var a, x = 0, y = 0;
e = e || window.event;
/*get the x and y positions of the image:*/
a = img.getBoundingClientRect();
/*calculate the cursor's x and y coordinates, relative to the image:*/
x = e.pageX - a.left;
y = e.pageY - a.top;
/*consider any page scrolling:*/
x = x - window.pageXOffset;
y = y - window.pageYOffset;
return {x : x, y : y};
}
}
</script>
</head>
<body>
<div class="topnav">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#" style="padding: 30px;"><h1>V I O L E T</h1></a>
</div>
<div class="search-container">
<form action="/action_page.php">
<input type="text" placeholder="Search.." name="search">
<button type="submit"><i class="fa fa-search"></i></button>
</form>
</div>
</div>
<div style="padding-left:16px">
</div>
<ul class="nav navbar-nav navbar-right">
<li><a href="sign.php"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="login.php"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</nav>
</div                               >
<div class="sifa">
<a href="index.php">Home</a>
<a href="New In.php">New In</a>
<div class="Men">
<button class="dropbtn">Men
<i class="fa fa-caret-down"></i>
</button>
<div class="Men-content">
<a href="Formal Shirts.php">Formal Shirts</a>
<a href="Formal Pants.php">Formal Pants</a>
<a href="Mens Casual Shirts.php">Mens Casual Shirts</a>
<a href="Panjabi.php">Panjabi</a>
<a href="Pajama.php">Pajama</a>
<a href="Polos.php">Polos</a>
</div>
</div>
<div class="Women">
<button class="dropbtn">Women
<i class="fa fa-caret-down"></i>
</button>
<div class="Women-content">
<a href="Women's Tops.php">Women's Tops</a>
<a href="Women's Lawn.php">Women's Lawn</a>
<a href="Women's Long Dress.php">Women's Long Dress</a>
<a href="Women's Jeans.php">Women's Jeans</a>
</div>
</div>
<div class="Kids">
<button class="dropbtn">Kids
<i class="fa fa-caret-down"></i>
</button>
<div class="Kids-content">
<a href="Boys.php">Boys</a>
<div class="Boys">
<button class="dropbtn">Boys
<i class="fa fa-caret-down"></i>
</button>
<div class="Boys-content">
<a href="Boy's Tops.php">Boy's Tops</a>
<a href="Boy's Panjabi.php">Boy's Panjabi</a>
<a href="Boy's Bottoms.php">Boy's Bottoms</a>
</div>
</div>
<a href="Girls.php">Girls</a>
<div class="Girls">
<button class="dropbtn">Girls
<i class="fa fa-caret-down"></i>
</button>
<div class="Girls-content">
<a href="Girls's Tops.php">Girls's Tops</a>
<a href="Girl's Ethnic Tops.php">Girl's Ethnic Tops</a>
<a href="Girls's Bottoms.php">Girls's Bottoms</a>
</div>
</div>
</div>
</div>
<div class="Fragrance">
<button class="dropbtn">Fragrance
<i class="fa fa-caret-down"></i>
</button>
<div class="Fragrance-content">
<a href="For Women.php">For Women</a>
<a href="For Men.php">For Men</a>
</div>
</div>
</div>
<div class="img-zoom-container">
<img id="myimage" src="pic 27.jpg" width="300" height="340">
<div id="myresult" class="img-zoom-result"></div>
</div>
<h2>M Panjabi in Black</h2>
<br>Product Type Men Wear</br>
<h2>M Panjabi in Black</h2>
<br><h3>Size</h3></br>
<div id="myDIV">
<button class="btn">S</button>
<button class="btn active">M</button>
<button class="btn">L</button>
<button class="btn">XL</button>
<button class="btn">XXL</button>
</div>
<script>
// Add active class to the current button (highlight it)
var header = document.getElementById("myDIV");
var btns = header.getElementsByClassName("btn");
for (var i = 0; i < btns.length; i++) {
btns[i].addEventListener("click", function() {
var current = document.getElementsByClassName("active");
current[0].className = current[0].className.replace(" active", "");
this.className += " active";
});
}
</script>
<script>
// Initiate zoom effect:
imageZoom("myimage", "myresult");
</script>
<br><h3>Tk 2,000.00</h3></br>
<h3>Quantity</h3>
<div style="width:20px;margin:auto;text-align: left">
<button id="subtract">-</button>
<input type="number" value="0" style="display: inline-block;
padding: 7px">
<button id="add">+</button>
</div>
<script>
let btnAdd=document.querySelector('#add');
let btn Subtract=document.querySelector('#subtract');
let input=document.querySelector('input');
btnAdd.addEventListener('click',(){
input.value=parseInt(input.value)+1;
});
btnSubtract.addEventListener('click',(){
input.value=parseInt(input.value)-1;
});
</script>
<div class="card">
<p><a href="cart P1.php"><button>Add to Cart</button></a></p>
</div>
<div class="alert">
<span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
<strong>Your Cart is Full Now.</strong>
</div>
</div>
<div class="footer-main-div">
<div class="footer-social-icons">
<ul>
<li><a href="https://www.facebook.com/photo.php?fbid=1496320363831963&set=a.114358465361500&type=3&source=11&referrer_profile_id=100003620427971"><i class="fa fa-facebook-official"></i></a></li>
<li><a href="#"><i class="fa fa-twitter"></i></a></li>
<li><a href="#"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="footer-menu-one">
<ul>
<li><a href="About Us.php">About Us</a></li>
<li><a href="Deliver Info.php">Delivery Information</a></li>
<li><a href="Exc.php">Exchange Policy</a></li>
<li><a href="Privacy.php">Privacy Policy</a></li>
<li><a href="Contact Us.php">Contact Us</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>DESIGNED BY SEFAT SIDDIQUEA</p>
</div>
</body>
</html>