forked from QAZIMAAZARSHAD/Apni-Dukaan
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeals.html
244 lines (225 loc) · 10.6 KB
/
deals.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
<!DOCTYPE html>
<html>
<head>
<title>Apni Dukaan</title>
<meta charset="utf-8">
<meta name="vfewport" content="width=device-width initial-scale=1 shrink-to-fit-=no">
<link rel="stylesheet" type="text/css" href="./static/style.css">
<link rel="icon" href="./Images/favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<nav class="menu">
<ul>
<li><a href="./index.html">Home</a></li>
<li><a href="./deals.html">Offers</a></li>
<li><a href="./about.html">About Us</a></li>
<li><a href="./contactus.html">Contact Us</a></li>
<li><a href="login.html">Login</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="Partner Stores.html">Partner Stores</a></li>
</ul>
<form class="search-form">
<input type="text" placeholder="Search">
<button>Search</button>
</nav>
<section class="deals" id="deals">
<h2>Deals Of The Day</h2>
<div class="inner">
<div>
<img src="./Images/offer4.jpg">
<h3>Get Upto 50% Off</h3>
<h3>On Shopping Of Rs5000 And Above</h3>
<h3>Get Rs200 Off On Your Next Visit</h3>
<h4 id="timer1"></h4>
<a href="">View Deal</a>
</div>
<div>
<img src="./Images/offer3.jpg">
<h3>Super Saver Offer</h3>
<h3>Mega Discount On All Electric Appliances</h3>
<h3>Ranging From 10% to 75%</h3>
<h4 id="timer2"></h4>
<a href="">View Deal</a>
</div>
<div>
<img src="./Images/offer5.jpg">
<h3>Win A Trip To Disney Land HongKong</h3>
<h3>On Shopping of Rs10000 </h3>
<h3>Full Family Holiday Package</h3>
<h4 id="timer3"></h4>
<a href="">View Deal</a>
</div>
<div>
<img src="./Images/offer1.jpg">
<h3>Get Upto 75% Off</h3>
<h3>On Shopping Of Select Brand Products.</h3>
<h3>Limited Time Offer</h3>
<h4 id="timer4"></h4>
<a href="">View Deal</a>
</div>
<div>
<img src="./Images/offer2.jpg">
<h3>Get Flat 30% Cashback Upto Rs200 </h3>
<h3>On All Purchases Above Rs699</h3>
<h3>When You Pay Using Paytm</h3>
<h4 id="timer5"></h4>
<a href="">View Deal</a>
</div>
<div>
<img src="./Images/offer6.jpg">
<h3>Get Flat 30% Off</h3>
<h3>On Shopping of Rs500 </h3>
<h3>Offer Valid On All Dairy Products</h3>
<h4 id="timer6"></h4>
<a href="">View Deal</a>
</div>
</div>
</section>
<table align="center">
<footer align="center" class="foot">
<img src="./Images/ApniDukaanLogo.jpg" class="logo1">
<div class="inner">
<div class="about">
<h3>Get To Know Us</h3>
<ul>
<li> <a href="./about.html">About us</a></li>
<li> <a href="dummy.html">Careers</a></li>
<li> <a href="dummy.html">Press Releases</a></li>
<li> <a href="dummy.html">ApniDukaan Cares</a></li>
</ul>
</div>
<div class="help">
<h3>Let Us Help You</h3>
<ul>
<li> <a href="dummy.html">Payments</a></li>
<li> <a href="dummy.html">Shipping</a></li>
<li> <a href="dummy.html">Cancellation and Returns</a></li>
<li> <a href="dummy.html">Report an Issue</a></li>
</ul>
</div>
<div class="policy">
<h3>Policy</h3>
<ul>
<li> <a href="dummy.html">Return Policy</a></li>
<li> <a href="dummy.html">Time Of Use</a></li>
<li> <a href="dummy.html">Carrers</a></li>
<li> <a href="dummy.html">Privacy</a></li>
</ul>
</div>
<div class="about">
<h3>Connect With Us</h3>
<ul>
<li> <a href="contactus.html"> Contact Us</a></li>
<li> <a href="dummy.html">Facebook</a></li>
<li> <a href="dummy.html">Twitter</a></li>
<li> <a href="dummy.html">Instagram</a></li>
</ul>
</div>
<div class="about">
<h3>Make Money With Us</h3>
<ul>
<li> <a href="dummy.html">Sell On ApniDukaan</a></li>
<li> <a href="dummy.html">Advertise Your Products</a></li>
<li> <a href="dummy.html">Become Our Partner</a></li>
<li> <a href="dummy.html">Join Our Mission</a></li>
</ul>
</div>
</div>
<p class="copyright">Copyright © and ® Since 2020
Under ApniDukaan.com | Qazi Maaz Arshad</p>
</footer>
</table>
<button id = "btnScrollToTop">
<i class="material-icons">arrow_upward</i>
</button>
<script>
var countDownDate1 = new Date("July 19, 2021 00:00:00").getTime();
var countDownDate2 = new Date("July 26, 2021 00:00:00").getTime();
var countDownDate3 = new Date("August 12, 2021 00:00:00").getTime();
var countDownDate4 = new Date("August 2, 2021 00:00:00").getTime();
var countDownDate5 = new Date("September 12, 2021 00:00:00").getTime();
var countDownDate6 = new Date("October 12, 2021 00:00:00").getTime();
// Update the count down every 1 second
var x = setInterval(function () {
// Get today's date and time
var now = new Date().getTime();
// Find the time left between now and the count down date
var timeleft1 = countDownDate1 - now;
var timeleft2 = countDownDate2 - now;
var timeleft3 = countDownDate3 - now;
var timeleft4 = countDownDate4 - now;
var timeleft5 = countDownDate5 - now;
var timeleft6 = countDownDate6 - now;
// Time calculations for days, hours, minutes and seconds
var days1 = Math.floor(timeleft1 / (1000 * 60 * 60 * 24));
var hours1 = Math.floor((timeleft1 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes1 = Math.floor((timeleft1 % (1000 * 60 * 60)) / (1000 * 60));
var seconds1 = Math.floor((timeleft1 % (1000 * 60)) / 1000);
var days2 = Math.floor(timeleft2 / (1000 * 60 * 60 * 24));
var hours2 = Math.floor((timeleft2 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes2 = Math.floor((timeleft2 % (1000 * 60 * 60)) / (1000 * 60));
var seconds2 = Math.floor((timeleft2 % (1000 * 60)) / 1000);
var days3 = Math.floor(timeleft3 / (1000 * 60 * 60 * 24));
var hours3 = Math.floor((timeleft3 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes3 = Math.floor((timeleft3 % (1000 * 60 * 60)) / (1000 * 60));
var seconds3 = Math.floor((timeleft3 % (1000 * 60)) / 1000);
var days4 = Math.floor(timeleft4 / (1000 * 60 * 60 * 24));
var hours4 = Math.floor((timeleft4 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes4 = Math.floor((timeleft4 % (1000 * 60 * 60)) / (1000 * 60));
var seconds4 = Math.floor((timeleft4 % (1000 * 60)) / 1000);
var days5 = Math.floor(timeleft5 / (1000 * 60 * 60 * 24));
var hours5 = Math.floor((timeleft5 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes5 = Math.floor((timeleft5 % (1000 * 60 * 60)) / (1000 * 60));
var seconds5 = Math.floor((timeleft5 % (1000 * 60)) / 1000);
var days6 = Math.floor(timeleft6 / (1000 * 60 * 60 * 24));
var hours6 = Math.floor((timeleft6 % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes6 = Math.floor((timeleft6 % (1000 * 60 * 60)) / (1000 * 60));
var seconds6 = Math.floor((timeleft6 % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
document.getElementById("timer1").innerHTML = days1 + "d " + hours1 + "h "
+ minutes1 + "m " + seconds1 + "s ";
document.getElementById("timer2").innerHTML = days2 + "d " + hours2 + "h "
+ minutes2 + "m " + seconds2 + "s ";
document.getElementById("timer3").innerHTML = days3 + "d " + hours3 + "h "
+ minutes3 + "m " + seconds3 + "s ";
document.getElementById("timer4").innerHTML = days4 + "d " + hours4 + "h "
+ minutes4 + "m " + seconds4 + "s ";
document.getElementById("timer5").innerHTML = days5 + "d " + hours5 + "h "
+ minutes5 + "m " + seconds5 + "s ";
document.getElementById("timer6").innerHTML = days6 + "d " + hours6 + "h "
+ minutes6 + "m " + seconds6 + "s ";
// If the count down is finished, write some text
if (timeleft1 < 0) {
clearInterval(x);
document.getElementById("timer1").innerHTML = "EXPIRED";
}
if (timeleft2 < 0) {
clearInterval(x);
document.getElementById("timer2").innerHTML = "EXPIRED";
}
if (timeleft3 < 0) {
clearInterval(x);
document.getElementById("timer3").innerHTML = "EXPIRED";
}
if (timeleft4 < 0) {
clearInterval(x);
document.getElementById("timer4").innerHTML = "EXPIRED";
}
if (timeleft5 < 0) {
clearInterval(x);
document.getElementById("timer5").innerHTML = "EXPIRED";
}
if (timeleft6 < 0) {
clearInterval(x);
document.getElementById("timer6").innerHTML = "EXPIRED";
}
}, 1000);
const btnScrollToTop = document.querySelector("#btnScrollToTop");
btnScrollToTop.addEventListener("click", function () {
window.scrollTo(0, 0);
}
);
</script>
</body>
</html>