-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (78 loc) · 3.15 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
<!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">
<title>Todo app</title>
<!-- bootstrap css -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65"
crossorigin="anonymous"
>
<!-- stylesheet linked here -->
<link rel="stylesheet" href="./index.css">
<!-- fontawsome CDN -->
<script src="https://kit.fontawesome.com/9d34235b2f.js" crossorigin="anonymous"></script>
</head>
<body>
<!-- main container of app -->
<div class="app">
<!-- add task part header-->
<h4>TODO APP</h4>
<!-- toggle modal hlep to bring back form on screen when click on add new task -->
<div id="add__task" data-bs-toggle="modal" data-bs-target="#form">
<span>Add New Task </span>
<i class="fa-regular fa-plus"></i>
</div>
<!-- bootstrap Modal to take input from user-->
<form class="modal fade" id="form" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Add New Task</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- this content added by user -->
<div class="modal-body">
<p>Task Title</p>
<input class="form-control" type="text" name="" id="taskInput">
<div id="dangerMsg" class="text-danger" ></div>
<br>
<p>Due Date</p>
<input class="form-control" type="date" name="" id="dateInput">
<br>
<p>Description</p>
<textarea class="form-control" name="" id="textarea" cols="30" rows="5"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="submit" id="add" class="btn btn-primary">Add</button>
</div>
</div>
</div>
</form>
<!-- show added task part -->
<h5>Tasks</h5>
<div id="tasks">
<!-- task-card templet use in js file -->
<!-- <div>
<span class="fw-bold">Dummy Task1</span>
<span class="small text-secondary">Due Date: 04/12/2022</span>
<p>Write your task description...</p>
<span class="options">
<i onClick="editTask(this)" class="fa-regular fa-pen-to-square" data-bs-toggle="modal" data-bs-target="#form"></i>
<i class="fa-solid fa-trash" onclick="deleteTask(this)"></i>
</span>
</div> -->
</div>
</body>
<!-- bootstrap link -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous">
</script>
<!-- javascript main file link -->
<script src="./index.js"></script>
</html>