Colorful Mood Tracker App
About this app
Track and visualize your daily mood with fun colors and animations. Join the colorful journey of self-discovery!
Colorful Mood Tracker App Colorful Mood Tracker Select your mood and add it to the tracking! Select your mood Happy Sad Angry Excited Neutral Tired Submit Mood
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>Colorful Mood Tracker App</title>
<meta name="description" content="Track and visualize your daily mood with fun colors and animations. Join the colorful journey of self-discovery!">
<meta name="keywords" content="mood tracker, colorful app, mental health, self-discovery, interactive tool">
<!-- Libraries -->
<!-- jQuery (3.6.0) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<!-- Bootstrap CSS (5.3.3) -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<!-- Bootstrap JS (5.3.3) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<!-- Font Awesome (6.6.0) -->
<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 moods = ['😊', '😞', '😡', '🥳', '😐', '😴'];
const colors = ['#FAD02E', '#FF6F61', '#D83D3F', '#59C4EC', '#A23A4D', '#4B7BE5'];
const moodInput = document.getElementById("mood-input");
const moodDisplay = document.getElementById("mood-display");
const moodHistory = document.getElementById("mood-history");
const btnSubmit = document.getElementById("submit-btn");
btnSubmit.addEventListener('click', function() {
const selectedMood = moodInput.value;
const moodIndex = moods.indexOf(selectedMood);
if(moodIndex !== -1) {
const moodEntry = document.createElement("div");
moodEntry.classList.add("mood-entry");
moodEntry.style.backgroundColor = colors[moodIndex];
moodEntry.innerHTML = `<span>${selectedMood}</span>`;
moodHistory.appendChild(moodEntry);
moodDisplay.textContent = `You are feeling: ${selectedMood}`;
}
moodInput.value = "";
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #ff7e5f, #feb47b);
color: white;
}
#main-container {
text-align: center;
margin-top: 50px;
}
select {
width: 200px;
height: 40px;
border: none;
border-radius: 5px;
padding: 5px;
}
button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
border-radius: 5px;
}
.mood-entry {
display: inline-block;
border-radius: 50%;
width: 50px;
height: 50px;
line-height: 50px;
font-size: 24px;
margin: 10px;
transition: transform 0.3s;
}
.mood-entry:hover {
transform: scale(1.1);
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Colorful Mood Tracker</h1>
<p>Select your mood and add it to the tracking!</p>
<select id="mood-input">
<option value="" disabled selected>Select your mood</option>
<option value="😊">Happy</option>
<option value="😞">Sad</option>
<option value="😡">Angry</option>
<option value="🥳">Excited</option>
<option value="😐">Neutral</option>
<option value="😴">Tired</option>
</select>
<button id="submit-btn">Submit Mood</button>
<h2 id="mood-display"></h2>
<div id="mood-history" class="mt-3"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!