GithubHelp home page GithubHelp logo

to-dos's Introduction

To-Dos

My first JavaScript project - To-Do's .

About

This is a Todo List project in javascript based upon the course: Practical JS by Gorden Zhu. The Code here has various extended features from the one in the course like 'empty input handler' and each function is enclosed in an object.

Description

The todos.js is the scripting file called in the index.html and have three objects :

1. todoList:

Contains an array of object for todo items having two properties: text(string) and completed(boolean). It also contains all the functions on the todo item array like adding, deleteing, changing text of existing todo, toggle completed property and toggle all.

2. handler:

It is an object having all the functions called by the events like button clicking. It also has the handlers for generating alert when empty or unaccepted input is given.

3. view:

The functions of this object are used by handler for creating and updating the html which is viewed to the user. The methods are for displaying todo items and for creating a delete and toggle button for each item seperatly.

NOTE:

TOGGLE AND DELETE CAN BE DONE EITHER VIA SEPERATE BUTTONS FOR EACH ITEM OR BY SPECIFING INDEX IN THE INPUT FIELD AND THE INDEXING IS DONE FROM 0!

Acceptable Changes (PRs)

  1. Most important changes are welcomed in UI(Obviously!).
  2. Any improvement in JS file for adding or improving thing are also appreciated.

Also, If you have an idea regarding any improvement you can create an issue so that other interested ones can work open it.

to-dos's People

Contributors

blacksag avatar ranndev avatar adhyanagpal avatar gasts avatar somecatdad avatar pebutler3 avatar yogitakhtr597 avatar

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.