forked from BreakTos/To-do-List
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (78 loc) · 2.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!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>
<style>
body {
font-family: Arial, sans-serif;
background-color: #d4e6f1;
text-align: center;
}
h1 {
color: purple;
}
.task-container {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
}
#taskInput, #startTimeInput, #endTimeInput {
margin: 10px;
padding: 10px;
}
#taskInput {
width: 50%;
}
#startTimeInput, #endTimeInput {
width: 20%;
}
#addTaskBtn {
padding: 10px 20px;
background-color: purple;
color: white;
border: none;
cursor: pointer;
margin-left: 10px;
}
#clearAllBtn {
margin-top: 20px;
padding: 10px;
background-color: red;
color: white;
border: none;
cursor: pointer;
}
ul {
list-style-type: none;
}
li {
padding: 10px;
margin: 10px;
background-color: #f0f0f0;
border: 1px solid #ccc;
}
.edit-btn, .done-btn {
margin-left: 10px;
padding: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>Add to To-Do List</h1>
<!-- Task input section with start and end time beside each other -->
<div class="task-container">
<input type="text" id="taskInput" placeholder="Enter a task">
<input type="time" id="startTimeInput" placeholder="Start Time">
<input type="time" id="endTimeInput" placeholder="End Time">
<button id="addTaskBtn" onclick="handleSubmit(event)">Add Task</button>
</div>
<button id="clearAllBtn" onclick="clearAllTasks()">Clear All Tasks</button>
<h2>Current List is:</h2>
<ul id="list"></ul>
<script src="script.js"></script>
</body>
</html>