-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (60 loc) · 2.19 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
<title>TODO-List</title>
</head>
<body>
<style type="text/css">
body{
background-color: rgb(112,128,144);
color: black;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<div class="container">
<h1 class="display-6">Current Time is: <span id="time"></span></h1>
<hr class="my-4">
</div>
<div class="container">
<h2 class="text-center">TODOs List</h2>
<div class="mb-3">
<label for="title" class="form-label">Title</label>
<input type="text" class="form-control" id="title" aria-describedby="emailHelp">
<div id="emailHelp" class="form-text" style="color: black;">Add the list for today's Work</div>
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea class="form-control" id="description" rows="3"></textarea>
</div>
<button type="submit" class="btn btn-primary" id="add">Add to List</button>
<button type="submit" class="btn btn-primary" id="clear" onclick="clearStorage()">Clear List</button>
<div id="items">
<h2 class="my-4">Your Items</h2>
<table class="table">
<thead>
<tr>
<th scope="col">SNo.</th>
<th scope="col">Item Title</th>
<th scope="col">Item Description</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody id="tbody">
<tr>
<th scope="row">1</th>
<td>Get Some Coffee</td>
<td>I need coffee</td>
<td><button class="btn btn-sm btn-primary">Delete</button></td>
</tr>
</tbody>
</table>
</div>
</div>
<script type="text/javascript" src="TODO-List.js"></script>
</body>
</html>