Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notion Tracker #2

Open
OLLIEOLSSONW opened this issue Aug 28, 2023 · 0 comments
Open

Notion Tracker #2

OLLIEOLSSONW opened this issue Aug 28, 2023 · 0 comments

Comments

@OLLIEOLSSONW
Copy link

<style> table { border-collapse: collapse; width: 100%; max-width: 600px; margin: 0 auto; }

th, td {
border: 1px solid #ccc;
padding: 8px;
text-align: center;
}

th {
background-color: #f2f2f2;
}

.key {
display: flex;
justify-content: space-between;
max-width: 300px;
margin: 20px auto;
}

.emotion {
display: flex;
align-items: center;
}

.color-box {
width: 20px;
height: 20px;
margin-right: 5px;
}

.mood-box {
cursor: pointer;
}
</style>

Mood Tracker

Happy
Excited
Calm
Content
Sad
Angry
Neutral
Confused
Day 1 Day 2
January
February
<script> const moodBoxes = document.querySelectorAll('.mood-box'); const emotions = ['#FF5733', '#FFC300', '#4CAF50', '#3498DB', '#9B59B6', '#E74C3C', '#95A5A6', '#2C3E50']; moodBoxes.forEach(box => { box.addEventListener('click', () => { const selectedColor = prompt('Select a color for your mood:', emotions.join(', ')); if (selectedColor && emotions.includes(selectedColor)) { box.style.backgroundColor = selectedColor; } }); }); </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant