Real Tally Counter App
About this app
A realistic tally counter app to keep track of your tallies with style.
Real Tally Counter App 🎉 Real Tally Counter 🎉 | 0 | ➕ Increment ➖ Decrement 🔄 Reset
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>Real Tally Counter App</title>
<meta name="description" content="A realistic tally counter app to keep track of your tallies with style.">
<meta name="keywords" content="tally counter, tally, counting app, fun app, user-friendly">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap" rel="stylesheet">
<script type="text/javascript">
try {
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
let count = 0;
const countDisplay = document.getElementById("countDisplay");
const incrementBtn = document.getElementById("incrementBtn");
const decrementBtn = document.getElementById("decrementBtn");
const resetBtn = document.getElementById("resetBtn");
incrementBtn.addEventListener("click", function() {
count++;
updateDisplay();
});
decrementBtn.addEventListener("click", function() {
count--;
updateDisplay();
});
resetBtn.addEventListener("click", function() {
count = 0;
updateDisplay();
});
function updateDisplay() {
countDisplay.innerText = "| " + count + " |";
countDisplay.style.color = count > 0 ? "#28a745" : count < 0 ? "#dc3545" : "black";
}
// Load saved count from localStorage if available
loadLocal();
function saveLocal() {
localStorage.setItem('tallyCount', count);
}
function loadLocal() {
const savedCount = localStorage.getItem('tallyCount');
if (savedCount) {
count = parseInt(savedCount);
updateDisplay();
}
}
window.addEventListener('beforeunload', saveLocal);
});
} catch (error) {
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background: linear-gradient(to bottom right, #574b90, #3e1a47);
color: white;
font-family: 'Roboto', sans-serif;
text-align: center;
padding: 50px;
}
#countDisplay {
font-size: 3rem;
margin: 20px 0;
font-weight: bold;
transition: color 0.3s;
border: 5px dashed white;
padding: 10px;
background-color: rgba(255, 255, 255, 0.1);
display: inline-block;
}
button {
margin: 10px;
padding: 15px 25px;
font-size: 1.5rem;
border: none;
border-radius: 5px;
cursor: pointer;
}
#incrementBtn {
background-color: #28a745;
color: white;
transition: background-color 0.3s;
}
#incrementBtn:hover {
background-color: #218838;
}
#decrementBtn {
background-color: #dc3545;
color: white;
transition: background-color 0.3s;
}
#decrementBtn:hover {
background-color: #c82333;
}
#resetBtn {
background-color: #007bff;
color: white;
transition: background-color 0.3s;
}
#resetBtn:hover {
background-color: #0069d9;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>🎉 Real Tally Counter 🎉</h1>
<div id="countDisplay">| 0 |</div>
<div>
<button id="incrementBtn">➕ Increment</button>
<button id="decrementBtn">➖ Decrement</button>
<button id="resetBtn">🔄 Reset</button>
</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!