-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
256 lines (244 loc) · 7.85 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html>
<head>
<title>JS Build Project</title>
<!-- Styles -->
<link href="./index.css" rel="stylesheet" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body onload="loadInitialData()">
<!-- <button
type="button"
class="btn btn-primary"
data-bs-toggle="modal"
data-bs-target="#showTask"
>
Launch demo modal
</button> -->
<!-- Btn on Small Screen Size -->
<div class="add__new__btn__mobile__only d-md-none">
<button
class="btn btn-primary d-flex align-items-center gap-3"
type="submit"
data-bs-toggle="modal"
data-bs-target="#addNewModal"
>
<i class="fa-light fa-plus mr-4"></i> Add New Item
</button>
</div>
<!-- Add New Item Modal -->
<div
class="modal fade"
id="addNewModal"
tabindex="-1"
aria-labelledby="addNewModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="addNewModalLabel">Add New Task</h1>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<form onsubmit="return false">
<!-- img -->
<div class="mb-3">
<label for="imageUrl" class="form-label">Image URL</label>
<input
type="url"
class="form-control"
id="imageUrl"
aria-describedby="imageDesc"
placeholder="https://rohan.com/image.png"
/>
<div id="imageDesc" class="form-text">
Its a optional filed for you...
</div>
</div>
<!-- title -->
<div class="mb-3">
<label for="taskTitle" class="form-label">Task Title</label>
<input
type="text"
class="form-control"
id="taskTitle"
placeholder="Task Title!"
required
/>
</div>
<!-- Task Type -->
<div class="mb-3">
<label for="tags" class="form-label">Task Type</label>
<input
type="text"
class="form-control"
id="tags"
placeholder="Task Type!"
required
/>
</div>
<!-- Task Description -->
<div class="mb-3">
<label for="taskDescription" class="form-label"
>Task Description</label
>
<textarea
type="text"
class="form-control"
id="taskDescription"
placeholder="Task Description..."
required
rows="3"
></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Close
</button>
<button
type="submit"
class="btn btn-primary"
onclick="handleSubmit()"
>
Save changes
</button>
</div>
</div>
</div>
</div>
<!-- Open Task Modal -->
<div
class="modal fade"
id="showTask"
tabindex="-1"
aria-labelledby="exampleModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">
Task Details..
</h1>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body task__modal__body"></div>
<div class="modal-footer">
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Close
</button>
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
</div>
</div>
</div>
</div>
<!-- nav bar -->
<nav class="navbar navbar-expand-lg bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Tasky Application</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-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 me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
</ul>
<button
class="btn btn-primary d-flex align-items-center gap-3"
type="submit"
data-bs-toggle="modal"
data-bs-target="#addNewModal"
>
<i class="fa-light fa-plus mr-4"></i> Add New Item
</button>
</div>
</div>
</nav>
<div class="container">
<!-- Search Window -->
<section class="mt-5">
<div class="row justify-content-center">
<div class="col-sm-12 col-md-6">
<div class="input-group flex-nowrap shadow-lg rounded">
<input
type="search"
class="form-control"
placeholder="Search Your Task Here.."
aria-label="Search Task"
aria-describedby="addon-wrapping"
oninput="searchTask.apply(this, arguments)"
/>
<span class="input-group-text" id="addon-wrapping">
<i class="fas fa-search"></i>
</span>
</div>
</div>
</div>
</section>
<!-- cards section -->
<section class="mt-3">
<div class="row task__contents"></div>
</section>
</div>
<!-- Scripts -->
<script src="./index.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"
integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"
integrity="sha384-mQ93GR66B00ZXjt0YO5KlohRA5SY2XofN4zfuZxLkoj1gXtW8ANNCe9d5Y3eG5eD"
crossorigin="anonymous"
></script>
</body>
</html>