-
Notifications
You must be signed in to change notification settings - Fork 0
/
INDEX.HTML
442 lines (381 loc) · 14.8 KB
/
INDEX.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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="images/logo2.jpg" type="image/x-icon">
<script type="text/javascript">
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "nv62l2i3fq");
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pond Calculator</title>
<style>
/* Existing footer styling */
.footer h3 {
margin-bottom: 15px;
font-family: Arial, sans-serif;
}
.contact-buttons {
display: flex;
justify-content: center; /* Center the buttons horizontally */
flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.contact-buttons a {
margin: 5px; /* Reduced margin to avoid overlap */
padding: 8px 15px; /* Reduced padding */
background-color: #555;
color: white;
text-decoration: none;
font-family: Arial, sans-serif;
border-radius: 5px;
transition: all 0.3s ease;
display: inline-block; /* Ensure buttons are inline */
}
.contact-buttons a:hover {
background-color: #777;
transform: scale(1.05); /* Slightly smaller scale effect */
}
/* New WhatsApp Group Button Styling */
.whatsapp-group-button {
background-color: #25D366; /* WhatsApp Green */
color: white;
font-weight: bold;
}
.whatsapp-group-button:hover {
background-color: #128C7E; /* Darker WhatsApp Green */
}
/* Responsive adjustments */
@media (max-width: 768px) {
.contact-buttons a {
padding: 6px 12px; /* Further reduce padding on smaller screens */
font-size: 14px; /* Adjust font size */
}
}
@media (max-width: 480px) {
.contact-buttons a {
padding: 4px 10px; /* Even further reduce padding */
font-size: 12px; /* Smaller font size */
}
.footer h3 {
font-size: 16px; /* Adjust heading size */
}
}
.contact-buttons {
display: flex;
gap: 10px; /* Space between buttons */
margin-top: 10px; /* Move buttons up slightly */
}
.contact-buttons a {
padding: 6px 12px; /* Reduced padding */
background-color: #32CD32; /* Lime green */
color: white;
text-decoration: none;
font-family: Arial, sans-serif;
border-radius: 5px;
transition: all 0.3s ease;
display: inline-block;
height: 30px; /* Reduced height */
line-height: 30px; /* Vertically center text in button */
font-size: 12px; /* Adjust font size */
}
.contact-buttons a:hover {
background-color: #FFD700; /* Gold */
transform: scale(1.1);
}
/* Additional styles for the tab content */
.tab-content {
width: 100%;
max-width: 800px;
background-color: #ffffff;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
border-radius: 10px;
padding: 20px;
box-sizing: border-box;
}
/* Additional styles for other elements */
body {
font-family: Arial, sans-serif;
background-color: #e0f7fa;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
.tabs {
display: flex;
margin-bottom: 20px;
}
.tab {
padding: 10px 20px;
cursor: pointer;
background-color: #00796b; /* Pond Calculator tab color */
color: white;
border: none;
border-radius: 5px;
margin-right: 5px;
}
.tab.active {
background-color: #004d40;
}
.input-group {
margin-bottom: 15px;
}
.input-group label {
display: block;
margin-bottom: 5px;
color: #004d40;
font-weight: bold;
}
.input-group input,
.input-group select {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #004d40;
box-sizing: border-box;
}
.input-group button {
width: 100%;
padding: 12px;
background-color: #00796b;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
}
.input-group button:hover {
background-color: #004d40;
}
.results {
margin-top: 20px;
}
.results p {
margin: 0;
padding: 10px;
background-color: #b2dfdb;
border-radius: 5px;
color: #004d40;
font-weight: bold;
}
/* Popup Ad Space */
.popup-ad {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 80%;
max-width: 600px;
background-color: #ffffff;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
border-radius: 10px;
padding: 20px;
text-align: center;
z-index: 1000;
display: none;
}
.popup-ad img {
width: 100%;
height: auto;
border-radius: 10px;
display: none; /* Hide all images initially */
}
.popup-ad img.active {
display: block; /* Show the active image */
}
.popup-ad .close-btn {
background-color: #00796b;
color: white;
border: none;
padding: 10px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="tabs">
<button class="tab active" onclick="showTab('pondCalculator')">Pond Calculator</button>
<button class="tab" onclick="showTab('feedCalculator')">Feed Calculator</button>
</div>
<div class="tab-content" id="pondCalculator">
<h2>Pond Calculator</h2>
<h3>Powered by Enionyam Fisheries</h3>
<div class="input-group">
<label for="length">Length (feet):</label>
<input type="number" id="length" placeholder="Enter the length of the pond">
</div>
<div class="input-group">
<label for="width">Width (feet):</label>
<input type="number" id="width" placeholder="Enter the width of the pond">
</div>
<div class="input-group">
<label for="depth">Depth (feet):</label>
<input type="number" id="depth" placeholder="Enter the depth of the pond">
</div>
<div class="input-group">
<button onclick="calculatePond()">Calculate</button>
</div>
<div class="results">
<p id="volumeResult"></p>
<p id="stockingResult"></p>
<p id="vinegarResult"></p>
</div>
</div>
<div class="tab-content" id="feedCalculator" style="display: none;">
<h2>Feed Calculator</h2>
<h3>Powered by Enionyam Fisheries</h3>
<div class="input-group">
<label for="stage">Select Fish Stage:</label>
<select id="stage">
<option value="fingerlings">Fingerlings</option>
<option value="juveniles">Juveniles</option>
<option value="jumbo">Jumbo</option>
<option value="growout">Growout</option>
</select>
</div>
<div class="input-group">
<button onclick="calculateFeed()">Calculate Feed</button>
</div>
<div class="results">
<p id="feedResult"></p>
</div>
</div>
<div class="tab-content" id="howToUse" style="display: none;">
<h2>How to Use the Calculators</h2>
<h3>Pond Calculator:</h3>
<p>To use the Pond Calculator:</p>
<ol>
<li>Enter the length, width, and depth of your pond in feet.</li>
<li>Click the "Calculate" button.</li>
<li>The calculator will display the total pond volume in gallons and liters, the recommended stocking
density, and the amount of vinegar required to adjust the pH.</li>
</ol>
<h3>Feed Calculator:</h3>
<p>To use the Feed Calculator:</p>
<ol>
<li>Select the stage of fish (Fingerlings, Juveniles, Jumbo, or Growout) from the dropdown menu.</li>
<li>Enter the number of fish in your pond.</li>
<li>Click the "Calculate Feed" button.</li>
<li>The calculator will display the total daily feed requirement in kilograms based on the selected fish
stage and the number of fish.</li>
</ol>
</div>
<!-- Popup Ad Space -->
<div class="popup-ad" id="popupAd">
<!-- Popup Ad Image Slider -->
<img src="images/POND FILTERS 4.png" alt="Ad Image 1" class="active">
<img src="images/POND FILTERS.png" alt="Ad Image 2">
<img src="images/POND FILTERS (3).png" alt="Ad Image 3">
<img src="images/NEEMATONE GEL (5).png" alt="Ad Image 4">
<!-- Add more images as needed -->
<button class="close-btn" id="closeBtn" style="display: none;">Close</button>
</div>
<script>
function showTab(tabId) {
const tabs = document.querySelectorAll('.tab-content');
const tabButtons = document.querySelectorAll('.tab');
tabs.forEach(tab => {
tab.style.display = tab.id === tabId ? 'block' : 'none';
});
tabButtons.forEach(button => {
button.classList.toggle('active', button.textContent.toLowerCase().includes(tabId));
});
}
function calculatePond() {
const length = document.getElementById('length').value;
const width = document.getElementById('width').value;
const depth = document.getElementById('depth').value;
const volumeCubicFeet = length * width * depth;
const volumeGallons = volumeCubicFeet * 7.48;
const volumeLiters = volumeGallons * 3.785;
const stockingDensity = Math.floor(volumeLiters / 8);
const vinegarNeededLiters = volumeGallons * 0.001;
document.getElementById('volumeResult').innerText = `Pond Volume: ${volumeGallons.toFixed(2)} gallons (${volumeLiters.toFixed(2)} liters)`;
document.getElementById('stockingResult').innerText = `Stocking Density: ${stockingDensity} fish`;
document.getElementById('vinegarResult').innerText = `Vinegar Required: ${vinegarNeededLiters.toFixed(3)} liters`;
}
function calculateFeed() {
const stage = document.getElementById('stage').value;
const length = parseFloat(document.getElementById('length').value);
const width = parseFloat(document.getElementById('width').value);
const depth = parseFloat(document.getElementById('depth').value);
const volumeCubicFeet = length * width * depth;
const volumeGallons = volumeCubicFeet * 7.48;
const volumeLiters = volumeGallons * 3.785;
const stockingDensity = Math.floor(volumeLiters / 8);
let feedRequirementPerDay;
switch (stage) {
case 'fingerlings':
const totalWeightFingerlings = stockingDensity * 0.01; // Assuming 10 grams per fingerling
feedRequirementPerDay = totalWeightFingerlings * 0.05; // 5% of body weight
break;
case 'juveniles':
const totalWeightJuveniles = stockingDensity * 0.05; // Assuming 50 grams per juvenile
feedRequirementPerDay = totalWeightJuveniles * 0.04; // 4% of body weight
break;
case 'jumbo':
const totalWeightJumbo = stockingDensity * 0.2; // Assuming 200 grams per jumbo
feedRequirementPerDay = totalWeightJumbo * 0.03; // 3% of body weight
break;
case 'growout':
const totalWeightGrowout = stockingDensity * 0.5; // Assuming 500 grams per growout
feedRequirementPerDay = totalWeightGrowout * 0.02; // 2% of body weight
break;
default:
feedRequirementPerDay = 0;
}
document.getElementById('feedResult').innerText = `Feed Requirement per Day: ${feedRequirementPerDay.toFixed(2)} kg`;
}
let sliderInterval;
function showPopup() {
const popupAd = document.getElementById('popupAd');
popupAd.style.display = 'block';
startSlider();
setTimeout(showCloseButton, 15000); // Show the close button after 15 seconds
}
function closePopup() {
clearInterval(sliderInterval); // Clear the interval when closing the popup
document.getElementById('popupAd').style.display = 'none';
document.getElementById('closeBtn').style.display = 'none'; // Hide close button
setTimeout(showPopup, 15000); // Show popup again after 15 seconds
}
function startSlider() {
const images = document.querySelectorAll('.popup-ad img');
let currentIndex = 0;
function showNextImage() {
images[currentIndex].classList.remove('active');
currentIndex = (currentIndex + 1) % images.length;
images[currentIndex].classList.add('active');
}
sliderInterval = setInterval(showNextImage, 4000); // Change image every 4 seconds
}
function showCloseButton() {
document.getElementById('closeBtn').style.display = 'inline-block';
}
window.onload = function () {
setTimeout(showPopup, 5000); // Show popup after 5 seconds
document.getElementById('closeBtn').addEventListener('click', closePopup);
}
</script>
<!-- Footer -->
<div class="footer">
<h3>Contact Us</h3>
<div class="contact-buttons">
<a href="https://wa.me/233244623141" target="_blank">WhatsApp</a>
<a href="https://web.facebook.com/Enionyamfisheries/" target="_blank">Facebook</a>
<a href="mailto:[email protected]">Email</a>
<!-- New WhatsApp Group Button -->
<a href="https://chat.whatsapp.com/DmvLSxqsVXlAJIz7hjzN1A" target="_blank"
class="whatsapp-group-button">Join WhatsApp Group</a>
</div>
</div>
</body>
</html>