-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
152 lines (149 loc) · 8.73 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
<!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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css"/>
<title>My Perpus App</title>
<!-- <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> -->
<script async defer src="script.js"></script>
</head>
<body>
<div class="container field-margin">
<h1 class="text-center field-margin">MY PERPUS APP</h1>
<dialog id="form-input">
<div class="close-container">
<button type="button" id="close-modal" class="rounded flex place-content-center place-items-center"><i class="fa fa-times" aria-hidden="true"></i></button>
</div>
<section class="form">
<div class="top-border"></div>
<h3 class="header text-center">MY PERPUS APP</h3>
<form action="post" id="form">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="title">Title<span class="required">*</span></label>
<input type="text" name="title" id="title" placeholder="Title" />
</div>
<div class="flex flex-row field-gap columnize">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="author">Author<span class="required">*</span></label>
<input type="text" name="author" id="author" placeholder="Author">
</div>
<div class="flex flex-col full-width field-margin">
<label class="weight" for="category">Category<span class="required">*</span></label>
<select name="category" id="category" required>
<option value="null" selected disabled>-- Choose Category --</option>
<option value="Self Improvements">Self Improvements</option>
<option value="Novels">Novels</option>
<option value="Poetics">Poetics</option>
<option value="Business">Business</option>
<option value="Educations">Educations</option>
<option value="Technologies">Technologies</option>
<option value="Politics">Politics</option>
<option value="Fantasy">Fantasy</option>
</select>
</div>
</div>
<div class="flex flex-row field-gap columnize">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="last-read">Last Read<span class="required">*</span></label>
<input type="number" min="1" name="last-read" id="last-read" placeholder="Pages">
<label id="finished-confirmation"><small>Finished ?</small> <input type="checkbox" value="finished" name="finished" id="finished"></label>
</div>
<div class="flex flex-col full-width field-margin">
<label class="weight" for="total-pages">Total Pages<span class="required">*</span></label>
<input type="number" min="1" name="total-pages" id="total-pages" placeholder="Total Pages">
<p><small><span id="display-last-read">0</span>/<span id="display-total-pages">0</span></small></p>
</div>
<div class="flex flex-col full-width field-margin">
<label class="weight" for="publisher">Publisher<span class="required">*</span></label>
<input type="text" name="publisher" id="publisher" placeholder="Publisher">
</div>
</div>
<div class="flex flex-row">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="description">Description</label>
<textarea name="description" id="description" placeholder="Description ..."></textarea>
</div>
</div>
<div class="flex flex-row full-width field-margin field-gap columnize">
<button type="submit" class="grow-2" id="input"><i class="fa fa-check" aria-hidden="true"></i> INPUT</button>
<button type="reset" class="danger"><i class="fa fa-repeat" aria-hidden="true"></i> RESET</button>
</div>
</form>
</section>
</dialog>
<dialog id="edit-dialog-popup">
<div class="close-container">
<button type="button" id="close-modal-edit" class="rounded flex place-content-center place-items-center"><i class="fa fa-times" aria-hidden="true"></i></button>
</div>
<section class="form">
<div class="top-border"></div>
<h3 class="header text-center">MY PERPUS APP</h3>
<form action="post" id="edit">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="edit-title">Title<span class="required">*</span></label>
<input type="text" name="edit-title" id="edit-title" placeholder="Title" />
</div>
<div class="flex flex-row field-gap columnize">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="edit-author">Author<span class="required">*</span></label>
<input type="text" name="edit-author" id="edit-author" placeholder="Author">
</div>
<div class="flex flex-col full-width field-margin">
<label class="weight" for="edit-category">Category<span class="required">*</span></label>
<select name="edit-category" id="edit-category" required>
<option value="null" selected disabled>-- Choose Category --</option>
<option value="Self Improvements">Self Improvements</option>
<option value="Novels">Novels</option>
<option value="Poetics">Poetics</option>
<option value="Business">Business</option>
<option value="Educations">Educations</option>
<option value="Technologies">Technologies</option>
<option value="Politics">Politics</option>
<option value="Fantasy">Fantasy</option>
</select>
</div>
</div>
<div class="flex flex-row field-gap columnize">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="edit-last-read">Last Read<span class="required">*</span></label>
<input type="number" min="1" name="edit-last-read" id="edit-last-read" placeholder="Pages">
<label id="edit-finished-confirmation"><small>Finished ?</small> <input type="checkbox" value="finished" name="edit-finished" id="edit-finished"></label>
</div>
<div class="flex flex-col full-width field-margin">
<label class="weight" for="edit-total-pages">Total Pages<span class="required">*</span></label>
<input type="number" min="1" name="edit-total-pages" id="edit-total-pages" placeholder="Total Pages">
<p><small><span id="display-edit-last-read">0</span>/<span id="display-edit-total-pages">0</span></small></p>
</div>
<div class="flex flex-col full-width field-margin">
<label class="weight" for="edit-publisher">Publisher<span class="required">*</span></label>
<input type="text" name="edit-publisher" id="edit-publisher" placeholder="Publisher">
</div>
</div>
<div class="flex flex-row">
<div class="flex flex-col full-width field-margin">
<label class="weight" for="edit-description">Description</label>
<textarea name="edit-description" id="edit-description" placeholder="Description ..."></textarea>
</div>
</div>
<div class="flex flex-row full-width field-margin field-gap columnize">
<button type="submit" class="warning full-width" id="edit-input"><i class="fa fa-check" aria-hidden="true"></i> UPDATE</button>
</div>
</form>
</section>
</dialog>
<section class="data-list">
<div class="top-border"></div>
<div class="flex flex-row full-width">
<button type="button" class="full-width" id="add-book">+ Add Book</button>
</div>
<ul id="data-container" class="data-container full-width"></ul>
</section>
</div>
</body>
</html>