-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (36 loc) · 1.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!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>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Create a container for the todo list -->
<div id="todo-container">
<!-- todo list header -->
<div id="header">
<h1>To Do List</h1>
</div>
<!-- Create input box -->
<div id="todo-form">
<input type="text" class="input-item" name="input_box" id="input-box" placeholder="Add Task" />
<!-- add button -->
<button id="input-button" onclick="addTask()">Add</button>
</div>
<!-- Task list -->
<h2>Task List</h2>
<ul id="list-container"></ul>
<hr>
<!-- Task list counter -->
<div class="counter-container">
<div id="task-counters">
Completed: <span id="completed-counter">0</span> | Uncompleted:
<span id="uncompleted-counter">0</span>
</div>
</div>
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>