-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathitem_description.html
93 lines (67 loc) · 1.67 KB
/
item_description.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
<!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>
</head>
<style>
body {
background-color: whitesmoke;
}
#ig {
width: 70%;
margin: 5% 4% 3% 4%;
}
.pic {
box-sizing: border-box;
margin: 2%;
width: 310px;
display: inline-block;
}
.heading {
display: inline-block;
margin-bottom: 100px;
}
.btn {
margin-top: 40px;
margin-bottom: 80px;
color: whitesmoke;
padding: 12px 28px;
}
.nm {
text-decoration: underline;
}
#decPage{
width: 95%;
margin: auto;
}
</style>
<body>
<div id="decPage">
<h1>Product Description</h1>
<div id="ig">
<div class="pic">
<img src="https://static2.medplusmart.com/products/_f9b545_/JOYT0007_S.jpg" width="300px">
</div>
<div class="heading">
<p class="nm">JOYTECH</p>
<h2>JOYTECH INFRARED FOREHEAD THERMOMETER</h2>
<h2>MRP = 2799</h2>
<p>Country of Origin: India</p>
<div class="btn">.</div>
<div>.</div>
</div>
<div>.</div>
</div>
</div>
</body>
</html>
<script>
function addtoCart(p) {
let product_cart = JSON.parse(localStorage.getItem("bs_cart"));
product_cart.push(p);
localStorage.setItem("bs_cart", JSON.stringify(product_cart));
}
</script>