GithubHelp home page GithubHelp logo

dom-todo's Introduction

DOM TODO

An unofficial afternoon project.

The goal is to create a TODO tracker using vanilla JavaScript components.

Inside the HTML there is a `todos-component` div. It has everything we need. A `todos-container` to hold the eventual todo items, as well as a `todo-form` which has an input and a submit button.

All of our JavaScript is in `components/todo/index.js`. It contains some code to guide you along this project, which is a bit complicated to setup. Once you are done, I would highly recommend clearing the file and trying to implement it from scratch.

Don’t forget to peek in `components/todo/todo.less` to see what the `done` class does. It is the only CSS needed to complete the MVP.

If you want to add any more styles to the project, don’t forget to run `less-watch-compiler less css index.less` at the root of the project.

Stretch

You will find a button commented in the HTML with the text ‘Clear Completed’. Add the functionality so that when the button is clicked all of the todo’s marked ‘done’ are removed from the list of todos.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.