-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
269 lines (243 loc) · 13.1 KB
/
index.html
File metadata and controls
269 lines (243 loc) · 13.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Water Conservation Platform</title>
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<!-- Header -->
<header>
<h1>Water Conservation Platform</h1>
<nav>
<ul>
<li><a href="#" onclick="showSection('home')">Home</a></li>
<li><a href="#" onclick="showSection('peer')">Peer-Reviewed Articles</a></li>
<li><a href="#" onclick="showSection('tools')">Tools</a></li>
<li><a href="#" onclick="showSection('videos')">Videos</a></li>
<li><a href="#" onclick="showSection('forum')">Community Forum</a></li>
<li><a href="#" onclick="showSection('contact')">Contact</a></li>
</ul>
</nav>
</header>
<!-- Main Content -->
<main>
<!-- Home Section -->
<section id="home" class="active">
<h2>Welcome to the Water Conservation Platform</h2>
<div class="home-content">
<div class="home-feature">
<h3>Learn Best Practices</h3>
<p>Explore innovative methods and strategies for conserving water in agriculture, industrial use, and daily life.</p>
</div>
<div class="home-feature">
<h3>Interactive Tools</h3>
<p>Use our interactive tools to calculate water usage, analyze savings, and develop conservation plans.</p>
</div>
<div class="home-feature">
<h3>Join the Community</h3>
<p>Collaborate with experts and enthusiasts in our community forum. Share ideas, discuss innovations, and learn from case studies.</p>
</div>
</div>
</section>
<!-- Peer-Reviewed Articles Section -->
<section id="peer">
<h2>Peer-Reviewed Articles</h2>
<div class="article-list">
<article>
<h3>Advances in Water-Saving Technologies</h3>
<p>This article explores the latest innovations in water-efficient irrigation systems, rainwater harvesting, and wastewater recycling.</p>
<a href="#">Read More</a>
</article>
<article>
<h3>Sustainable Water Management in Agriculture</h3>
<p>Find out how farmers are implementing strategies to reduce water use while maintaining crop yields.</p>
<a href="#">Read More</a>
</article>
<article>
<h3>Urban Water Conservation Techniques</h3>
<p>Discover methods cities use to manage water consumption effectively and reduce waste.</p>
<a href="#">Read More</a>
</article>
<article>
<h3>Climate Change and Water Resources</h3>
<p>An in-depth review of the impact of climate change on global water resources and strategies to mitigate these effects.</p>
<a href="#">Read More</a>
</article>
</div>
</section>
<!-- Tool Section -->
<section id="tools">
<h2>Water Conservation Tools</h2>
<p>Use these tools to calculate, assess, and plan your water-saving strategies. Our interactive tools provide real-time insights to help you make informed decisions and contribute to water conservation efforts.</p>
<div class="tool-container">
<!-- Water Usage Calculator -->
<div class="tool">
<h3>Water Usage Calculator</h3>
<p>Track your daily water consumption and explore ways to reduce waste. Calculate your water footprint and see how much water you can save by making small changes.</p>
<a href="#" id="waterCalculatorLink">Try the Water Usage Calculator</a>
</div>
<!-- Water Usage Reduction Planner -->
<div class="tool">
<h3>Water Usage Reduction Planner</h3>
<p>Develop a step-by-step plan to reduce water consumption over time. Set goals, track your progress, and see the impact of your water-saving efforts.</p>
<a href="#">Create Your Plan</a>
</div>
<!-- Rainwater Harvesting Calculator -->
<div class="tool">
<h3>Rainwater Harvesting Calculator</h3>
<p>Calculate how much water you can collect from rainfall based on the size of your catchment area. Plan an efficient rainwater harvesting system for your home or farm.</p>
<a href="#">Use the Rainwater Calculator</a>
</div>
<!-- Drought Risk Assessment Tool -->
<div class="tool">
<h3>Drought Risk Assessment</h3>
<p>Evaluate the risk of drought in your region and get tips on how to prepare. Understand the water usage patterns in high-risk areas and adopt best practices.</p>
<a href="#">Assess Drought Risk</a>
</div>
<!-- Water Efficiency Audit -->
<div class="tool">
<h3>Water Efficiency Audit</h3>
<p>Audit your household or workplace's water usage. Identify high water consumption areas and get personalized recommendations for reducing waste.</p>
<a href="#">Start the Audit</a>
</div>
</div>
</section>
<!-- Videos Section -->
<section id="videos">
<h2>Educational Videos</h2>
<div class="video-gallery">
<div class="video">
<h3>Water Conservation Tips for Homeowners</h3>
<p>Learn how to save water at home with practical tips and easy-to-implement strategies.</p>
</div>
<div class="video">
<h3>Smart Irrigation Systems Explained</h3>
<p>Discover how modern irrigation systems are revolutionizing water conservation in agriculture.</p>
</div>
</div>
</section>
<!-- Community Forum Section -->
<section id="forum">
<h2>Community Forum</h2>
<p>Welcome to the Community Forum! Connect with fellow users, share your thoughts, and learn from experts on how to conserve water effectively.</p>
<!-- Forum Posts Section -->
<div class="forum-container">
<div class="forum-post">
<h3>Discuss Water-Saving Techniques</h3>
<p>Share your experiences and tips for reducing water consumption in everyday life.</p>
<a href="#">Join the Discussion</a>
</div>
<div class="forum-post">
<h3>Ask the Experts</h3>
<p>Have a question about water conservation? Ask our panel of experts for advice and guidance.</p>
<a href="#">Ask a Question</a>
</div>
<div class="forum-post">
<h3>Share Success Stories</h3>
<p>Have you implemented a water-saving project? Share your story and inspire others to do the same.</p>
<a href="#">Share Your Story</a>
</div>
<div class="forum-post">
<h3>Latest Technologies for Water Conservation</h3>
<p>Stay updated on the latest technologies and innovations in water conservation.</p>
<a href="#">Explore Technology</a>
</div>
</div>
<!-- Add a Comment Section -->
<div class="forum-section">
<h3>Add a Comment</h3>
<p>Contribute to the discussion by sharing your thoughts and feedback.</p>
<form onsubmit="addComment(event)">
<textarea id="commentInput" rows="4" placeholder="Write your comment..."></textarea>
<button type="submit">Post Comment</button>
</form>
<div id="commentsSection">
<!-- Comments will be added here dynamically -->
</div>
</div>
</section>
<!-- Contact Us Section -->
<section id="contact">
<h2>Contact Us</h2>
<p>If you have any questions, feedback, or need further information, feel free to reach out to us. We are here to assist you!</p>
<!-- Contact Information -->
<div class="contact-info">
<div class="contact-item">
<h3>Email Us</h3>
<p><i class="fa fa-envelope"></i> support@watersaver.com</p>
</div>
<div class="contact-item">
<h3>Call Us</h3>
<p><i class="fa fa-phone"></i> +1-800-123-4567</p>
</div>
<div class="contact-item">
<h3>Visit Us</h3>
<p><i class="fa fa-map-marker"></i> 123 Water Conservation Lane, Eco City, EC 56789</p>
</div>
</div>
<!-- Contact Form -->
<div class="contact-form-container">
<h3>Send Us a Message</h3>
<form id="contactForm">
<input type="text" id="name" placeholder="Your Name" required>
<input type="email" id="email" placeholder="Your Email" required>
<input type="text" id="subject" placeholder="Subject" required>
<textarea id="message" rows="5" placeholder="Your Message" required></textarea>
<button type="submit">Submit</button>
</form>
</div>
<!-- Social Media Links -->
<div class="social-media">
<h3>Connect with Us</h3>
<a href="#"><i class="fa fa-facebook"></i> Facebook</a>
<a href="#"><i class="fa fa-twitter"></i> Twitter</a>
<a href="#"><i class="fa fa-linkedin"></i> LinkedIn</a>
<a href="#"><i class="fa fa-instagram"></i> Instagram</a>
</div>
<!-- FAQ Section -->
<div class="faq">
<h3>Frequently Asked Questions</h3>
<div class="faq-item">
<h4>What are your customer service hours?</h4>
<p>Our customer service team is available from 9 AM to 6 PM, Monday through Friday.</p>
</div>
<div class="faq-item">
<h4>How can I learn more about water-saving technologies?</h4>
<p>You can visit our <a href="#">resources page</a> for guides, articles, and videos on water conservation techniques.</p>
</div>
</div>
</section>
<!-- Water Usage Calculator Modal -->
<div id="waterUsageModal" class="modal">
<div class="modal-content">
<span class="close-btn">×</span>
<h2>Water Usage Calculator</h2>
<form id="waterCalculator">
<label for="shower">Shower (liters):</label>
<input type="number" id="shower" placeholder="Enter liters used for showering" min="0">
<label for="laundry">Laundry (liters):</label>
<input type="number" id="laundry" placeholder="Enter liters used for laundry" min="0">
<label for="dishwashing">Dishwashing (liters):</label>
<input type="number" id="dishwashing" placeholder="Enter liters used for dishwashing" min="0">
<label for="toilet">Toilet Flushes (liters):</label>
<input type="number" id="toilet" placeholder="Enter liters used for toilet flushes" min="0">
<label for="garden">Gardening (liters):</label>
<input type="number" id="garden" placeholder="Enter liters used for gardening" min="0">
<button type="button" onclick="calculateWaterUsage()">Calculate</button>
</form>
<div id="result">
<h4>Total Water Usage: <span id="totalUsage">0</span> liters</h4>
<h4>Potential Savings (10%): <span id="potentialSavings">0</span> liters</h4>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer>
<p>© 2024 Water Conservation Platform. All Rights Reserved.</p>
</footer>
</body>
</html>