-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (109 loc) · 4.14 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
<!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="./index.css" />
<script src="./index.js" defer></script>
<title>Library</title>
</head>
<body>
<div id="modal">
<div class="settings-modal-content">
<fieldset id="update-book">
<form action="javascript:void(0);" method="post" id="update-form">
<input type="hidden" name="id" id="update-id">
<label for="update-name">
Book:
<input
type="text"
name="name"
id="update-name"
placeholder="Title of the Book"
required
/>
</label>
<label for="update-author">
Author:
<input
type="text"
name="author"
placeholder="John Doe"
id="update-author"
/>
</label>
<label for="update-pages">
Pages:
<input
type="number"
name="pages"
id="update-pages"
placeholder="###"
/>
</label>
<label for="update-status">
<input
type="checkbox"
name="isFinished"
id="update-status"
/>
Finished
</label>
<button type="submit">Update</button>
</form>
</form>
</fieldset>
</div>
</div>
<div class="container">
<fieldset class="add-book">
<legend>Library</legend>
<form action="javascript:void(0);" method="post" id="book-form">
<label for="book-name">
Book:
<input
type="text"
name="name"
id="book-name"
placeholder="Title of the Book"
value=""
required
/>
</label>
<label for="book-author">
Author:
<input
type="text"
name="author"
id="book-author"
placeholder="Renekris"
value=""
/>
</label>
<label for="book-pages">
Pages:
<input
type="number"
name="pages"
id="book-pages"
placeholder="###"
value="0"
min="0"
/>
</label>
<label for="book-status">
<input
type="checkbox"
name="isFinished"
id="book-status"
/>
Finished
</label>
<button type="submit">Add</button>
</form>
</fieldset>
<div id="library"></div>
</div>
</body>
</html>