-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav.js
331 lines (288 loc) · 25.1 KB
/
nav.js
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
var categoriesArray=[
[
'<tr> <th><a href="#">Kurta Store</a></th> <th><a href="#">Swim & Beachwear</a></th> <td><a href="#">Curvy Fashion</a></td> <td><a href="#">Sporty watches</a></td> </tr>',
'<tr> <th><a href="#">The Dress Store</a></th> <th><a href="#">Active & Sportswear</a></th> <th><a href="#">View All Clothing</a></th> <th><a href="#">Handbags & Wallets</a></th> </tr>',
'<tr> <th><a href="#">Ethnic Wear</a></th> <th><a href="#">Western Wear</a></th> <th><a href="#">Footwear</a></th> <td><a href="#">Handbags</a></td> </tr>',
'<tr> <td><a href="#">Kurtas & Kurtis</a></td> <td><a href="#">Top & Tees</a></td> <td><a href="#">Casual</a></td> <td><a href="#">Tote Bags</a></td> </tr>',
'<tr> <td><a href="#">Suit Sets</a></td> <td><a href="#">Dresses</a></td> <td><a href="#">Ethnic</a></td> <td><a href="#">Sling Bags</a></td> </tr>',
'<tr> <td><a href="#">Sarees & Lehenga sets</a></td> <td><a href="#">Shirts</a></td> <td><a href="#">Formal</a></td> <td><a href="#">Laptop Bags</a></td> </tr>',
'<tr> <td><a href="#">Bottoms</a></td> <td><a href="#">Pant & Trousers</a></td> <td><a href="#">Sneakers</a></td> <td><a href="#">Backpacks</a></td> </tr>',
'<tr> <td><a href="#">Dupattas</a></td> <td><a href="#">Jeans</a></td> <td><a href="#">Boots</a></td> <td><a href="#">Wallets</a></td> </tr>',
'<tr> <td><a href="#">Blouses & Dress material</a></td> <td><a href="#">Leggings</a></td> <td><a href="#">Sports Shoes</a></td> <td><a href="#">Clutches</a></td> </tr>',
'<tr> <th><a href="#">Inner & Nightwear</a></th> <td><a href="#">Jumpsuits</a></td> <td><a href="#">Flip-Flops</a></td> <td><a href="#">Leather Handbags</a></td> </tr>',
'<tr> <td><a href="#">Bras</a></td> <td><a href="#">Skirts</a></td> <th><a href="#">Watches</a></th> <th><a href="#">Jewellery</a></th> </tr>',
'<tr> <td><a href="#">Panties</a></td> <td><a href="#">Jacket & Blazers</a></td> <td><a href="#">Dressy Watches</a></td> <td><a href="#">Gold Jewellery</a></td> </tr>',
'<tr> <td><a href="#">Camisole</a></td> <td><a href="#">Shrugs</a></td> <td><a href="#">Casual Watches</a></td> <td><a href="#">Diamond Jewellery</a></td> </tr>',
'<tr> <td><a href="#">Sleepwear & Robes</a></td> <td><a href="#">Sweatshirts</a></td> <td><a href="#">Smart Watches</a></td> <td><a href="#">Silver jewellery</a></td> </tr>',
'<tr> <td><a href="#">Shapewear</a></td> <td><a href="#">Sweaters</a></td> <td><a href="#">Formal Watches</a></td> <td><a href="#">Fashion Jewellery</a></td> </tr>'
],
[
'<tr> <th><a href="#">Footwear</a></th> <td><a href="#">Jeans</a></td> <th><a href="#">Watches</a></th> <td><a href="#">Duffle Bags</a></td> </tr>',
'<tr> <td><a href="#">Casual Shoes</a></td> <td><a href="#">Trousers & Chinos</a></td> <td><a href="#">Smart Watches</a></td> <td><a href="#">Rucksack & Trekking </a></td> </tr>',
'<tr> <td><a href="#">Sneakers</a></td> <td><a href="#">Shorts</a></td> <td><a href="#">Workwear Watches</a></td> <td><a href="#">Backpacks</a></td> </tr>',
'<tr> <td><a href="#">Formal Shoes</a></td> <td><a href="#">Sweat Shirts</a></td> <td><a href="#">Casual Watches</a></td> <th><a href="#">Fashion Accessories</a></th> </tr>',
'<tr> <td><a href="#">Running Shoes</a></td> <td><a href="#">Casual Jackets</a></td> <td><a href="#">Partywear Watches</a></td> <td><a href="#">Belts</a></td> </tr>',
'<tr> <td><a href="#">Training Shoes</a></td> <td><a href="#">Formal Shirts</a></td> <td><a href="#">Digital watches</a></td> <td><a href="#">Hats & Caps</a></td> </tr>',
'<tr> <td><a href="#">Sports Shoes</a></td> <td><a href="#">Formal Trousers</a></td> <td><a href="#">Multifunctional watches</a></td> <td><a href="#">Ties & Cufflinks</a></td> </tr>',
'<tr> <td><a href="ProductPage.html">Boots</a></td> <th><a href="#">Inner & Nightwear</a></th> <th><a href="#">The Watch Store</a></th> <td><a href="#">Writing Instruments</a></td> </tr>',
`<tr> <td><a href="#">Flip Flop</a></td> <th><a href="#">View All Clothing</a></th> <th><a href="#">Bags & Backpacks</a></th> <td><a href="#">Men's Gift Sets</a></td> </tr>`,
'<tr> <th><a href="#">Ethnic Wear</a></th> <th><a href="#">Sports Wear</a></th> <td><a href="#">Backpacks</a></td> <th><a href="#">Jewellery</a></th> </tr>',
'<tr> <td><a href="#">Kurta</a></td> <td><a href="#">T-shirts & Jerseys</a></td> <td><a href="#">Wallets</a></td> <td><a href="#">Mens Jewellery</a></td> </tr>',
'<tr> <td><a href="#">Kurta sets</a></td> <td><a href="#">Shorts</a></td> <td><a href="#">Messenger Bags</a></td> <td><a href="#">Coins and Bars</a></td> </tr>',
'<tr> <th><a href="#">Clothing</a></th> <td><a href="#">Sports Jackets</a></td> <td><a href="#">Cross Body Bags</a></td> <th><a href="#">Sunglasses</a></th> </tr>',
'<tr> <td><a href="#">T-shirts & Polos</a></td> <td><a href="#">Joggers</a></td> <th><a href="#">Luggage & Trolleys</a></th> <td><a href="#">Aviator</a></td> </tr>',
'<tr> <td><a href="#">Casual Shirts</a></td> <td><a href="#">Trunks</a></td> <td><a href="#">Trolleys Bags & Suitcases</a></td> <td><a href="#"></a></td> </tr>'
],
[
'<tr> <th><a href="#">Appliances Store</a></th> <td><a href="#">Soundbars</a></td> <td><a href="#">Washers & Dryers</a></td> <td><a href="#">Small Home Appliances</a></td> </tr>',
'<tr> <th><a href="#">AC Store</a></th> <td><a href="#">Home Theatres</a></td> <td><a href="#">Semi Automatic</a></td> <td><a href="#">Water Purifiers</a></td> </tr>',
'<tr> <td><a href="#">Air Conditioners</a></td> <td><a href="#">Party Speakers</a></td> <th><a href="#">Kitchen & Home</a></th> <td><a href="#">Fans</a></td> </tr>',
'<tr> <td><a href="#">Split ACs</a></td> <th><a href="#">Refrigerator Store</a></th> <th><a href="#"> Appliances Store</a></th> <td><a href="#">Water Heaters</a></td> </tr>',
'<tr> <td><a href="#">Inverter ACs</a></td> <td><a href="#">Refrigerators</a></td> <td><a href="#">Kitchen Appliances</a></td> <td><a href="#">Air Purifiers</a></td> </tr>',
'<tr> <td><a href="#">Adjustable ACs</a></td> <td><a href="#">Single Door</a></td> <td><a href="#">Microwave Ovens</a></td> <td><a href="#">Vacuum Cleaners</a></td> </tr>',
'<tr> <td><a href="#">Window ACs</a></td> <td><a href="#">Double Door</a></td> <td><a href="#">Mixers & Grinders</a></td> <td><a href="#">Irons</a></td> </tr>',
'<tr> <td><a href="#">Stabilizers</a></td> <td><a href="#">Side-by-Side</a></td> <td><a href="#">Blenders & Juicers</a></td> <td><a href="#">Air Coolers</a></td> </tr>',
'<tr> <th><a href="#">Televisions Store</a></th> <td><a href="#">Convertible</a></td> <td><a href="#">Cooktops</a></td> <th><a href="#">Connected Homes</a></th> </tr>',
'<tr> <td><a href="#">Televisions</a></td> <td><a href="#">Bottom Mount</a></td> <td><a href="#">Air Fryers</a></td> <td><a href="#">Smart Lighting & Plugs</a></td> </tr>',
'<tr> <td><a href="#">Smart TVs</a></td> <th><a href="#">Washing Machine Store</a></th> <td><a href="#">Kettles</a></td> <td><a href="#">Smart Assistants & Audio</a></td> </tr>',
'<tr> <td><a href="#">4K Ultra HD TVs</a></td> <td><a href="#">Washing Machines</a></td> <td><a href="#">Toasters</a></td> <th><a href="#">Extended Warranty</a></th> </tr>',
'<tr> <td><a href="#">Android TVs</a></td> <td><a href="#">Automatic Front Load</a></td> <td><a href="#">Electric Cookers</a></td> <th><a href="#">View Other Categories</a></th> </tr>',
'<tr> <td><a href="#">OLED & QLED TVs</a></td> <td><a href="#">Automatic Top Load</a></td> <td><a href="#">Food & Roti Makers</a></td> <td><a href="#">Mobile Phones</a></td> </tr>',
'<tr> <th><a href="#">Audio Store</a></th> <td><a href="#">Dishwashers</a></td> <td><a href="#">Chimneys</a></td> <td><a href="#">Laptops</a></td> </tr>'
],
[
'<tr> <th><a href="#">Electronics Deals</a></th> <td><a href="#">OnePlus</a></td> <td><a href="#">Screen Protectors</a></td> <td><a href="#">Apple Watch</a></td> </tr>',
'<tr> <th><a href="#">Mobile Phones Store</a></th> <th><a href="#">Shop by Feature</a></th> <td><a href="#">Chargers</a></td> <td><a href="#">Fitness Trackers</a></td> </tr>',
'<tr> <td><a href="#">Mobile Phones</a></td> <td><a href="#">5G Phones</a></td> <td><a href="#">Cables</a></td> <th><a href="#">Value-Added Services</a></th> </tr>',
'<tr> <td><a href="#">iPhone</a></td> <td><a href="#">Gaming Phones</a></td> <td><a href="#">Power Banks</a></td> <td><a href="#">Extended Warranty</a></td> </tr>',
'<tr> <td><a href="#">New Launches</a></td> <td><a href="#">Selfie Phones</a></td> <td><a href="#">Memory Cards</a></td> <td><a href="#">Exchange Offers</a></td> </tr>',
'<tr> <td><a href="#">Flagship Phones</a></td> <td><a href="#">Long Battery Life</a></td> <td><a href="#">Mobile Holders</a></td> <th><a href="#">View Other Categories</a></th> </tr>',
'<tr> <td><a href="#">Feature Phones</a></td> <th><a href="#">Shop by Price</a></th> <td><a href="#">Apple Accessories</a></td> <td><a href="#">Appliances</a></td> </tr>',
'<tr> <th><a href="#">Shop by Brand</a></th> <td><a href="#">Under Rs. 10,000</a></td> <th><a href="#">Audio Store</a></th> <td><a href="#">Televisions</a></td> </tr>',
'<tr> <td><a href="#">Apple</a></td> <td><a href="#">From 10,001 to 20,000</a></td> <td><a href="#">Earphones</a></td> <td><a href="#">Laptops</a></td> </tr>',
'<tr> <td><a href="#">Samsung</a></td> <td><a href="#">From 20,001 to 30,000</a></td> <td><a href="#">Headsets</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Vivo</a></td> <td><a href="#">From 30,001 to 50,000</a></td> <td><a href="#">True Wireless</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Oppo</a></td> <td><a href="#">Above 50,000</a></td> <td><a href="#">Neckbands</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Realme</a></td> <th><a href="#">Mobile Accessories</a></th> <td><a href="#">Bluetooth Speakers</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Nokia</a></td> <td><a href="#">Accessories Store</a></td> <th><a href="#">Wearables Store</a></th> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Xiaomi</a></td> <td><a href="#">Cases & Covers</a></td> <td><a href="#">Smart Watches</a></td> <td><a href="#"></a></td> </tr>'
],
[
'<tr> <th><a href="#">Electronics Deals</a></th> <th><a href="#">IT Accessories Store</a></th> <td><a href="#">Instant Camera</a></td> <td><a href="#">Home Audio</a></td> </tr>',
'<tr> <th><a href="#">Laptops Store</a></th> <td><a href="#">Printer Store</a></td> <td><a href="#">Security Camera</a></td> <th><a href="#">Wearable Devices</a></th> </tr>',
'<tr> <td><a href="#">All Laptops</a></td> <td><a href="#">Printers</a></td> <td><a href="#">Tripod</a></td> <td><a href="#">Fitness Tracker</a></td> </tr>',
'<tr> <td><a href="#">Intel Core i3 laptop</a></td> <td><a href="#">Cartridges & Toners</a></td> <td><a href="#">Camera Accessories</a></td> <td><a href="#">Apple Watches</a></td> </tr>',
'<tr> <td><a href="#">Intel Core i5 laptop</a></td> <td><a href="#">PC Components</a></td> <td><a href="#">Camera Bags</a></td> <th><a href="#">Personal Care Store</a></th> </tr>',
'<tr> <td><a href="#">i7 Laptops</a></td> <td><a href="#">Keyboards & Mouse</a></td> <th><a href="#">Gaming</a></th> <td><a href="#">Trimmers & Shavers</a></td> </tr>',
'<tr> <td><a href="#">AMD Laptops</a></td> <td><a href="#">Routers & Modems</a></td> <td><a href="#">Software</a></td> <td><a href="#">Hair Dryers</a></td> </tr>',
'<tr> <td><a href="#">MacBook</a></td> <td><a href="#">Desktops & Monitors</a></td> <td><a href="#">Mouse</a></td> <td><a href="#">Hair Straighteners</a></td> </tr>',
'<tr> <td><a href="#">Gaming Laptops</a></td> <td><a href="#">Peripherals & Software</a></td> <td><a href="#">Controllers</a></td> <td><a href="#">Epilators</a></td> </tr>',
'<tr> <th><a href="#">Tablets & iPads</a></th> <td><a href="#">Laptop Bags</a></td> <td><a href="#">Gaming Headphones</a></td> <td><a href="#">Health Care Devices</a></td> </tr>',
'<tr> <th><a href="#">Storage Devices</a></th> <th><a href="#">Camera & Accessories</a></th> <td><a href="#">Explore All Gaming</a></td> <td><a href="#">Weighing Scales</a></td> </tr>',
'<tr> <td><a href="#">External Hard Disks</a></td> <td><a href="#">DSLR</a></td> <th><a href="#">Audio Store</a></th> <td><a href="#">Massagers</a></td> </tr>',
'<tr> <td><a href="#">Storage Device Store</a></td> <td><a href="#">Camera Lens</a></td> <td><a href="#">Earphones</a></td> <th><a href="#">Smart Home Devices</a></th> </tr>',
'<tr> <td><a href="#">Pen Drive</a></td> <td><a href="#">Point and Shoot</a></td> <td><a href="#">Headsets</a></td> <th><a href="#">Extended Warranty</a></th> </tr>',
'<tr> <td><a href="#">SSDs</a></td> <td><a href="#">Action Camcorders</a></td> <td><a href="#">Bluetooth Speakers</a></td> <th><a href="#">View Other Categories</a></th> </tr>'
],
[
'<tr> <th><a href="#">Boys Clothing</a></th> <td><a href="#">Tops</a></td> <td><a href="#">Jeans & Trousers</a></td> <th><a href="#">Girls Footwear</a></th> </tr>',
'<tr> <td><a href="#">T shirts and Polos</a></td> <td><a href="#">Jeans And Trousers</a></td> <td><a href="#">Tops & T-shirts</a></td> <th><a href="#">Watches</a></th> </tr>',
'<tr> <td><a href="#">Shirts</a></td> <td><a href="#">Dresses</a></td> <td><a href="#">Combo Sets</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Jeans And Trousers</a></td> <td><a href="#">Sportswear</a></td> <td><a href="#">Jumpsuits & Dungarees</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Shorts And Dungarees</a></td> <td><a href="#">Jumpsuits & Dungarees</a></td> <td><a href="#">Dresses</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Sportswear</a></td> <td><a href="#">Skirts, Short, & Jumpsuits</a></td> <td><a href="#">Shirts</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Ethnic Wear</a></td> <td><a href="#">Ethnic Wear</a></td> <td><a href="#">Ethnic Wear</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Inner Wear</a></td> <td><a href="#">Combo Suits</a></td> <td><a href="#">Shorts & Jumpsuits</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Night wear</a></td> <td><a href="#">Night Wear</a></td> <td><a href="#">Winter Wear</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Winter Wear</a></td> <td><a href="#">Winter Wear</a></td> <th><a href="#">Shop By Age</a></th> <td><a href="#"></a></td> </tr>',
'<tr> <th><a href="#">Shop By Age</a></th> <th><a href="#">Shop By Age</a></th> <td><a href="#">0 - 6 months</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">2 - 6 Years</a></td> <td><a href="#">2 - 6 Years</a></td> <td><a href="#">6 - 12 months</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">6 - 12 Years</a></td> <td><a href="#">6 - 12 Years</a></td> <td><a href="#">1 - 2 Years</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">12 - 16 Years</a></td> <td><a href="#">12 - 16 Years</a></td> <td><a href="#">View All Clothing</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <th><a href="#">Girls Clothing</a></th> <th><a href="#">Infants</a></th> <th><a href="#">Boys Footwear</a></th> <td><a href="#"></a></td> </tr>'
],
[
'<tr> <th><a href="#"> Fragrance Store</a></th> <th><a href="#"> Skin</a></th> <td><a href="#"> Hair Oils</a></td> </tr>',
'<tr> <td><a href="#"> Men</a></td> <td><a href="#"> Cleansers</a></td> <td><a href="#"> Hair Masks</a></td> </tr>',
'<tr> <td><a href="#"> Women</a></td> <td><a href="#"> Moisturizers & Serums</a></td> <th><a href="#"> Professional Hair care</a></th> </tr>',
'<tr> <td><a href="#"> Perfumes</a></td> <td><a href="#"> Facial Peels & Masks</a></td> <th><a href="#"> Natural Hair care</a></th> </tr>',
'<tr> <td><a href="#"> Gift Sets</a></td> <td><a href="#"> Eye creams</a></td> <td><a href="#"> All Hair</a></td> </tr>',
`<tr> <th><a href="#"> View By Note</a></th> <td><a href="#"> Combo Sets</a></td> <th><a href="#"> Men's Grooming</a></th> </tr>`,
`<tr> <td><a href="#"> Woody & Spicy Fragrances</a></td> <td><a href="#"> Men's Skin care</a></td> <td><a href="#"> Shaving</a></td> </tr>`,
'<tr> <td><a href="#"> Floral & Fruity Fragrances</a></td> <th><a href="#"> Natural Skin Care</a></th> <td><a href="#"> Beard & Moustache Care</a></td> </tr>',
'<tr> <td><a href="#"> Fresh & Citrus Fragrances</a></td> <th><a href="#"> K-Skin care</a></th> <td><a href="#"> Grooming Kits</a></td> </tr>',
`<tr> <td><a href="#"> Makeup</a></td> <th><a href="#"> Derma Skin care</a></th> <td><a href="#"> Overall Men's Grooming</a></td> </tr>`,
'<tr> <td><a href="#"> Eyes</a></td> <td><a href="#"> All skin</a></td> <th><a href="#"> All Beauty & Grooming</a></th> </tr>',
'<tr> <td><a href="#"> Face</a></td> <th><a href="#"> Bath, Body & Hygiene</a></th> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#"> Lips</a></td> <th><a href="#"> Hair</a></th> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#"> Nails</a></td> <td><a href="#"> Shampoos & Conditioners</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#"> All Makeup</a></td> <td><a href="#"> Hair Styling & Care</a></td> <td><a href="#"></a></td> </tr>'
],
[
'<tr> <th><a href="#">Bedding and Linen</a></th> <td><a href="#">Bathrobes</a></td> <th><a href="#">Kitchen</a></th> <td><a href="#">Other Home Accents</a></td> </tr>',
'<tr> <td><a href="#">Bed Sheet Sets</a></td> <td><a href="#">Kids Bath Linen</a></td> <td><a href="#">Cookware and Bakeware</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Bed Linen Sets</a></td> <th><a href="#">Room Furnishings</a></th> <th><a href="#">Tableware</a></th> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Bed Covers</a></td> <td><a href="#">Cushions</a></td> <td><a href="#">Table Cloth</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Pillow Covers and Shams</a></td> <td><a href="#">Cushion covers</a></td> <td><a href="#">Table Runners</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Quilts and Rajais</a></td> <td><a href="#">Rugs and Dhurries</a></td> <td><a href="#">Table Napkins</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Duvet Covers</a></td> <td><a href="#">Carpets</a></td> <th><a href="#">Home Decor</a></th> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Comforters</a></td> <td><a href="#">Door Mats</a></td> <td><a href="#">Candles</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Dohars</a></td> <td><a href="#">Curtains</a></td> <td><a href="#">Home Fragrances</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Kids Bedding Linen</a></td> <th><a href="#">Lamps and Lighting</a></th> <td><a href="#">Candle Holders</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Bed Pillows</a></td> <td><a href="#">LED Bulbs</a></td> <td><a href="#">Wall Art</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <th><a href="#">Bath Linen and</a></th> <td><a href="#">Table Lamps</a></td> <td><a href="#">Clocks</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <th><a href="#"> Accessories</a></th> <td><a href="#">Wall Lamps</a></td> <td><a href="#">Art Pieces</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Towels</a></td> <td><a href="#">Ceiling Lamps</a></td> <td><a href="#">Vases</a></td> <td><a href="#"></a></td> </tr>',
'<tr> <td><a href="#">Bath Mats and Rugs</a></td> <td><a href="#">Study Table Lamps</a></td> <td><a href="#">Photoframes</a></td> <td><a href="#"></a></td> </tr>'
]
]
var navWomen =document.getElementById("navWomen")
var navMen =document.getElementById("navMen")
var navTv =document.getElementById("navTv")
var navMobile =document.getElementById("navMobile")
var navElectronics =document.getElementById("navElectronics")
var navKid =document.getElementById("navKid")
var navBea =document.getElementById("navBeauty")
var navHome =document.getElementById("navHome")
var displayArrow=0;
var discatarr=["navCat1","navCat2", "navCat3", "navCat4", "navCat5", "navCat6", "navCat7", "navCat8"]
var discatarr2=["navWomen","navMen", "navTv", "navMobile", "navElectronics", "navKid", "navBeauty", "navHome"]
function arrowdis(displayArrow ){
for(var d=0; d<8; d++)
{
if(displayArrow==d){
var distemp=document.getElementById(discatarr[d])
distemp.style.display="block"
var distemp1=document.getElementById(discatarr2[d])
distemp1.style.color="black"
}
else{
var distemp=document.getElementById(discatarr[d])
distemp.style.display="none"
var distemp1=document.getElementById(discatarr2[d])
distemp1.style.color="gray"
}
}
}
var cateTable=document.querySelector("#cateTable")
navWomen.onmouseover=function(){
cateTable.innerHTML=categoriesArray[0].join('')
displayArrow=0;
arrowdis(displayArrow)
}
navMen.onmouseover=function(){
cateTable.innerHTML=categoriesArray[1].join('')
displayArrow=1;
arrowdis(displayArrow)
}
navTv.onmouseover=function(){
cateTable.innerHTML=categoriesArray[2].join('')
displayArrow=2;
arrowdis(displayArrow)
}
navMobile.onmouseover=function(){
cateTable.innerHTML=categoriesArray[3].join('')
displayArrow=3;
arrowdis(displayArrow)
}
navElectronics.onmouseover=function(){
cateTable.innerHTML=categoriesArray[4].join('')
displayArrow=4;
arrowdis(displayArrow)
}
navKid.onmouseover=function(){
cateTable.innerHTML=categoriesArray[5].join('')
displayArrow=5;
arrowdis(displayArrow)
}
navBea.onmouseover=function(){
cateTable.innerHTML=categoriesArray[6].join('')
displayArrow=6;
arrowdis(displayArrow)
}
navHome.onmouseover=function(){
cateTable.innerHTML=categoriesArray[7].join('')
displayArrow=7;
arrowdis(displayArrow)
}
var blockshowCat=document.getElementById("blockshowCat")
var cate=document.querySelector(".cat")
cate.onmouseover=function(){
blockshowCat.style.display="flex"
cateTable.innerHTML=categoriesArray[0].join('')
cate.style.color="black"
cate.style.backgroundColor="white"
var aroiconc=document.querySelector("#farc")
aroiconc.style.transform="rotate(180deg)"
displayArrow=0;
arrowdis(displayArrow)
}
cate.onmouseout=function(){
blockshowCat.style.display="none"
cate.style.color="white"
cate.style.backgroundColor="#212121"
var aroiconc=document.querySelector("#farc")
aroiconc.style.transform="rotate(0deg)"
}
blockshowCat.onmouseover=function(){
blockshowCat.style.display="flex"
cate.style.color="black"
cate.style.backgroundColor="white"
var aroiconc=document.querySelector("#farc")
aroiconc.style.transform="rotate(180deg)"
}
blockshowCat.onmouseout=function(){
blockshowCat.style.display="none"
cate.style.color="white"
cate.style.backgroundColor="#212121"
var aroiconc=document.querySelector("#farc")
aroiconc.style.transform="rotate(0deg)"
}
var searchBar =document.getElementById("search")
searchBar.addEventListener("click", changeSearch)
var btxxn='<button onclick="crosSearch()" id="times"><i class="fal fa-times id="times"></i></button>'
var intext='<input type="text" placeholder="" id="onEffet">'+btxxn
function changeSearch(){
searchBar.innerHTML=intext
}
function crosSearch(){
intext='<input type="text" placeholder="Search" id="beforeEfc"><i class="far fa-search"></i>'
}
window.addEventListener('load', (event) => {
var cart=JSON.parse(localStorage.getItem("cartlist")) || [];
// fav.push(data);
if(cart.length!==0) {
document.getElementById("cartCounter2").style.display="block"
document.getElementById("cartCounter2").textContent=cart.length;}
else{
document.getElementById("cartCounter2").style.display="none"
}
var fav=JSON.parse(localStorage.getItem("favlist")) || [];
if(fav.length!==0) {
document.getElementById("cartCounter1").style.display="block"
document.getElementById("cartCounter1").textContent=fav.length;}
else{
document.getElementById("cartCounter1").style.display="none"
}
// fav.push(data);
document.getElementById("cartCounter1").textContent=fav.length;
});
// Home
document.getElementById("logo").addEventListener("click",function(){
window.location.href="index.html"
})
document.getElementById("nav2ContentImg1").addEventListener("click",function(){
window.location.href="wishlist.html"
})
// Clear=================
// cart--------------------
document.getElementById("nav2ContentImg2").addEventListener("click",function(){
var cartitems=JSON.parse(localStorage.getItem("cartlist")) || []
if(cartitems.length==0) {
window.location.href="emptycart.html"
}
else{
window.location.href="cart.html"
}
})
///dfjdlfj