Skip to content

Conversation

@AvivYamin
Copy link

I tried to add a "Dates" feature however I didn't manage to do it due to time pressure.
You can notice the code of it in the 12th commit.

…s an action code from a sequence of target and action. each action code has a functional case to handle the wanted actions.
… by the add task function. That's in order to control the targets of the event listeners later on.
…sks object in the respective list(by the targeted button). The code initializes a check to see if there's an existing Tasks object in the local storage, if not it stores the default setting. Each action is stored and placed in the wanted place - element and array wise. I also created a button to load the DOM from the tasks saved in the local storage.
…pplied a condition in my handler that classifies the action and the class of the target, if the target is "task" then the handler executes a function that creates a new input on focus and changes the task's element value and stores it in the local storage.
…te while loop) I am committing the changes to start over
…y the search query. If the query does not matches the task text content than it block its display.
…ist. Once the event(hover over a task element) is triggered it adds an event listener to the document that waits for alt to be pressed and the specified keys. Then it replaces the item's list (removes it from the current one, erase it from the object, and assign it to the new list element and array). Eventually it removes the event listener and defines the task element to null.
… Once a click is triggered on "Load" it receives the data in the API bin, saves it in the local storage and regenerates the DOM. Once update button is clicked it receives the data in the local storage and fetches it to the API for storage. I also played with the CSS for a bit.
…p(the date they were created), a deadline that you choose from a hidden form that displays with an event listener, and you would be able to sort the tasks by their urgency (amount of days left until the deadline). However I could not finish the new feature on time so so I made it a dead code that I'll commit now but I will erase it later on for the final commit. It also ruined the tests for me so I will show the functionality in the video.
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

Successfully merging this pull request may close these issues.

1 participant