-
-
Notifications
You must be signed in to change notification settings - Fork 235
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (60 loc) · 2.07 KB
/
index.html
File metadata and controls
69 lines (60 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Book Library</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
/>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<main>
<div class="jumbotron">
<h1>Library</h1>
<h2>Add books to your virtual library</h2>
</div>
<div class="toast" id="toast"></div>
<button data-toggle="collapse" data-target="#demo" class="btn btn-info">
Add new book
</button>
<div id="demo" class="collapse">
<div class="form-group">
<label for="title">Title:</label>
<input type="text" class="form-control" id="title" required />
<label for="author">Author:</label>
<input type="text" class="form-control" id="author" required />
<label for="pages">Pages:</label>
<input type="number" class="form-control" id="pages" required />
<input type="checkbox" class="form-check-input" id="check" />
<label for="check" class="form-check-label">Read</label>
<input
type="submit"
value="Submit"
class="btn btn-primary"
onclick="submit()"
/>
<!-- check this -->
</div>
</div>
<table class="table" id="display">
<thead class="thead-dark">
<tr>
<th>Title</th>
<th>Author</th>
<th>Number of Pages</th>
<th>Read</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
</main>
<script src="script.js"></script>
</body>
</html>