File tree Expand file tree Collapse file tree 1 file changed +33
-17
lines changed
Expand file tree Collapse file tree 1 file changed +33
-17
lines changed Original file line number Diff line number Diff line change 22< html lang ="en ">
33 < head >
44 < meta charset ="UTF-8 " />
5- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6- < title > Title here</ title >
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
6+ < title > To Do List App</ title >
7+ < link
8+ href ="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css "
9+ rel ="stylesheet "
10+ />
711 < link rel ="stylesheet " href ="style.css " />
12+ < link
13+ rel ="stylesheet "
14+ href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css "
15+ />
816 </ head >
917 < body >
10- < form >
11- < div >
12- < input type ="text " placeholder ="New todo... " />
13- </ div >
14- < div >
15- < button type ="submit "> Add Todo</ button >
16- < button
17- type ="button "
18- id ="remove-all-completed "
19- class ="btn btn-primary mb-3 "
20- >
21- Remove all completed
22- </ button >
23- </ div >
24- </ form >
18+ < div class ="todo-container ">
19+ < form onsubmit ="addNewTodo(event) " id ="todo-form ">
20+ < div >
21+ < input
22+ id ="todoInput "
23+ type ="text "
24+ placeholder ="New todo... "
25+ class ="form-control "
26+ />
27+ </ div >
28+ < div >
29+ < button type ="submit " class ="btn btn-primary mt-2 "> Add Todo</ button >
30+ < button
31+ type ="button "
32+ id ="remove-all-completed "
33+ class ="btn btn-primary mt-2 "
34+ >
35+ Remove all completed
36+ </ button >
37+ </ div >
38+ </ form >
39+ < ul id ="todo-list " class ="list-group mt-3 "> </ ul >
40+ </ div >
2541 < script src ="script.js "> </ script >
2642 </ body >
2743</ html >
You can’t perform that action at this time.
0 commit comments