-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (82 loc) · 2.4 KB
/
index.html
File metadata and controls
83 lines (82 loc) · 2.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Library</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="css/main.css" />
</head>
<body class="text-center">
<h1 class="text-center mt-5">Welcome To Book Library</h1>
<button class="btn btn-primary btn-lg mt-4" type="button" id="add-book">
ADD BOOK
</button>
<div class="w-50 mx-auto mt-5 d-none form-container">
<div class="errors"></div>
<form>
<div class="form-group">
<h3>Add New Book</h3>
<input
type="text"
class="form-control"
id="bookTitle"
placeholder="Title"
required
/>
</div>
<div class="form-group">
<input
type="text"
class="form-control"
id="bookAuthor"
placeholder="Author"
required
/>
</div>
<div class="form-group">
<input
type="number"
class="form-control"
id="bookPages"
placeholder="Number Of Pages"
required
/>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
name="bookRead"
type="radio"
id="bookReadTrue"
value="true"
required
/>
<label class="form-check-label" for="bookReadTrue">Read</label>
</div>
<div class="form-check form-check-inline">
<input
class="form-check-input"
name="bookRead"
type="radio"
id="bookReadFalse"
value="false"
required
checked
/>
<label class="form-check-label" for="bookReadFalse">Not read</label>
</div>
<button type="submit" class="btn btn-primary submit_btn">Submit</button>
</form>
</div>
<div class="container mt-3">
<div id="books" class="d-flex flex-wrap justify-content-center"></div>
</div>
<script src="./js/library.js"></script>
</body>
</html>