-
Notifications
You must be signed in to change notification settings - Fork 0
/
todolist.html
68 lines (65 loc) · 2.83 KB
/
todolist.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script type="text/JavaScript" src="todolist.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<!--Loading the jquery file before the BootStrap 4 js file finally made it possible to dismiss alerts-->
<style>
.alert {
display:inline-block;
}
</style>
</head>
<body>
<h1 style="text-align: center; margin-top: 10px; margin-bottom: 10px">ToDo List</h1>
<form name="todolist" onsubmit="return submitTask();" class="form-inline" style="text-align: left">
<div class="container">
<div class="row justify-content-start">
<div class="col-sm"></div>
<div class="col-sm-9">
<label for="task">Task</label>
</div>
<div class="col-sm"></div>
</div>
<div class="row justify-content-start">
<div class="col-sm"></div>
<div class="col-sm-9">
<input type="text" class="form-control" id="task" style="width: inherit">
</div>
<div class="col-sm"></div>
</div>
<div class="row justify-content-start">
<div class="col-sm"></div>
<div class="col-sm-9">
<label for="days" style="margin-top: 15px">Days To Complete</label>
</div>
<div class="col-sm"></div>
</div>
<div class="row justify-content-start">
<div class="col-sm"></div>
<div class="col-sm-9">
<input type="number" class="form-control" id="days" step="1" style="width: inherit">
</div>
<div class="col-sm"></div>
</div>
<div class="row justify-content-start">
<div class="col-sm"></div>
<div class="col-sm-9">
<button type="submit" id="submitButton" class="btn btn-primary" style="margin-top: 15px; margin-bottom: 15px">Submit</button>
</div>
<div class="col-sm"></div>
</div>
<div class="row justify-content-start">
<div class="col-xl-12">
<hr/>
</div>
</div>
</div>
</form>
<div class="row justify-content-start" id="alerts">
</div>
</body>
</html>