-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
139 lines (103 loc) · 3.87 KB
/
index.html
File metadata and controls
139 lines (103 loc) · 3.87 KB
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
<!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">
<link rel="stylesheet" href="css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css">
<title>Notes App</title>
</head>
<body>
<div class="wrapper">
<div class="row">
<div class="col text-center m-2">
<h2>
Notes app
</h2>
</div>
</div>
<div id="container" class="container">
<table class="table text-center align-middle table-hover" id="table">
<thead id="table__head">
<tr class="table-dark rounded-">
<th scope="col">Name</th>
<th scope="col">Created</th>
<th scope="col">Category</th>
<th scope="col">Content</th>
<th scope="col">Dates</th>
<th scope="col">
<i class="far fa-clipboard showAll" title="Show active notes" id="showAll"></i>
<i class="fas fa-archive openArchive" title="Open archive" id="openArchive"></i>
</th>
</tr>
</thead>
<tbody id='table__body'>
</tbody>
</table>
<div class="row">
<div class="col text-end">
<button id="create__note" type="button" class="btn btn-sm btn-outline-secondary"
data-bs-toggle="modal" data-bs-target="#modal">Create note</button>
</div>
</div>
<table class="table text-center align-middle table-hover mt-5">
<thead id="table__head">
<tr class="table-dark rounded-">
<th colspan="2" scope="col">Note Category</th>
<th colspan="2" scope="col">Active</th>
<th colspan="2" scope="col">Archived</th>
</tr>
</thead>
<tbody id="table__result">
</tbody>
</table>
</div>
</main>
</div>
<!-- Modal -->
<div class="modal fade" id="modal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"
name="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Create note</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form id="noteForm" action="#">
<label for="name" class="form-label">Name</label>
<input name="name" type="text" class="form-control" id="name" required maxlength="20"
minlength="3">
<div class="mb-3">
<label for="textarea" class="form-label">Content</label>
<textarea name="content" class="form-control" id="textarea" rows="3" required maxlength="50"
minlength="3"></textarea>
</div>
<select class="form-select" name="category" aria-label="Default select example" required>
<option selected value="Task fas fa-shopping-cart">Task</option>
<option value="Random fas fa-brain">Random</option>
<option value="Quote fas fa-quote-right">Quote</option>
<option value="Idea far fa-lightbulb">Idea</option>
</select>
<input name="id" type="text" class="visually-hidden" id="id__hidden">
<div class="mt-3 text-end">
<button type="button" class="btn btn-sm btn-outline-secondary "
data-bs-dismiss="modal">Close</button>
<button id="form__submit" type="submit" class="btn btn-sm btn-secondary">Save
changes</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- Modal -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous">
</script>
<script async type="module" src="./js/app.js"></script>
</body>
</html>