-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtime.js
More file actions
25 lines (22 loc) · 927 Bytes
/
time.js
File metadata and controls
25 lines (22 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const activityDiv = document.getElementById('activity');
const getActivityButton = document.getElementById('getActivity');
const resetButton = document.getElementById('reset');
const activities = [
"Watch a funny cat video! 🐱",
"Try to draw your favorite cartoon character! 🎨",
"Take a quick dance break! 💃",
"Make a cute paper airplane! ✈️",
"Write a silly poem! 📝",
"Explore a new cute animal meme! 🦙",
"Have a mini snack break with your favorite treat! 🍪",
"Play a short, silly game! 🎮",
"Try to juggle some fruits! 🍌🍏",
"Give yourself a compliment! 🌟"
];
getActivityButton.addEventListener('click', () => {
const randomIndex = Math.floor(Math.random() * activities.length);
activityDiv.textContent = activities[randomIndex];
});
resetButton.addEventListener('click', () => {
activityDiv.textContent = "";
});