-
Notifications
You must be signed in to change notification settings - Fork 2
/
mens.html
315 lines (292 loc) · 9.04 KB
/
mens.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
<!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>
<style>
#container{
display: grid;
grid-template-columns: repeat(4,1fr);
grid-template-rows: repeat(9,auto);
gap: 20px;
}
</style>
</head>
<body>
<h1>Mens Page</h1>
<div id="container">
</div>
</body>
</html>
<script>
var mensData = [
{
image_url:
"https://content.shop4reebok.com/static/Product-EX4296/reebok_EX4296_1.jpg.plp",
name: "MEN'S REEBOK RUNNING ROADMAP SHOES",
price: "1170",
strikedoffprice: "2500",
},
{
image_url:
"https://content.shop4reebok.com/static/Product-EX3921/reebok_EX3921_1.jpg.plp",
name: "MEN'S REEBOK SWIM ARUBA FLIP SLIPPERS ",
price: 699,
strikedoffprice: 999,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-EX4160/reebok_EX4160_1.jpg.plp",
name: " MEN'S REEBOK RUNNING AUSTIN SHOES",
price: 945,
strikedoffprice: 2099,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FV8798/MEN_SWIM_SLIPPERS_FV8798_1.jpg.plp",
name: "MEN'S REEBOK SWIM AVENGER FLIP LP SLIPPERS",
price: 399,
strikedoffprice: 799,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-EW5173/reebok_EW5173_1.jpg.plp",
name: "MEN'S REEBOK RUNNING TEMPO SHOES ",
price: 1620,
strikedoffprice: 3599,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FV7329/reebok_FV7329_1.jpg.plp ",
name: " MEN'S REEBOK RUNNING ASTRO BOOSTER SHOES ",
price: 1440,
strikedoffprice: 3199,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-GD8567/MEN_TRAINING_PANTS_GD8567_1.jpg.plp ",
name: " MEN'S TRAINING WORKOUT READY ELITAGE PANTS ",
price: 1999,
strikedoffprice: 3199,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-GQ8758/reebok_GQ8758_1.jpg.plp ",
name: "MEN'S REEBOK TRAINING POLO T-SHIRTS TEE ",
price: 769,
strikedoffprice: 1099,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-GP7180/reebok_GP7180_1.jpg.plp",
name: "MEN'S REEBOK TRAINING WORKOUT TEE ",
price: 1299,
strikedoffprice: 1440,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-EX3924/reebok_EX3924_1.jpg.plp ",
name: "MEN'S REEBOK SUPER SOFT FLIP SLIPPERS",
price: 699,
strikedoffprice: 999,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FW0343/reebok_FW0343_1.jpg.plp ",
name: "MEN'S REEBOK RUNNING RUN SHOES ",
price: 1620,
strikedoffprice: 3599,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-EX4285/reebok_EX4285_1.jpg.plp ",
name: "MEN'S REEBOK RUNNING GENESIS RUNNER SHOES ",
price: 1620,
strikedoffprice: 3599,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FV9519/MEN_SWIM_SLIPPERS_FV9519_1.jpg.plp ",
name: "MEN'S REEBOK SWIM RUSSLE FLIP SLIPPERS ",
price: 599,
strikedoffprice: 999,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FW0318/reebok_FW0318_1.jpg.plp ",
name: " MEN'S REEBOK RUNNING TREND RUNNER SHOES",
price: 1575,
strikedoffprice: 3499,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-H00024/reebok_H00024_1.jpg.plp ",
name: "UNISEX REEBOK RUNNING ZIG KINETICA II SHOES ",
price: 9999,
strikedoffprice: 12000,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-GK9170/reebok_GK9170_1.jpg.plp ",
name: " MEN'S REEBOK TRAINING BAS POLO TEE ",
price: 779,
strikedoffprice: 1299,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-GK9175/reebok_GK9175_1.jpg.plp",
name: "MEN'S REEBOK TRAINING FOUNDATION PANTS ",
price: 1019,
strikedoffprice: 1699,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-GK9176/reebok_GK9176_1.jpg.plp ",
name: "MEN'S REEBOK TRAINING FOUNDATION PANTS ",
price: 1019,
strikedoffprice: 1699,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FW0318/reebok_FW0318_1.jpg.plp ",
name: " MEN'S REEBOK RUNNING TREND SHOES",
price: 1575,
strikedoffprice: 3499,
},
{
image_url:
" https://content.shop4reebok.com/static/Product-G57776/reebok_G57776_1.jpg.plp ",
name: " MEN'S REEBOK RUNNING ZTAUR RUN SHOES ",
price: 3499,
strikedoffprice: 4999,
},
{
image_url:
" https://content.shop4reebok.com/static/Product-FV9555/MEN_SWIM_SLIPPERS_FV9555_1.jpg.plp ",
name: "MEN'S REEBOK SWIM ULTRA FLIP SLIPPERS ",
price: 749,
strikedoffprice: 1499,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-EX3994/reebok_EX3994_1.jpg.plp ",
name: " MEN'S REEBOK SWIM FLEX CONNECT SANDALS ",
price: 1149,
strikedoffprice: 2299,
},
{
image_url:
" https://content.shop4reebok.com/static/Product-EX4287/reebok_EX4287_1.jpg.plp ",
name: " MEN'S REEBOK RUNNING GENESIS RUNNER SHOE ",
price: 1620,
strikedoffprice: 3599,
},
{
image_url:
" https://content.shop4reebok.com/static/Product-GK9180/reebok_GK9180_1.jpg.plp ",
name: " MEN'S REEBOK TRAINING RUNNER SHORTS ",
price: 779,
strikedoffprice: 1299,
},
{
image_url:
" https://content.shop4reebok.com/static/Product-HB5732/reebok_HB5732_1.jpg.plp ",
name: " MEN REEBOK CLASSICS TRACKSUIT HOODIE ",
price: 3499,
strikedoffprice: 4999,
},
{
image_url:
" https://content.shop4reebok.com/static/Product-HB5733/reebok_HB5733_1.jpg.plp ",
name: "MEN'S REEBOK CLASSIC TRACKSUIT GOLF HOODIE ",
price: 3499,
strikedoffprice: 4999,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FQ5364/reebok_FQ5364_1.jpg.plp ",
name: " UNISEX REEBOK TRAINING ACTIVE BAG ",
price: 1399,
strikedoffprice: 2799,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FW0318/reebok_FW0318_1.jpg.plp ",
name: " MEN'S REEBOK RUNNING TREND RUNNER SHOES",
price: 1575,
strikedoffprice: 3499,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-G57705/reebok_G57705_1.jpg.plp",
name: "UNISEX REEBOK CLASSICS BASKETBALL SHOES",
price: 3919,
strikedoffprice: 5599,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FW0344/reebok_FW0344_1.jpg.plp",
name: "MEN'S REEBOK RUNNING RUN FUSION SHOES",
price: 1620,
strikedoffprice: 3599,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-EX4272/reebok_EX4272_1.jpg.plp",
name: "MEN'S REEBOK RUNNING QUICK DRIFTER SHOES",
price: 1620,
strikedoffprice: 3599,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-H02293/reebok_H02293_1.jpg.plp",
name: "MEN'S REEBOK DYNAMIC ZIGZAG SHOES",
price: 7599,
strikedoffprice: 9999,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-FV9551/MEN_SWIM_SLIPPERS_FV9551_1.jpg.plp",
name: "MEN'S REEBOK SWIM SUPERSOFT FLIP SLIPPERS",
price: 909,
strikedoffprice: 1299,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-HC3528/reebok_HC3528_1.jpg.plp",
name: "MEN'S REEBOK TRAINING ACTIVE BASIC POLO TEE",
price: 779,
strikedoffprice: 1299,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-HF3794/reebok_HF3794_01.JPG.plp ",
name: "MEN'S REEBOK TRAINING ACTIVE MOVE TEE ",
price: 1749,
strikedoffprice: 2499,
},
{
image_url:
"https://content.shop4reebok.com/static/Product-HG5456/reebok_HG5456_1.jpg.plp",
name: "MEN'S REEBOK FITNESS TRAINING SWEATSHIRT",
price: 1079,
strikedoffprice: 1799,
},
];
mensData.forEach(function(el){
console.log(el)
let box=document.createElement("div")
let avatar=document.createElement("img")
avatar.setAttribute("src",el.image_url)
let mensName=document.createElement("h3")
mensName.innerText=el.name
let mensPrice=document.createElement("p")
mensPrice.innerText=el.price
let offPrice=document.createElement("button")
offPrice.innerText="Add to Cart"
box.append(avatar,mensName,mensPrice,offPrice)
document.querySelector("#container").append(box)
})
</script>