EcoWaste: Real-Time Waste Collection Service
About this app
Join EcoWaste, your real-time solution for E-waste, plastics, and metal collection. Contact us and turn your waste into cash!
EcoWaste: Real-Time Waste Collection Service EcoWaste Collection Service Collect your electronic waste, plastics, and metals for recycling. Fill in the form below to let us know what you have! Type of Waste: Quantity (in kg): Add Waste Your Waste Collection: Contact Us Your Name: Email: Message: Submit
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>EcoWaste: Real-Time Waste Collection Service</title>
<meta name="description" content="Join EcoWaste, your real-time solution for E-waste, plastics, and metal collection. Contact us and turn your waste into cash!">
<meta name="keywords" content="waste collection, recycling, electronic waste, e-waste, plastic recycling, metal recycling, eco-friendly service">
<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const form = document.getElementById("waste-form");
const output = document.getElementById("output");
const wasteItems = [];
form.addEventListener("submit", function(e) {
e.preventDefault();
const wasteType = document.getElementById("waste-type").value;
const quantity = document.getElementById("quantity").value;
if (wasteType && quantity) {
wasteItems.push({ type: wasteType, quantity: quantity });
displayWasteItems();
form.reset();
}
});
function displayWasteItems() {
output.innerHTML = '';
wasteItems.forEach((item, index) => {
output.innerHTML += `<li>${item.quantity} kg of ${item.type} <button class="btn btn-danger btn-sm" onclick="removeWaste(${index})"><i class="fa fa-trash"></i></button></li>`;
});
}
window.removeWaste = function(index) {
wasteItems.splice(index, 1);
displayWasteItems();
}
$('#contactForm').on('submit', function(e) {
e.preventDefault();
alert("Thank you for contacting us! We will get back to you shortly.");
$('#contactForm')[0].reset();
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(135deg, #72c6ef, #c5e4ed);
color: #333;
}
h1 {
color: #2e6da4;
}
.btn-primary {
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-danger {
background-color: #d9534f;
border-color: #d9534f;
}
#main-container {
margin-top: 50px;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
background: white;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>EcoWaste Collection Service</h1>
<p>Collect your electronic waste, plastics, and metals for recycling. Fill in the form below to let us know what you have!</p>
<form id="waste-form">
<div class="mb-3">
<label for="waste-type" class="form-label">Type of Waste:</label>
<input type="text" id="waste-type" class="form-control" placeholder="E-waste, Plastic, Metal" required>
</div>
<div class="mb-3">
<label for="quantity" class="form-label">Quantity (in kg):</label>
<input type="number" id="quantity" class="form-control" required>
</div>
<button type="submit" class="btn btn-primary">Add Waste</button>
</form>
<h3>Your Waste Collection:</h3>
<ul id="output"></ul>
<hr>
<h3>Contact Us</h3>
<form id="contactForm">
<div class="mb-3">
<label for="name" class="form-label">Your Name:</label>
<input type="text" id="name" class="form-control" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email:</label>
<input type="email" id="email" class="form-control" required>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message:</label>
<textarea id="message" class="form-control" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!