-
Notifications
You must be signed in to change notification settings - Fork 0
/
element.html
253 lines (220 loc) · 9.07 KB
/
element.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
<!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>Product</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/fontawesome.min.css">
<script src="https://kit.fontawesome.com/1bffa3735e.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="./CSS/nav.css">
<link rel="stylesheet" href="./CSS/product.css">
<style>
section{
margin-top: 130px;
width: 70%;
display: block;
}
section .product-list{
width: 70%;
height: auto;
margin-top: -100px;
border-radius: 25px;
}
section .product-list > div{
display: flex;
border-radius: 25px;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
padding: 20px;
}
section .product-list > div > div{
margin: auto;
margin-left: 20px;
}
section .product-list > div > img{
height: 200px;
max-height: 300px;
border-radius: 25px;
}
section .product-list > div > div > p, h4{
margin: 10px;
}
section .product-list > div h4{
font-size: 25px;
}
</style>
</head>
<body>
<nav>
<div>
<div class="logo">
<a href="./home.html">
<img src="./data/logo.png">
<h1 style="color: #ff4444;">MediKit</h1>
</a>
<div class="vertical"></div>
</div>
<div>
<a href="">
<i class="fa-regular fa-user"></i>
<p>User</p>
</a>
<a href="">
<i class="fa-solid fa-gift"></i>
<p>Offers</p>
</a>
<a href="./cart.html" style="pointer-events:all ;">
<i class="fa-solid fa-cart-plus"></i>
<p>Cart</p>
</a>
</div>
</div>
<div>
<div>
<a href="">Medicine </a>
<a href="">Healthcare</a>
<a href="">Lab Tests</a>
<a href="">Offers</a>
<a href="">PLUS</a>
<a href="">Health Blogs</a>
</div>
</div>
</nav>
<section>
<p>Home > Product > <p class="top"></p></p>
<div class="product-list">
<!-- ////////////////////////////////////////// -->
</div>
</section>
<hr>
<div class="banner">
<div>
<img src="https://www.gopayz.com.my/content/dam/gopayz/en/support/01-gopayz-is-legit%20(1).png" alt="">
<h3>1 Lakh+ Products</h3>
<p>We maintain strict quality controls on all our partner retailers, so that you always get standard quality products.</p>
</div>
<div>
<img src="https://uploads-ssl.webflow.com/6018010527c02c8435fa6acc/613a324d25e40b66c43f5817_security-and-compliance.svg" alt="">
<h3>Secure Payment</h3>
<p>100% secure and trusted payment protection</p>
</div>
<div>
<img src="https://d33wubrfki0l68.cloudfront.net/22928e2e98ff7c6906cc69c00384642df13e63f7/97253/images/google-calendar-rem-img.png" alt="">
<h3>Easy Return</h3>
<p>We have a new and dynamic return window policy for medicines and healthcare items. Refer FAQs section for more details.</p>
</div>
</div>
<hr>
<div class="footer">
<footer>
<div>
<div>
<h3>Our Company</h3>
<a href="">About Us</a> <br>
<a href=""> Careers</a> <br>
<a href="">Blog</a> <br>
<a href="">Partner with PharamEasy</a> <br>
<a href="">Sell at PharmEasy</a> <br>
<br>
<h3>Our Services</h3>
<a href=""> Order Medicine</a> <br>
<a href=""> Healthcare Products</a> <br>
<a href=""> Lab Tests</a> <br>
<a href=""> Find Nearest Collection Center</a> <br>
<a href=""> Surgeries</a> <br>
</div>
<div>
<h3>Featured Categories</h3>
<a href="">Pet Care</a> <br>
<a href="">Personal Care</a> <br>
<a href="">Healthcare Devices</a> <br>
<a href="">Health Food and Drinks</a> <br>
<a href="">Beauty</a> <br>
<a href="">Elderly Care</a> <br>
<a href="">Home Care</a> <br>
<a href="">Skin Care</a> <br>
<a href="">Diabetic Care</a> <br>
<a href="">Health Condition</a> <br>
<a href="">Top Products</a> <br>
</div>
<div>
<h3>Need Help</h3>
<a href="">Browse All Medicines</a> <br>
<a href="">Browse All Molecules</a> <br>
<a href="">Browse All Cities</a> <br>
<a href="">Browse All Areas</a> <br>
<a href="">Browse All Stores</a> <br>
<br>
<div>
<h3>Policy Info</h3>
<a href="">Editorial Policy</a> <br>
<a href="">Privicy Policy</a> <br>
<a href="">Vulnerability Disclosure Policy</a> <br>
<a href="">Terms and Condition</a> <br>
<a href="">Customer Support Policy</a> <br>
<a href="">Return Policy</a> <br>
</div>
</div>
</div>
<div>
<div>
<h3>Download the App for Free</h3>
<img src="https://assets.pharmeasy.in/apothecary/images/googlePlay.svg?dim=256x0">
<img src="https://assets.pharmeasy.in/apothecary/images/appStore.svg?dim=128x0" >
</div>
<div>
<h3>follow us on</h3>
<i class="fa-brands fa-instagram"></i>
<i class="fa-brands fa-facebook"></i>
<i class="fa-brands fa-youtube"></i>
<i class="fa-brands fa-twitter"></i>
</div>
</div>
<div>
<div>
<p>Our Payment Pattners</p>
<img src="https://assets.pharmeasy.in/apothecary/images/gpay.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/paytm.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/phonepe.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/amazon.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/mobikwik.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/olamoney.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/maestro.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/mastercard.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/visa.png?dim=1440x0">
<img src="https://assets.pharmeasy.in/apothecary/images/rupay.png?dim=1440x0">
</div>
<p>© 2022 PharmEasy. All Rights Reserved</p>
</div>
</footer>
</div>
</body>
</html>
</body>
</html>
<script>
let item = JSON.parse(localStorage.getItem('element'));
console.log(item);
function displayTable(ele){
document.querySelector('.product-list').innerHTML = "";
let div = document.createElement('div');
let div1 = document.createElement('div');
let img = document.createElement('img');
img.setAttribute('src', ele.img);
let br = document.createElement('br');
let name = document.createElement('h4');
name.innerText = ele.name;
let price = document.createElement('p');
price.innerHTML = "<b>Price: </b>" + ele.price;
let rating = document.createElement("p");
rating.innerHTML = "<b>Rating: </b>" + ele.rating;
let store = document.createElement('p');
store.innerHTML = "<b>Store: </b>" + ele.store;
let category = document.createElement('p');
category.innerHTML = "<b>Category: </b>" + ele.store;
div1.append(name, store, price, rating)
div.append(img, div1);
document.querySelector('.product-list').append(div);
}
displayTable(item);
</script>