Skip to content

Commit fab3ebd

Browse files
committed
todo list: fixed code
1 parent 4d35480 commit fab3ebd

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

readme.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# Web Design Lab 🚀
1+
# HTML PROJECTS 🚀
22

3-
Welcome to the **Web Design Lab**! 🎉 This repository contains over 20+ 🔥 web projects created using HTML, CSS, and JS. These projects showcase the power of web design and the beauty that can be achieved with these technologies. Each project is designed to be easy to understand and follow, making it perfect for anyone looking to learn more about web design.
3+
Welcome to the **HTML PROJECTS**! 🎉 This repository contains over 22+ 🔥 html projects created using HTML, CSS, and JS. These projects showcase the power of web design and the beauty that can be achieved with these technologies. Each project is designed to be easy to understand and follow, making it perfect for anyone looking to learn more about web design.
44

55
## Project List 📜
66

77
| No.| Project | Source Code | Live Preview |
88
| :-: | ----------------|----------------------------------------------------------------------|-----------------------------------------------------
9-
| 01 | Spourmo Web | [View Code](https://github.com/alsiam/web-projects/tree/main/spourmo-web) | [Preview Site](https://alsiam.github.io/web-projects/spourmo-web)
10-
| 02 | Weather Info | [View Code](https://github.com/alsiam/web-projects/tree/main/weather-info) | [Preview Site](https://alsiam.github.io/web-projects/weather-info)
11-
| 03 | Cuda Portfolio | [View Code](https://github.com/alsiam/web-projects/tree/main/cuda-portfolio) | [Preview Site](https://alsiam.github.io/web-projects/cuda-portfolio)
12-
| 04 | Youtube UI | [View Code](https://github.com/alsiam/web-projects/tree/main/youtube-ui) | [Preview Site](https://alsiam.github.io/web-projects/youtube-ui)
13-
| 05 | Bike Palace | [View Code](https://github.com/alsiam/web-projects/tree/main/bike-palace) | [Preview Site](https://alsiam.github.io/web-projects/bike-palace)
14-
| 06 | Dream Theme | [View Code](https://github.com/alsiam/web-projects/tree/main/dream-theme) | [Preview Site](https://alsiam.github.io/web-projects/dream-theme)
15-
| 07 | Todo List | [View Code](https://github.com/alsiam/web-projects/tree/main/todo-list) | [Preview Site](https://alsiam.github.io/web-projects/todo-list)
16-
| 08 | Simple Blog | [View Code](https://github.com/alsiam/web-projects/tree/main/simple-blog) | [Preview Site](https://alsiam.github.io/web-projects/simple-blog)
17-
| 09 | Facebook Login | [View Code](https://github.com/alsiam/web-projects/tree/main/facebook-login) | [Preview Site](https://alsiam.github.io/web-projects/facebook-login)
18-
| 10 | Calculator | [View Code](https://github.com/alsiam/web-projects/tree/main/calculator) | [Preview Site](https://alsiam.github.io/web-projects/calculator)
19-
| 11 | Hamburger Food | [View Code](https://github.com/alsiam/web-projects/tree/main/hamburger-food) | [Preview Site](https://alsiam.github.io/web-projects/hamburger-food)
20-
| 12 | Bat Ball | [View Code](https://github.com/alsiam/web-projects/tree/main/bat-ball) | [Preview Site](https://alsiam.github.io/web-projects/bat-ball)
21-
| 13 | Navigation Bar | [View Code](https://github.com/alsiam/web-projects/tree/main/navigation-bar) | [Preview Site](https://alsiam.github.io/web-projects/navigation-bar)
22-
| 14 | Football Club | [View Code](https://github.com/alsiam/web-projects/tree/main/football-club) | [Preview Site](https://alsiam.github.io/web-projects/football-club)
23-
| 15 | Fashion Ecommerce| [View Code](https://github.com/alsiam/web-projects/tree/main/fashion-ecommerce)| [Preview Site](https://alsiam.github.io/web-projects/fashion-ecommerce)
24-
| 16 | Jamuna News | [View Code](https://github.com/alsiam/web-projects/tree/main/jamuna-news) | [Preview Site](https://alsiam.github.io/web-projects/jamuna-news)
25-
| 17 | Personal Web | [View Code](https://github.com/alsiam/web-projects/tree/main/personal-website) | [Preview Site](https://alsiam.github.io/web-projects/personal-website)
26-
| 18 | Simple Cart | [View Code](https://github.com/alsiam/web-projects/tree/main/simple-cart) | [Preview Site](https://alsiam.github.io/web-projects/simple-cart)
27-
| 19 | Portfolio | [View Code](https://github.com/alsiam/web-projects/tree/main/portfolio) | [Preview Site](https://alsiam.github.io/web-projects/portfolio)
28-
| 20 | Systematic Page | [View Code](https://github.com/alsiam/web-projects/tree/main/systematic-page) | [Preview Site](https://alsiam.github.io/web-projects/systematic-page)
29-
| 21 | Books Library | [View Code](https://github.com/alsiam/web-projects/tree/main/books-library) | [Preview Site](https://alsiam.github.io/web-projects/books-library)
30-
| 22 | Macbook Cart | [View Code](https://github.com/alsiam/web-projects/tree/main/macbook-cart) | [Preview Site](https://alsiam.github.io/web-projects/macbook-cart)
31-
| 23 | Restaurant Menu | [View Code](https://github.com/alsiam/web-projects/tree/main/restaurnat-menu) | [Preview Site](https://alsiam.github.io/web-projects/restaurnat-menu)
9+
| 01 | Spourmo Web | [View Code](https://github.com/alsiam/html-projects/tree/main/spourmo-web) | [Preview Site](https://alsiam.github.io/html-projects/spourmo-web)
10+
| 02 | Weather Info | [View Code](https://github.com/alsiam/html-projects/tree/main/weather-info) | [Preview Site](https://alsiam.github.io/html-projects/weather-info)
11+
| 03 | Cuda Portfolio | [View Code](https://github.com/alsiam/html-projects/tree/main/cuda-portfolio) | [Preview Site](https://alsiam.github.io/html-projects/cuda-portfolio)
12+
| 04 | Youtube UI | [View Code](https://github.com/alsiam/html-projects/tree/main/youtube-ui) | [Preview Site](https://alsiam.github.io/html-projects/youtube-ui)
13+
| 05 | Bike Palace | [View Code](https://github.com/alsiam/html-projects/tree/main/bike-palace) | [Preview Site](https://alsiam.github.io/html-projects/bike-palace)
14+
| 06 | Dream Theme | [View Code](https://github.com/alsiam/html-projects/tree/main/dream-theme) | [Preview Site](https://alsiam.github.io/html-projects/dream-theme)
15+
| 07 | Todo List | [View Code](https://github.com/alsiam/html-projects/tree/main/todo-list) | [Preview Site](https://alsiam.github.io/html-projects/todo-list)
16+
| 08 | Simple Blog | [View Code](https://github.com/alsiam/html-projects/tree/main/simple-blog) | [Preview Site](https://alsiam.github.io/html-projects/simple-blog)
17+
| 09 | Facebook Login | [View Code](https://github.com/alsiam/html-projects/tree/main/facebook-login) | [Preview Site](https://alsiam.github.io/html-projects/facebook-login)
18+
| 10 | Calculator | [View Code](https://github.com/alsiam/html-projects/tree/main/calculator) | [Preview Site](https://alsiam.github.io/html-projects/calculator)
19+
| 11 | Hamburger Food | [View Code](https://github.com/alsiam/html-projects/tree/main/hamburger-food) | [Preview Site](https://alsiam.github.io/html-projects/hamburger-food)
20+
| 12 | Bat Ball | [View Code](https://github.com/alsiam/html-projects/tree/main/bat-ball) | [Preview Site](https://alsiam.github.io/html-projects/bat-ball)
21+
| 13 | Navigation Bar | [View Code](https://github.com/alsiam/html-projects/tree/main/navigation-bar) | [Preview Site](https://alsiam.github.io/html-projects/navigation-bar)
22+
| 14 | Football Club | [View Code](https://github.com/alsiam/html-projects/tree/main/football-club) | [Preview Site](https://alsiam.github.io/html-projects/football-club)
23+
| 15 | Fashion Ecommerce| [View Code](https://github.com/alsiam/html-projects/tree/main/fashion-ecommerce)| [Preview Site](https://alsiam.github.io/html-projects/fashion-ecommerce)
24+
| 16 | Jamuna News | [View Code](https://github.com/alsiam/html-projects/tree/main/jamuna-news) | [Preview Site](https://alsiam.github.io/html-projects/jamuna-news)
25+
| 17 | Personal Web | [View Code](https://github.com/alsiam/html-projects/tree/main/personal-website) | [Preview Site](https://alsiam.github.io/html-projects/personal-website)
26+
| 18 | Simple Cart | [View Code](https://github.com/alsiam/html-projects/tree/main/simple-cart) | [Preview Site](https://alsiam.github.io/html-projects/simple-cart)
27+
| 19 | Portfolio | [View Code](https://github.com/alsiam/html-projects/tree/main/portfolio) | [Preview Site](https://alsiam.github.io/html-projects/portfolio)
28+
| 20 | Systematic Page | [View Code](https://github.com/alsiam/html-projects/tree/main/systematic-page) | [Preview Site](https://alsiam.github.io/html-projects/systematic-page)
29+
| 21 | Books Library | [View Code](https://github.com/alsiam/html-projects/tree/main/books-library) | [Preview Site](https://alsiam.github.io/html-projects/books-library)
30+
| 22 | Macbook Cart | [View Code](https://github.com/alsiam/html-projects/tree/main/macbook-cart) | [Preview Site](https://alsiam.github.io/html-projects/macbook-cart)
31+
| 23 | Restaurant Menu | [View Code](https://github.com/alsiam/html-projects/tree/main/restaurnat-menu) | [Preview Site](https://alsiam.github.io/html-projects/restaurnat-menu)
3232

3333
## How to Contribute 👨‍💻
3434

@@ -45,10 +45,10 @@ If you have any questions or feedback, feel free to reach out to us. We're alway
4545

4646
## License 📄
4747

48-
This repository is licensed under the [MIT](https://github.com/alsiam/web-projects/blob/main/LICENSE).
48+
This repository is licensed under the [MIT](https://github.com/alsiam/html-projects/blob/main/LICENSE).
4949

50-
[![Build Status](https://img.shields.io/travis/alsiam/REPO.svg?style=flat-square)](https://travis-ci.org/alsiam/web-projects)
51-
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/alsiam/web-projects/blob/master/LICENSE)
50+
[![Build Status](https://img.shields.io/travis/alsiam/REPO.svg?style=flat-square)](https://travis-ci.org/alsiam/html-projects)
51+
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/alsiam/html-projects/blob/master/LICENSE)
5252

5353
## Acknowledgements
5454

todo-list/todo.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const localStorageList = () => {
22
const list = getList();
3-
for (const name in list) {
4-
displayList(name)
3+
for (const taskName in list) {
4+
displayList(taskName)
55
}
66
}
77
const addItem = () => {
@@ -21,10 +21,10 @@ const addItem = () => {
2121
inputField.value = '';
2222

2323
}
24-
const displayList = name => {
24+
const displayList = taskName => {
2525
const ul = document.getElementById('ul-list');
2626
const li = document.createElement('li');
27-
li.innerHTML = name;
27+
li.innerHTML = taskName;
2828

2929
ul.appendChild(li);
3030
}
@@ -39,12 +39,12 @@ const getList = () => {
3939
}
4040
return listObject;
4141
}
42-
const addList = name => {
42+
const addList = taskName => {
4343
const list = getList();
44-
if (list[name]) {
45-
list[name] = list[name] + 1;
44+
if (list[taskName]) {
45+
list[taskName] = list[taskName] + 1;
4646
} else {
47-
list[name] = 1;
47+
list[taskName] = 1;
4848
}
4949
const listStringified = JSON.stringify(list);
5050
localStorage.setItem('list', listStringified);

0 commit comments

Comments
 (0)