-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
211 lines (196 loc) · 6.09 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Fontawesome -->
<link
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
rel="stylesheet"
/>
<!-- Bootswatch Darkly Theme -->
<link
href="https://stackpath.bootstrapcdn.com/bootswatch/4.5.2/darkly/bootstrap.min.css"
rel="stylesheet"
/>
<title>Todo List</title>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Todo List</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">
Home <span class="sr-only">(current)</span>
</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0" id="filters">
<label class="font-weight-bold text-info mr-3">Filters</label>
<input type="radio" name="type" value="all" class="mx-1">
<label for="male" class="mb-0">All</label>
<input type="radio" name="type" value="completed" class="mx-1">
<label for="female" class="mb-0">Completed</label>
<input type="radio" name="type" value="uncompleted" class="mx-1">
<label for="other" class="mr-2 mb-0">Uncompleted</label>
<input
class="form-control mr-sm-2"
type="search"
name="words"
placeholder="Words"
aria-label="Search"
>
<button class="btn btn-outline-info my-2 my-sm-0" type="submit" id="search">
Search
</button>
</form>
</div>
</nav>
<!-- Modal -->
<div
class="modal fade"
id="modal"
tabindex="-1"
role="dialog"
aria-labelledby="exampleModalCenterTitle"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
Edit Todo
</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-danger d-none" role="alert" id="modal-alert">
A simple danger alert—check it out!
</div>
<form>
<div class="form-group">
<label>Title</label>
<input
id="modal-title"
type="text"
class="form-control"
placeholder="Do Something"
/>
</div>
<div class="form-group">
<label>Description</label>
<textarea class="form-control" id="modal-description" rows="3">
</textarea>
</div>
<div class="form-group d-inline-flex">
<label>Completed</label>
<div class="mt-1 ml-2">
<input
id="modal-completed"
type="checkbox"
/>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">
Close
</button>
<button type="button" class="btn btn-info" id="modal-btn">
Save
</button>
</div>
</div>
</div>
</div>
<main>
<div class="container pt-3">
<div class="alert alert-danger d-none" role="alert" id="alert">
A simple danger alert—check it out!
</div>
<!-- Add Todo -->
<div id="succes_message"></div>
<div>
<form>
<div class="row">
<div class="col-sm-3 d-sm-flex align-items-center">
<label class="m-sm-0">Title</label>
<input
type="text"
id="title"
class="form-control ml-sm-2"
placeholder="Type in a title"
>
</div>
<div class="px-sm-2 col-sm-7 d-sm-flex align-items-center mt-2 mt-sm-0">
<label class="m-sm-0">Description</label>
<input
type="text"
id="description"
class="form-control ml-sm-2"
placeholder="Type in a description"
>
</div>
<div class="col-sm-2 d-sm-flex justify-content-end mt-4 mt-sm-0">
<button type="button" class="btn btn-info btn-block" id="add">
Add
</button>
</div>
</div>
</form>
</div>
<!-- Table -->
<div class="mt-5">
<table class="table table-striped" id="table">
<thead>
<tr>
<th scope="col">Todo</th>
<th scope="col">Description</th>
<th scope="col">
<div class="d-flex justify-content-center">
Completed
</div>
</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</main>
<!-- JQuery -->
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs="
crossorigin="anonymous"
></script>
<!-- Bootstrap -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
<!-- JS Code -->
<script src="js/index.js" type="module"></script>
</body>
</html>