To-Do List
To-Do List
// Array of 200 generic to-do tasks
var todoTasks = [
"Do the laundry",
"Clean the dishes",
"Go to work",
"Buy groceries",
"Take out the trash",
"Exercise",
"Read a book",
"Watch a movie",
"Join the RAF",
"Cook dinner",
"Call a friend",
"Water the plants",
"Invest in crypto",
"Go for a walk",
"Check email",
"Write a letter",
"Invent a pyramid scheme",
"Learn a new skill",
"Organize closet",
"Plan weekend activities",
"Visit a museum",
"Practice meditation",
"Start a cult",
"Attend a meeting",
"Create a grocery list",
"Fix a leaky faucet",
"Go to art school",
"Listen to a podcast",
"Write a to-do list",
"Volunteer for a cause",
"Take a nap",
"Rob a bank",
"Research a topic of interest",
"Visit a library",
"Try a new recipe",
"Write in a journal",
"Fake your death",
"Go to a local event",
"Review monthly expenses",
"Create a budget",
"Play a musical instrument",
"Summon a demon",
"Watch a documentary",
"Learn a new language",
"Visit a farmer's market",
"Explore a new neighborhood",
"Do a random act of kindness",
"Kill god",
"Take a photography walk",
"Try a new workout routine",
"Attend a community event",
"Solve a puzzle",
"Visit a local park",
"Run for presidency",
"Write a thank-you note",
"Plan a day trip",
"Research a historical event",
"Explore a new hobby",
"Break a record",
"Practice gratitude",
"Learn to code",
"Try a new restaurant",
"Create a playlist",
"Read a short story",
"Scam a grandmother",
"Visit a botanical garden",
"Attend a fitness class",
"Explore a nature trail",
"Take a digital detox",
"Plant flowers in the garden",
"Write a short story",
"Start a conspiracy",
"Take a dance class",
"Create a scrapbook",
"Explore a nearby hiking trail",
"Practice deep breathing exercises",
"Plan a picnic",
"Run away",
"Write a list of personal goals",
"Try a new hairstyle",
"Visit a historical site",
"Go stargazing",
"Start a book club",
"Break something",
"Paint a small canvas",
"Explore a nearby town",
"Learn to knit or crochet",
"Take a virtual tour of a museum",
"Write a poem",
"Forge a painting",
"Try a new board game",
"Take a yoga class",
"Visit a local art gallery",
"Cook a meal from a different culture",
"Learn to juggle",
"Solve a murder",
"Create a DIY home decor project",
"Visit a zoo or aquarium",
"Attend a live performance",
"Write a letter to your future self",
"Learn a magic trick",
"Visit a thrift store",
"Break in somewhere",
"Try a new ice cream flavor",
"Write a bucket list",
"Start a morning routine",
"Go for a bike ride",
"Steal from a supermarket",
"Learn basic origami",
"Visit a science museum",
"Attend a community workshop",
"Try a new type of tea",
"Take a personality test",
"Ask for a cigarette",
"Explore a nearby beach",
"Write a thank-you letter to someone important",
"Start a journal of positive affirmations",
"Create a vision board",
"Learn to play a card game",
"Buy some weed",
"Visit a local farmers' market",
"Try a new fitness class",
"Learn basic photography skills",
"Take a nature photography walk",
"Write a letter to a friend",
"Lend money from a friend",
"Explore a nearby waterfall",
"Create a list of favorite quotes",
"Learn to play a musical instrument",
"Attend a local cultural event",
"Take a cooking class",
"Kidnap a political figure",
"Try a new type of exercise",
"Learn basic sign language",
"Create a DIY face mask",
"Visit a botanical garden",
"Write a love letter",
"Try a new type of workout",
"Sell fake viagra",
"Learn to identify constellations",
"Visit a local market",
"Attend a poetry reading",
"Create a budget for the month",
"Sleepwalk",
"Try a new outdoor activity",
"Take a pottery class",
"Explore a nearby lake",
"Write a letter of gratitude",
"Start a new hobby",
"Release all animals from the zoo",
"Visit a nearby forest",
"Try a new type of cuisine",
"Learn to make homemade pasta",
"Create a list of favorite books",
"Visit a local historical landmark",
"Overthrow the government",
"Try a new painting technique",
"Take a photography class",
"Write a letter to your past self",
"Create a DIY bird feeder",
"Learn basic first aid skills",
"Get rich",
"Visit a local nature reserve",
"Try a new type of coffee",
"Explore a nearby mountain",
"Write a letter to a family member",
"Start a daily gratitude journal",
"Take a virtual cooking class",
"Crash the internet",
"Create a list of favorite movies",
"Visit a local wildlife sanctuary",
"Try a new type of dessert",
"Learn to play chess",
"Take a virtual language class",
"Leave this website",
"Stay on this website",
// ... (add more generic tasks)
];
var currentTaskIndex = 0;
// Maximum number of tasks to display
var maxTasks = 3;
// Function to initialize the tasks
function initializeTasks() {
// Clear existing tasks
var taskList = document.getElementById("task-list");
taskList.innerHTML = "";
// Add the initial tasks
for (var i = 0; i = todoTasks.length) {
currentTaskIndex = 0;
// Clear existing tasks
taskList.innerHTML = "";
}
// Get the task from the array
var newTaskText = todoTasks[currentTaskIndex];
// Create a new list item
var li = document.createElement("li");
// Create a span for the task circle
var circleSpan = document.createElement("span");
circleSpan.className = "circle";
circleSpan.onclick = function () {
markTaskAsDone(li);
};
// Create a span for the task text
var textSpan = document.createElement("span");
textSpan.textContent = newTaskText;
// Append spans to the list item
li.appendChild(circleSpan);
li.appendChild(textSpan);
// Append list item to the task list
taskList.appendChild(li);
// Increment the task index
currentTaskIndex++;
}
// Function to mark a task as done using event delegation
document.getElementById("task-list").addEventListener("click", function(event) {
if (event.target.classList.contains("circle")) {
markTaskAsDone(event.target.parentElement);
}
});
// Function to mark a task as done
function markTaskAsDone(taskElement) {
// Add an 'X' to the circle for 1 second
var circleSpan = taskElement.querySelector(".circle");
circleSpan.textContent = 'X';
setTimeout(function () {
// Remove the clicked task and add a new one
taskElement.remove();
addTask();
}, 1000);
}
// Initialize the tasks
initializeTasks();
Rubén Ezequiel Löwy
Under Construction 🦺 🚧🔨
Meanwhile scroll Instagram ( @ruben_lwy ) and check: not todo list
Rubén Ezequiel Löwy
Under Construction 🦺 🚧🔨
Meanwhile scroll Instagram ( @ruben_lwy ) and check: not todo list