-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex1.html
501 lines (441 loc) · 20 KB
/
index1.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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Website</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap" rel="stylesheet">
<style>
* {
font-family: 'Ubuntu', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #222;
color: #fff;
margin: 0;
padding: 0;
}
/* Navigation bar styles */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #111;
padding: 20px;
}
.logo img {
width: 100px;
}
.nav-links {
list-style: none;
display: flex;
}
.nav-links a {
text-decoration: none;
color: #fff;
font-weight: bold;
margin: 0 20px;
transition: color 0.3s;
}
.nav-links a:hover {
color: red;
}
/* Button styles */
button {
padding: 10px 30px;
background-color: black;
border: 2px solid #222;
border-radius: 5px;
box-shadow: 2px 2px 10px #383737;
color: white;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: red;
}
/* About section styles */
.map {
background-image: url("https://e-wfl.netlify.app/assets/MAP-5a29f087.jpg");
background-repeat: no-repeat;
background-size: cover;
padding: 50px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.about {
background-color: #1e1e1e;
width: 35%;
border-radius: 5px;
padding: 50px;
margin-left: 40px;
opacity: 0.8;
}
.about h2 {
font-size: 32px;
font-weight: 300;
color: #fff;
margin-bottom: 20px;
}
.about p {
font-size: 20px;
font-weight: 300;
color: #6e7373;
line-height: 1.5;
}
/* Feature section styles */
.feature-container {
display: flex;
justify-content: space-between;
width: 70%;
margin: 30px auto;
}
.feature {
width: 45%;
background-color: #333;
padding: 30px;
border-radius: 5px;
}
.feature h3 {
font-size: 24px;
font-weight: 600;
color: #fff;
}
/* Input styles */
label {
display: block;
margin-bottom: 10px;
font-weight: 600;
color: #fff;
}
input[type="text"] {
width: 100%;
padding: 10px;
border: 2px solid #444;
border-radius: 5px;
background-color: #333;
color: #fff;
}
/* Search button styles */
.search-button {
margin-top: 20px;
background-color: red;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s;
}
.search-button:hover {
background-color: #ff5555;
}
.login-button {
margin-right: 20px; /* Add margin to create space between the button and navigation links */
}
.login-button button {
background-color: black;
border: 2px solid #222;
border-radius: 5px;
box-shadow: 2px 2px 10px #383737;
color: white;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s;
}
.login-button button:hover {
background-color: red;
}
.login-form {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
justify-content: center;
align-items: center;
z-index: 999;
}
.form-container {
background-color: #333;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
text-align: center;
color: #fff;
}
.form-container h2 {
font-size: 24px;
margin-bottom: 20px;
}
.form-container label {
display: block;
margin-bottom: 10px;
}
.form-container input[type="text"],
.form-container input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 2px solid #444;
border-radius: 5px;
background-color: #333;
color: #fff;
}
.form-container button {
background-color: black;
border: 2px solid #222;
border-radius: 5px;
padding: 10px 20px;
color: white;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s;
}
.form-container button:hover {
background-color: red;
}
footer {
text-align: center;
height:5%;
padding: 10px;
background-color: #111;
}
.facility-results{
background-color:#5a5a5f;
border: 2px solid #5a5a5f;
border-radius: 5px;
box-shadow:2px 2px 10px #20d820;
margin-top: 20px;
padding: 20px;
}
</style>
</head>
<body>
<div class="navbar">
<div class="logo">
<img src="1-removebg-preview.png" alt="Logo">
</div>
<ul class="nav-links">
<li><a href="index1.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="educate.html">Education</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div class="map">
<img src="Postergif-590a5c8d.gif" alt="Map Image" style="opacity:0.8; border:1px solid black; border-radius:5px;">
<section class="about">
<h2>Search E-waste facilities</h2>
<h3>Fill up the Location and get the nearest E-waste facilities</h3>
<div class="for">
<div class="form">
<label for="city">City/district</label>
<input type="text" id="city" list="cityList" placeholder="Select City/district" value="">
<datalist id="cityList">
<!-- City suggestions will be added dynamically using JavaScript -->
</datalist>
</div>
<div class="form">
<label for="state">State</label>
<input type="text" id="state" list="stateList" placeholder="Select State" value="">
<datalist id="stateList">
<!-- State suggestions will be added dynamically using JavaScript -->
</datalist>
</div>
</div>
<button class="search-button" onclick="searchFacilities()">Search</button>
<div id="facilityList" style="display: none;">
<div class="facility-results" style="background-color: #5a5a5f;">
<h2>Nearest E-waste Facilities</h2>
<ul id="facilityResults">
<!-- Results will be displayed here -->
</ul>
</div>
</div>
</section>
</div>
<div class="feature-container">
<div class="feature">
<h3>What is e-waste?
</h3>
<p>Computers and peripherals: Desktop computers, laptops, monitors, keyboards, mice, and printers.
<br>Consumer electronics: Televisions, DVD players, game consoles, cameras, and audio equipment.
<br>Communication devices: Mobile phones, smartphones, and landline phones.
Home appliances: Refrigerators, washing machines, microwave ovens, and air conditioners.
</p>
</div>
<div class="feature">
<h3>Health Risks
</h3>
<p>Human Exposure: Workers involved in the informal recycling of e-waste are often exposed to toxic substances, leading to various health problems such as respiratory issues, skin ailments, and long-term conditions like cancer and developmental disorders.
</p>
</div>
</div>
<div class="feature-container">
<div class="feature">
<h3>Benefits of e-waste facility locator</h3>
<p>An e-waste facility locator is a tool or service that helps individuals and businesses find locations where they can properly dispose of or recycle electronic waste (e-waste)<br>
Such tools provide several benefits, both for the environment and society as a whole Public Health Benefits,Convenience and Accessibility,Regulatory Compliance.<br>
</p>
</div>
<div class="feature">
<h3>Working</h3>
<p>The software of an e-waste facility locator works by providing users with a digital platform or application that helps them find nearby locations where they can properly dispose of or recycle electronic waste (e-waste).</p>
</div>
</div>
<div class="login-form" id="loginForm">
<div class="form-container">
<h2>Login/Signup</h2>
<form>
<!-- Add your form fields (e.g., username, password, etc.) here -->
<!-- Example: -->
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<!-- Add more fields as needed -->
<button type="submit">Login/Signup</button>
</form>
</div>
</div>
<script>
const facilities = [
{ city: "Thane", state: "Maharashtra", address: "WE-The Recycling Company, H. No. 2212, Sr. No. 9-1 N, Behind Essar Petrol Pump, Village Borpada, Tal. Bhiwandi, Dist. Thane" },
{ city: "Delhi", state: "Delhi", address: "M/s Fozia Traders, Khasra No.13/1, Saboli Mandoli Industrial Area, Delhi-110093" },
{ city: "Bangalore", state: "Karnataka", address: "M/s. Sriram Eco Raksha Computer Services Pvt. Ltd. No. B-29, KSSIDC Indl. Estate, Bommasandra, Hosur Road, Anekal Taluk, Bangalore – 560 099" },
{ city: "Chennai", state: "Tamil Nadu", address: "M/s. Tritech Systems, No.165/3, Porur, Chennai- 116" },
{ city: "Hoogly", state: "West Bengal", address: "M/s J.S. Pigments Pvt. ltd, Vill.+ P.O.-Jarua, P.S.- Polba, Hoogly-712138" },
{ city: "Gurugram", state: "Haryana", address: "M/s. Nirvana Recycling Pvt. Ltd., Plot No. D-6, Udyog, Vihar, Phase-VI, Sector-37, Gurugram" },
{ city: "Pune", state: "Maharashtra", address: "Hi-Tech Recycling (I) Pvt. Ltd, Property No.193, Gat No. 89, Pune-Satara Road, Shindewadi, Tal: Bhor, Dist:- Pune" },
{ city: "Ahmedabad", state: "Gujarat", address: "M/s. Mangalam ECS Environment Ltd, ECS House, 11-12 Garden View, Opp. Auda Garden, Sindhu Bhawan road, Off SG Highway-Pakwan Circle, Bodakdev, Ahmedabad 380054" },
{ city: "Jaipur", state: "Rajasthan", address: "M/s ETCO E-waste Recycler pvt. ltd, SB-23, Shilp Bari Road, 1415 VKI Area, Jaipur" },
{ city: "Mathura", state: "Uttar Pradesh", address: "M/s K.M. Metals Suppliers 9/270,271,Mathura Agra." },
{ city: "Kochi", state: "Kerala", address: "M/s. Kerala Enviro Infrastructure Ltd, Infrastructure Ltd E Waste Dismantling Facility, Common TSDF project, Inside Fact-CD Campus,Ambalamedu, Kochi 682303" },
{ city: "Gwalior", state: "Madhya Pradesh", address: "M/s. Prometheus Recycling Private Limited, 786/4, 799/1, 800,, Dilawar Ka pura, Susera, Tal: Gird Dist: Gwalior, SIDC" },
{ city: "Guwahati", state: "Assam", address: "M/s. United Global Trust, F-5, Zoo Road, S enduri Ali Path, Guwahati, Dist. Kamrup (M) Assam" },
{ city: "Gurugram", state: "Haryana", address: "M/s. Ecoverva Waste Recycling Private Limited, Plot No. 350 Block C Village Pathreri Ansal Pioneer Industrial Park, Distt. Gurgaon" },
{ city: "Haridwar", state: "Uttarakhand", address: "M/s Bharat Oil & Waste Management ltd. Mauja Mukimpur, Laksar, Haridwar" },
{ city: "Indore", state: "Madhya Pradesh", address: "M/s. Unique Eco Recycle, Plot No. 26, Industrial Area, Palda, Indore (Madhya Pradesh)" },
{ city: "Nagpur", state: "Maharashtra", address: "ECO RESET PRIVATE LIMITED PLOT NO. 19/1, MOUZA BHOWARI, KAMPTEE, NAGPUR,MAHARASHTRA - 441001" },
{ city: "Rajkot", state: "Gujarat", address: "M/s. Galaxy Recycling, Sr. No. 36/P1, P2, 37/P2, 38/P2, Plot No. 52 &53, Near Tirth Agro. Pvt. Ltd., At: Bharudi, Tal: Gondal, Rajkot" },
{ city: "Visakhapatnam", state: "Andhra Pradesh", address: "M/s. Green Waves Environmental Solution, Sy. No. 43/1, Mindi (V), Gajuwaka (M), Visakhapatnam District." },
{ city: "Raipur", state: "Chhattisgarh", address: "M/s. Star E-Processors, Village-Baktara, P.O.- Godi, Tehsil-Arung, District- Raipur, Chhattisgarh" },
{ city: "Goa", state: "Goa", address: "M/s. Egnus Ewaste Solution Private Limited., Plot No.31, Village: Motwan, Tal: Ankleshwar, Dist.: Bharuch- 393020"},
{ city: "Panipat", state: "Haryana", address: "M/s. Exigo Recycling (P) Ltd., Barsat Road, Panipat" },
{ city: "Solan", state: "Himachal Pradesh", address: "M/s. Shivalik Solid Waste Management Ltd., (Unit –II), Village-Shabowal, Tehsil Nalagarh, District-Solan HP" },
{ city: "Gangyal", state: "Jammu and Kashmir", address: "M/s. VRG Groups, Gangyal" },
{ city: "Ranchi", state: "Jharkhand", address: "M/s. Meliorate Lubes Pvt Ltd, Plot No. 606/A, Ward No. 4/34, Vikas Nagar, hesal Piska More, Ranchi Jharkhand - 834005" },
{ city: "Khurda", state: "Orissa", address: "M/s. Sani Clean (P) Ltd., Plot No. 802/947, at- Tangiapada, Niala, Dist-Khurda" },
{ city: "Ludhiana", state: "Punjab", address: "M/s Spreco Recycling, D-45, Industrial Area, Focal Point, Raikot, District Ludhiana." },
{ city: "Alwar", state: "Rajasthan", address: "M/s. H.M.E-waste Management G1-226, RIICO Ind.Area, Kehrani Bhiwadi (Extn.) Tijara Distt-Alwar" }
// Add more facilities in India here
];
function searchFacilities() {
const cityInput = document.getElementById("city").value.trim();
const stateInput = document.getElementById("state").value.trim();
const facilityResults = document.getElementById("facilityResults");
const facilityList = document.getElementById("facilityList");
// Clear previous results
facilityResults.innerHTML = "";
// Filter facilities based on user input
const filteredFacilities = facilities.filter(facility => {
return (
facility.city.toLowerCase() === cityInput.toLowerCase() ||
facility.state.toLowerCase() === stateInput.toLowerCase()
);
});
if (filteredFacilities.length > 0) {
// Display the list of facilities
filteredFacilities.forEach(facility => {
const listItem = document.createElement("li");
listItem.innerHTML = `City: ${facility.city}, State: ${facility.state}, Address: <a href="https://www.google.com/maps/search/${encodeURIComponent(facility.address)}" target="_blank" style="color:#3afe63" >${facility.address}</a>`;
facilityResults.appendChild(listItem);
});
facilityList.style.display = "block";
} else {
// No facilities found
const noResultsMessage = document.createElement("p");
noResultsMessage.textContent = "No facilities found for the provided city/state.";
facilityResults.appendChild(noResultsMessage);
facilityList.style.display = "block";
}
}
document.addEventListener("DOMContentLoaded", function () {
const loginSignupButton = document.getElementById("loginSignupButton");
const loginForm = document.getElementById("loginForm");
loginSignupButton.addEventListener("click", function () {
loginForm.style.display = "block";
});
// Add logic to close the form when a user submits it or clicks outside it
// For example:
// const form = document.querySelector('.form-container');
// document.addEventListener('click', function (e) {
// if (!form.contains(e.target) && loginForm.style.display === 'block') {
// loginForm.style.display = 'none';
// }
// });
});
// Sample city and state data (you can replace this with your own data)
const cities = [
"Thane", "Delhi", "Bangalore", "Chennai", "Hoogly",
"Gurugram", "Pune", "Ahmedabad", "Jaipur", "Mathura",
"Kochi", "Gwalior", "Guwahati", "Gurugram", "Haridwar",
"Indore", "Nagpur", "Rajkot", "Visakhapatnam", "Raipur",
"Goa", "Panipat", "Solan", "Gangyal", "Ranchi",
"Khurda", "Ludhiana", "Alwar"
];
const states = [
"Maharashtra", "Delhi", "Karnataka", "Tamil Nadu", "West Bengal",
"Haryana", "Maharashtra", "Gujarat", "Rajasthan", "Uttar Pradesh",
"Kerala", "Madhya Pradesh", "Assam", "Haryana", "Uttarakhand",
"Madhya Pradesh", "Maharashtra", "Gujarat", "Andhra Pradesh", "Chhattisgarh",
"Goa", "Haryana", "Himachal Pradesh", "Jammu and Kashmir", "Jharkhand",
"Orissa", "Punjab", "Rajasthan"
];
// Get input elements and datalists
const cityInput = document.getElementById("city");
const stateInput = document.getElementById("state");
const cityDatalist = document.getElementById("cityList");
const stateDatalist = document.getElementById("stateList");
// Function to populate city suggestions in the datalist
function populateCitySuggestions() {
cityDatalist.innerHTML = "";
cities.forEach(city => {
const option = document.createElement("option");
option.value = city;
cityDatalist.appendChild(option);
});
}
// Function to populate state suggestions in the datalist
function populateStateSuggestions() {
stateDatalist.innerHTML = "";
states.forEach(state => {
const option = document.createElement("option");
option.value = state;
stateDatalist.appendChild(option);
});
}
// Event listeners for input fields
cityInput.addEventListener("input", populateCitySuggestions);
stateInput.addEventListener("input", populateStateSuggestions);
// Initial population of suggestions
populateCitySuggestions();
populateStateSuggestions();
</script>
<footer>
<p>© e-स्वच्छता</p>
</footer>
</body>
</html>