Calculator Tools Calculator Tools
Create

Poop Tracker App

Jan 3, 2024

About this app

Keep track of your bathroom habits with this fun and colorful Poop Tracker app.

Poop Tracker App 💩 Poop Tracker Small Medium Big Add Entry

Related apps

Put this on your site

Source

                    <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Poop Tracker App</title>
<meta name="description" content="Keep track of your bathroom habits with this fun and colorful Poop Tracker app.">
<meta name="keywords" content="poop tracker, health, habits, fun app, tracker">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Bangers', cursive;
background: #FFD3B6;
color: #333;
margin: 0;
padding: 20px;
}
.container {
max-width: 600px;
margin: 0 auto;
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #FF6F61;
font-size: 3em;
margin-bottom: 0.5em;
}
.entry-list {
list-style: none;
padding-left: 0;
}
.entry-list li {
border-bottom: 1px solid #eee;
padding: 10px 0;
display: flex;
align-items: center;
}
.entry-list li:last-child {
border-bottom: none;
}
.radios input {
margin-right: 10px;
}
.btn {
background: #FF6F61;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 1.2em;
display: block;
width: 100%;
margin-top: 20px;
}
.btn:hover {
background: #e55a50;
}
.add-btn, .delete-btn {
font-size: 1.5em;
cursor: pointer;
}
.add-btn {
color: #4a90e2;
}
.delete-btn {
color: #e55a50;
}
</style>
</head>
<body>
<div id="app" class="container">
<h1>💩 Poop Tracker</h1>
<div class="radios">
<label><input type="radio" name="size" value="Small"> Small</label>
<label><input type="radio" name="size" value="Medium"> Medium</label>
<label><input type="radio" name="size" value="Big"> Big</label>
</div>
<button class="btn" id="addEntry">Add Entry</button>
<ul class="entry-list" id="entries">
<!-- Entries will appear here -->
</ul>
</div>
<script>
$(document).ready(function() {
function addEntry(size) {
let date = new Date().toLocaleString();
$('#entries').prepend('<li>' + date + ' - ' + size + '<span class="delete-btn"> 🗑️</span></li>');
}

$('#addEntry').click(function() {
let size = $('input[name="size"]:checked').val();
if (size) {
addEntry(size);
} else {
alert("Please select a size!");
}
});

$('#entries').on('click', '.delete-btn', function() {
$(this).parent().remove();
});
});
</script>
</body>
</html>