Giter Site home page Giter Site logo

to-do-list's Introduction

To Do list

A simple HTML list of To Do tasks. This simple web page will be built using webpack and served by a webpack dev server.

screenshot

Built With

  • HTML5
  • CSS3
  • JavaScript
  • Webpack
  • Bootstrap

Live Demo

Live Demo Link

Getting Started

To get a local copy up and running follow these simple example steps.

Setup and Install

  • Clone this repository using the link above (click on the 'code' button)
  • Open a terminal and cd to the cloned repository
  • run npm install
  • runnpm run start to open a live server in your preferred browser

Test

  • run npm test

Usage

  • Add a task

Deployment

  • Deployed on GitHub Pages

Author

๐Ÿ‘ค Rocio Martinez

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

  • Microverse

๐Ÿ“ License

This project is MIT licensed.

to-do-list's People

Contributors

rocio01 avatar meltrust avatar alexhamn avatar

Stargazers

Mustafa Abbas avatar German Renato Cobian avatar Peter Ajayi avatar  avatar

Watchers

James Cloos avatar  avatar

to-do-list's Issues

Conditionals

I used negative conditionals.
` if (deleteIcon !== null) {
........}

if (clear !== null) {
.......}`

Code review coding partner

Great work Rocio! ๐Ÿ‘

There are some things that could be improved:

window.addEventListener('DOMContentLoaded', displayTodos(toDosArr));

Here, you could target the document instead of the whole window.

To-Do-list/src/load.js

Lines 41 to 47 in b139207

spans.forEach((span) => {
span.addEventListener('click', (e) => {
const newSpan = document.createElement('span');
const editForm = document.createElement('form');
editForm.className = 'edit-form';
const inputEdit = document.createElement('input');
newSpan.appendChild(editForm);

Also here you could align all your variable declarations together on the top of the block.

Happy coding! ๐Ÿ’ฏ

Variables

I have some variables without a strong name
editForm.addEventListener('submit', function () { const newDescription = inputEdit.value; const p = this.parentElement.previousElementSibling.previousElementSibling; const indexC = p.previousElementSibling.previousElementSibling.id; const todo = toDosArr.find((x) => (x.index) === Math.floor(indexC)); ToDo.changeDescription(todo, newDescription); updateTodosLs(todo); });

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.