Calculator Tools Calculator Tools

Cute and Adorable Trash Can

Oct 30, 2023

About this app

A cute and adorable trash can app that adds a touch of cuteness to your day.

Cute and Adorable Trash Can Click to empty the trash

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>Cute and Adorable Trash Can</title>
<meta name="description" content="A cute and adorable trash can app that adds a touch of cuteness to your day.">
<meta name="keywords" content="cute, adorable, trash can, app">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
document.addEventListener("DOMContentLoaded", function() {
// Add event listener for trash can click
const trashIcon = document.getElementById("trash-icon");
trashIcon.addEventListener("click", function() {
alert("Trash emptied!");
});
});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
background-color: #f7f7f7;
font-family: 'Roboto', sans-serif;
}

.container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.trash-can {
width: 150px;
height: 200px;
background-color: #f2f2f2;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: transform 0.3s ease-in-out;
}

.trash-can:hover {
transform: scale(1.1);
}

.trash-icon {
font-size: 40px;
color: #4CAF50;
}

.trash-text {
font-size: 16px;
text-align: center;
color: #333;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
<div class="trash-can">
<i id="trash-icon" class="fa fa-trash trash-icon"></i>
<div class="trash-text">Click to empty the trash</div>
</div>
</div>
</body>
</html>