Skip to content

rustydcoder/todo-list-js

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

TodoList Boilerplate

Simple and minimal todo-list boilerplate for that can be integrated into any codebase.

Getting Started

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>To Do List</title>
  </head>
  <body>

      <h1>Todo List</h1>

      <input type="text" id="do" />
      <button id="click">Add</button>
      <div id="list"></div>

    <script src="index.js"></script>
  </body>
</html>

Note: It is recommended to use an ID because of it's uniqueness.

Javascript

// The input, the button, and div to be populated
const todo = new Todo('#do', '#click', '#list')
// Call init to initialize todo
todo.init()

Adding custom emptyState image

todo.emptyState(path)

About

TODO list web app made with vanilla javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published