-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathoffer.html
366 lines (320 loc) · 15.2 KB
/
offer.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
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
<!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>
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./styles/header.css" />
<link rel="stylesheet" href="./styles/offer.css">
<link rel="stylesheet" href="./styles/footer.css">
<style>
</style>
<body>
<div class="main"> </div>
<div class="container-fluid">
<nav class="container-fluid" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item active" aria-current="page"><a href="">Savings Center</a></li>
</ol>
<h4 class="p-1">Specials & Offers</h4>
</nav>
<div class="container-fluid">
<img src="https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/image.png"
width="100%" alt="">
</div>
<div class="container-fluid " id="special">
<div>
<img src="https://assets.homedepot-static.com/images/v1/sbotd-logo.png" width="100%" alt="">
</div>
<div>
<h3>Up to $375 off Select Water<br> Filtration Systems</h3>
<p>Today Only! Free Delivery </p>
<p>Ends in <b id="timer"></b> </p>
</div>
<div>
<button>Shops Today's Specials</button>
</div>
</div>
<div class="container-fluid" id="item_crousel">
<div class="swiper mySwiper">
<div class="swiper-wrapper" id="templetes">
</div>
<div class="swiper-button-next"></div>
<div class="swiper-button-prev"></div>
</div>
</div>
<!-- Adding Departments -->
<div class="container-fluid">
<div class="head">
<h1>Shop Savings by Department</h1>
<div class="line">
<div></div>
<div></div>
</div>
</div>
<div class="container-fluid" id="products">
</div>
</div>
<!-- adding Savings -->
<div class="container-fluid">
<div class="head">
<h1>More Ways to Save</h1>
<div class="line">
<div></div>
<div></div>
</div>
</div>
<div class="container-fluid" id="products2"></div>
</div>
</div>
<div class="container-fluid mt-5">
<div id="imgSec">
<div>
<img src="https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/1130-Pro-free-delivery-split-banner.jpg"
alt="">
</div>
<div>
<img src="https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/6mo-credit2.png"
alt="">
</div>
</div>
</div>
<!-- Content -->
<div class="container-fluid">
<div class="head">
<h1>Smart Ways to Save on Home Improvement</h1>
<div class="line">
<div></div>
<div></div>
</div>
</div>
<div class="container-fluid" id="content">
<p>Savings to Make Your Projects Happen
<br>
Give your update and budget a boost with The Home Depot specials. Any project can easily become a
reality with one of our savings options. No matter what you choose, our in-store or online deals,
coupons,<br> special and credit offers, give you the financial power to do more.
</p>
<p>
Appliances for Less
<br>
Stop searching for a refrigerator sale, dishwasher sale, or washer and dryer sale at different
retailers, when the must-have deals for appliance are all-in-one place.
</p>
<p>
Value in Every Department
<br>
The Home Depot deals can be found on countless of items storewide. We know sometimes you need it now,
<br>
and can't wait for a furniture sale or a rug sale, or any of The Home Depot sales to find great values.
No worries, because we have everyday low prices on products to improve every part of your home.
</p>
<p>
More Saving
<br>
Not all home deals are created equal. When you're looking for better products at better values - look to
the only name in improvement - The Home Depot.
</p>
</div>
</div>
</div>
</div>
<div id="footer"></div>
</body>
</html>
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script type="module">
// imports
import { header } from "./components/headerComp.js";
document.querySelector(".main").innerHTML = header()
import footerFunc from "./components/footer.js";
let footerDiv = document.getElementById("footer");
footerDiv.innerHTML = footerFunc();
document.getElementById("location_search").addEventListener("keypress", function (event) {
if (event.key == 'Enter') {
let value = document.getElementById("location_search").value;
document.getElementById("view_location").textContent = value;
}
});
// Timmer
var countDownDate = new Date("Jan 30, 2022 15:37:25").getTime();
var x = setInterval(function () {
var now = new Date().getTime();
var distance = countDownDate - now;
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
document.getElementById("timer").textContent = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
if (distance < 0) {
clearInterval(x);
document.getElementById("timer").innerHTML = "EXPIRED";
}
}, 1000);
// Slider
var swiper = new Swiper(".mySwiper", {
slidesPerView: 6,
spaceBetween: 30,
slidesPerGroup: 6,
loop: true,
loopFillGroupWithBlank: true,
pagination: {
clickable: true,
},
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
});
let object2 = [
{
image: "https://images.thdstatic.com/productImages/197408f3-c243-486d-abef-154fbbeada0d/svn/mulled-wine-home-decorators-collection-throw-blankets-st50%C3%9770smw-64_400.jpg",
span: "GHOSTBED",
detail: "Cool To The Touch Soft Memory Foam Standard Pillow",
}, {
image: "https://images.thdstatic.com/productImages/7bb7a2db-b55a-4bef-b715-b207734754d8/svn/black-buffalo-home-decorators-collection-throw-blankets-st50%C3%9770pbbc-64_400.jpg",
span: "GHOSTBED",
detail: "Faux Down Soft Microfiber Gel Memory Foam Standard Pillow",
}, {
image: "https://images.thdstatic.com/productImages/dca8c7df-8852-4ea7-be9d-a7329a0933cf/svn/plaid-holiday-red-home-decorators-collection-throw-blankets-st50%C3%9770pbphr-64_400.jpg",
span: "Home Dynamix",
detail: "Capri Haven Mint 17 in. x 24 in. Memory Foam Bath Mat",
}, {
image: "https://images.thdstatic.com/productImages/8a22371b-2f3a-4416-9ab1-e34dd8738f4a/svn/leopard-home-decorators-collection-throw-blankets-st50%C3%9770pl-64_400.jpg",
span: "THE CLEAN STORE",
detail: "Washcloths Cleaning (60-Pack)",
}, {
image: "https://images.thdstatic.com/productImages/ea00bd4b-7c0a-4d44-b0b4-7d0a8257fcb5/svn/charcoal-home-decorators-collection-throw-blankets-ckt-50%C3%9770c-64_400.jpg",
span: "Home Dynamix",
detail: "Ombre Element White/Ivory 20 in. x 32 in. Stripe Polyester Bath Mat",
}, {
image: "https://images.thdstatic.com/productImages/dfab3af5-ac71-4a83-8023-a43e3f4a2b20/svn/fir-home-decorators-collection-throw-blankets-st50%C3%9770sf-64_400.jpg",
span: "Hand Towel ",
detail: "Standard Towel (Set of 12)",
}, {
image: "https://images.thdstatic.com/productImages/7503a146-ff9f-4102-8bb1-112d6ccd9c66/svn/stone-gray-home-decorators-collection-throw-blankets-fft-50%C3%9770s-64_400.jpg",
span: "Zinus",
detail: "Zinus in. Medium No Pocket Memory Foam Short Queen Mattress Topper",
}, {
image: "https://images.thdstatic.com/productImages/ad48eb55-a5d6-4089-b570-76b80e84fd39/svn/melange-gray-stylewell-throw-blankets-wt-50%C3%9770g-64_400.jpg",
span: "Zinus",
detail: "Zinus 4 in. Medium No Pocket Memory Foam Short Queen Mattress Topper",
}, {
image: "https://images.thdstatic.com/productImages/7198f682-75e0-4eee-9746-de771613637e/svn/beautyrest-weighted-blankets-br51-0939-64_400.jpg",
span: "Cotton Wash Cloth",
detail: "Standard Wash Cloth (Set of 24)",
}, {
image: "https://images.thdstatic.com/productImages/5981be57-56a8-4e9c-af29-5955a99a6296/svn/beautyrest-weighted-blankets-br51-0967-64_400.jpg",
span: "NuWallpaper",
detail: "Lemon Drop Yellow Vinyl Peel & Stick Wallpaper Roll (Covers 30.75 Sq. Ft.)",
}, {
image: "https://images.thdstatic.com/productImages/3de1f7b8-3f02-47a2-91b3-3e970a84c9dc/svn/sleep-philosophy-weighted-blankets-bl51-0920-64_400.jpg",
span: "NuWallpaper",
detail: "Cream Grassweave Vinyl Peel & Stick Wallpaper Roll (Covers 30.75 Sq. Ft.)",
}, {
image: "https://images.thdstatic.com/productImages/3de1f7b8-3f02-47a2-91b3-3e970a84c9dc/svn/sleep-philosophy-weighted-blankets-bl51-0920-64_400.jpg",
span: "Empire Art Direct",
detail: "'The Falls' Frameless Free Floating Tempered Art Glass by EAD Art Coop Wall Art",
},
]
appendSponsered(object2)
function appendSponsered(arr) {
let y = ` `;
arr.map((el) => {
y += ` <div class="swiper-slide">
<div><img
src= ${el.image}
alt="">
<p><b>${el.span}</b> ${el.detail}</p>
<h5>Rs. ${Math.floor(Math.random() * 2000) + 500} </h5>
</div>
<button><b>Add To Cart</b></button>
</div>`
});
document.querySelector(".swiper-wrapper").innerHTML = y;
}
// Department page
let arr_img = [
{
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/SBOTD-Tools-Savings2.jpg",
para: "Tools Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/outdoor-living2.jpg",
para: "Outdoors Living Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Bath-Faucets-Savings2.jpg",
para: "Bath & Faucet Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Kitchen-Savings2.jpg",
para: "Kitchen Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Storage-Savings2.jpg",
para: "Storage Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Storage-Savings2.jpg",
para: "Hardware Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/floor-tile-savings3.jpg",
para: "Flooring & Tile Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/lawn-garden2.jpg",
para: "Lawn & Garden"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Plumbing4.jpg",
para: "Plumbing Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Lighting.jpg",
para: "Lighting & Fan Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/ladder.jpg",
para: "Building Material Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/electrical.jpg",
para: "Electrical Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Paint-Savings2.jpg",
para: "Paint Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/furniture2.jpg",
para: "Furniture Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/BlindsWindows2.jpg",
para: "Blinds & Window Treatment Savings"
}, {
img: "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/Heating-Cooling-Savings2.jpg",
para: "Heating & Cooling Savings"
},
];
appendDepartments(arr_img)
function appendDepartments(arr) {
let x = ` `;
arr.map((el) => {
x += ` <div>
<img src= ${el.img} width="100%" alt="">
<a href="">${el.para}</a>
</div>`
})
document.getElementById("products").innerHTML = x;
}
// Adding Savings image
let saving_arr = ["https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/overtock-MOB2.gif", "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/NLP2.gif", "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/special-buy-MOB.gif", "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/bulk-MOB3.gif", "https://contentgrid.thdstatic.com/hdus/en_US/DTCCOMNEW/fetch/NexGen/ContentPage/rebate2.gif"]
appendSpecials(saving_arr)
function appendSpecials(arr) {
let x = ``;
arr.map((el) => {
x += `<div>
<img src=${el} alt="">
</div>`
});
document.getElementById("products2").innerHTML = x;
}
</script>