-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (58 loc) · 1.51 KB
/
index.html
File metadata and controls
58 lines (58 loc) · 1.51 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ToDo</title>
<style>
.success {
background-color: green;
width: 100%;
color: white;
text-align: center;
margin: 10px;
border-radius: 5px;
padding: 5px;
}
.error {
background-color: red;
width: 100%;
color: white;
text-align: center;
margin: 10px;
border-radius: 5px;
padding: 5px;
}
</style>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous"
/>
</head>
<body>
<div class="container">
<h1 class="text-center">ToDo App</h1>
<form id="main-form">
<input type="text" id="taskToAdd" class="form-control" />
<center>
<button type="submit" id="btn-submit" class="btn btn-danger mt-5">
Add Task
</button>
</center>
</form>
<table class="mt-5 table table-warning table-hover text-center">
<thead class="table-info">
<tr>
<th>Task</th>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody class="task-list"></tbody>
</table>
</div>
<script src="./app.js"></script>
</body>
</html>