-
Notifications
You must be signed in to change notification settings - Fork 0
/
customers.html
309 lines (270 loc) · 11.7 KB
/
customers.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap" rel="stylesheet">
<title>wildhive</title>
<!-- Additional CSS Files -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="assets/css/font-awesome.css">
<link rel="stylesheet" href="assets/css/wildhive.css">
<link rel="stylesheet" href="assets/css/owl-carousel.css">
<link rel="stylesheet" href="assets/css/lightbox.css">
</head>
<body>
<!-- ***** Preloader Start ***** -->
<div id="preloader">
<div class="jumper">
<div></div>
<div></div>
<div></div>
</div>
</div>
<!-- ***** Preloader End ***** -->
<!-- ***** Header Area Start ***** -->
<header class="header-area header-sticky">
<div class="container">
<div class="row">
<div class="col-12">
<nav class="main-nav">
<!-- ***** Logo Start ***** -->
<a href="index.html" class="logo">
<img src="assets/images/logo.png">
</a>
<!-- ***** Logo End ***** -->
<!-- ***** Menu Start ***** -->
<ul class="nav">
<li class="scroll-to-section"><a href="#top" class="active">Home</a></li>
<li class="scroll-to-section"><a href="customers.html">customers</a></li>
<li class="scroll-to-section"><a href="retailers.html">retailers</a></li>
<li class="scroll-to-section"><a href="wholesalers.html">Wholesalers</a></li>
<li class="submenu">
<a href="javascript:;">Pages</a>
<ul>
<li><a href="about.html">About Us</a></li>
<li><a href="products.html">Products</a></li>
<li><a href="contact.html">Contact Us</a></li>
</ul>
</li>
<li class="scroll-to-section"><a href="products.html">Explore</a></li>
</ul>
<a class='menu-trigger'>
<span>Menu</span>
</a>
<!-- ***** Menu End ***** -->
</nav>
</div>
</div>
</div>
</header>
<!-- ***** Header Area End ***** -->
<section class="section" id="customers">
<div class="row">
<div class="col-lg-12">
<div class="customers-item-carousel">
<div class="owl-customers-item owl-carousel">
<div class="item">
<div class="thumb">
<div class="hover-content">
<ul>
<li><a onclick="toggleHeartColor(event)"><i class="fa fa-heart heart-icon"></i></a></li>
</ul>
</div>
<img src="assets/images/berryhoney.jpg" alt="">
</div>
<div class="down-content">
<h4>Berry honey</h4>
<span>$10.00</span>
</div>
</div>
<div class="item">
<div class="thumb">
<div class="hover-content">
<ul>
<li><a onclick="toggleHeartColor(event)"><i class="fa fa-heart heart-icon"></i></a></li>
</ul>
</div>
<img src="assets/images/multiflora.jpg" alt="">
</div>
<div class="down-content">
<h4>berry honey</h4>
<span>$14.00</span>
</div>
</div>
<div class="item">
<div class="thumb">
<div class="hover-content">
<ul>
<li><a onclick="toggleHeartColor(event)"><i class="fa fa-heart heart-icon"></i></a></li>
</ul>
</div>
<img src="assets/images/litchihoney.jpg" alt="">
</div>
<div class="down-content">
<h4>Litchi honey</h4>
<span>$15.00</span>
</div>
</div>
<div class="item">
<div class="thumb">
<div class="hover-content">
<ul>
<li><a onclick="toggleHeartColor(event)"><i class="fa fa-heart heart-icon"></i></a></li>
</ul>
</div>
<img src="assets/images/flavouredhon.jpg" alt="">
</div>
<div class="down-content">
<h4>Combo</h4>
<span>$18.00</span>
</div>
</div>
<!-- -->
<div class="item">
<div class="thumb">
<div class="hover-content">
<ul>
<li><a onclick="toggleHeartColor(event)"><i class="fa fa-heart heart-icon"></i></a></li>
</ul>
</div>
<img src="assets/images/litchihoney.jpg" alt="">
</div>
<div class="down-content">
<h4>Litchi Honey</h4>
<span>$10.00</span>
</div>
</div>
<!-- -->
<div class="item">
<div class="thumb">
<div class="hover-content">
<ul>
<li><a onclick="toggleHeartColor(event)"><i class="fa fa-heart heart-icon"></i></a></li>
<li><a href="single-product.html"><i class="fa fa-shopping-cart"></i></a></li>
</ul>
</div>
<img src="assets/images/multiflora.jpg" alt="">
</div>
<div class="down-content">
<h4>Multiflora honey</h4>
<span>$10.00</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script>
document.querySelectorAll('.customers-item-carousel .item').forEach(item => {
const img = item.querySelector('.thumb img');
const price = item.querySelector('.down-content span').textContent.replace('$', ''); // Remove $ for clean price data
const name = item.querySelector('.down-content h4').textContent;
const productDescription = "Description of " + name; // Assuming you want to add a description
const encodedName = encodeURIComponent(name);
const encodedPrice = encodeURIComponent(price);
const encodedDescription = encodeURIComponent(productDescription);
// Assuming img.src is the correct path you want to use as imageSource
const encodedImageSource = encodeURIComponent(img.src);
// Now set the shopping cart link correctly
const cartLink = item.querySelector('.hover-content ul li a[href="single-product.html"]');
if(cartLink) {
cartLink.href = `single-product.html?imageSource=${encodedImageSource}&price=${encodedPrice}&name=${encodedName}&productDescription=${encodedDescription}`;
}
});
function openSingleProduct(event, price, name) {
event.preventDefault();
const imageSource = event.target.getAttribute('src');
const encodedImageSource = encodeURIComponent(imageSource);
const encodedPrice = encodeURIComponent(price);
const encodedName = encodeURIComponent(name);
window.location.href = `single-product.html?imageSource=${encodedImageSource}&price=${encodedPrice}&name=${encodedName}`;
}
document.querySelectorAll('.customers-item-carousel .item img').forEach(img => {
const price = img.closest('.item').querySelector('.down-content span').textContent;
const name = img.closest('.item').querySelector('.down-content h4').textContent;
img.addEventListener('click', event => openSingleProduct(event, price, name));
});
</script>
<!-- footer-->
<footer>
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="first-item">
<div class="logo">
<img src="" alt="">
</div>
</div>
</div>
<div class="col-lg-3">
<h4>Shopping & Categories</h4>
<ul>
<li><a href="customers.html">Shopping</a></li>
<li><a href="retailers.html">Retailers</a></li>
<li><a href="wholesalers.html">Wholesalers</a></li>
</ul>
</div>
<div class="col-lg-3">
<h4>Useful Links</h4>
<ul>
<li><a href="#">Homepage</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Help</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div class="col-lg-3">
<h4>Help & Information</h4>
<ul>
<li><a href="#">Help</a></li>
<li><a href="#">FAQ's</a></li>
<li><a href="#">Shipping</a></li>
<li><a href="#">Tracking ID</a></li>
</ul>
</div>
</div>
</div>
</footer>
<!-- jQuery -->
<script src="assets/js/jquery-2.1.0.min.js"></script>
<!-- Bootstrap -->
<script src="assets/js/popper.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<!-- Plugins -->
<script src="assets/js/owl-carousel.js"></script>
<script src="assets/js/accordions.js"></script>
<script src="assets/js/datepicker.js"></script>
<script src="assets/js/scrollreveal.min.js"></script>
<script src="assets/js/waypoints.min.js"></script>
<script src="assets/js/jquery.counterup.min.js"></script>
<script src="assets/js/imgfix.min.js"></script>
<script src="assets/js/slick.js"></script>
<script src="assets/js/lightbox.js"></script>
<script src="assets/js/isotope.js"></script>
<script src="assets/js/wildhive.js"></script>
<script src="assets/js/quantity.js"></script>
<script src="assets/js/server.js"></script>
<!-- Global Init -->
<script src="assets/js/custom.js"></script>
<script>
$(function() {
var selectedClass = "";
$("p").click(function(){
selectedClass = $(this).attr("data-rel");
$("#portfolio").fadeTo(50, 0.1);
$("#portfolio div").not("."+selectedClass).fadeOut();
setTimeout(function() {
$("."+selectedClass).fadeIn();
$("#portfolio").fadeTo(50, 1);
}, 500);
});
});
</script>
</body>
</html>