Calculator Tools Calculator Tools
Create

4 R's App

Jan 3, 2024

About this app

An app to help you remember and practice the 4 R's: Reduce, Reuse, Recycle, and Rethink.

4 R's App 4 R's App Click on the buttons below to learn more about each R! Reduce Reuse Recycle Rethink

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>4 R's App</title>
<meta name="description" content="An app to help you remember and practice the 4 R's: Reduce, Reuse, Recycle, and Rethink.">
<meta name="keywords" content="4 R's, Reduce, Reuse, Recycle, Rethink">

<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">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Set up event listeners
const reduceBtn = document.getElementById('reduce-btn');
const reuseBtn = document.getElementById('reuse-btn');
const recycleBtn = document.getElementById('recycle-btn');
const rethinkBtn = document.getElementById('rethink-btn');

reduceBtn.addEventListener('click', function() {
alert('Reduce: Use less and minimize waste!');
});

reuseBtn.addEventListener('click', function() {
alert('Reuse: Give items a second life!');
});

recycleBtn.addEventListener('click', function() {
alert('Recycle: Convert waste into new products!');
});

rethinkBtn.addEventListener('click', function() {
alert('Rethink: Challenge your consumption habits!');
});
});

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

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

.container {
text-align: center;
margin-top: 50px;
}

.btn {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>4 R's App</h1>
<p>Click on the buttons below to learn more about each R!</p>

<button id="reduce-btn" class="btn btn-primary">Reduce</button>
<button id="reuse-btn" class="btn btn-success">Reuse</button>
<button id="recycle-btn" class="btn btn-info">Recycle</button>
<button id="rethink-btn" class="btn btn-warning">Rethink</button>
</div>
</body>
</html>