-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (31 loc) · 1.08 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
<!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="styles.css">
</head>
<body>
<div id="newBookContainer">
<button onclick="showForm()" id="newBook">New Book</button>
<div style="display: none;" id="addBookForm">
<input id="bookTitle" name="bookTitle" type="text" placeholder="Book title" required><br>
<input id="bookAuthor" name="bookAuthor" type="text" placeholder="Book author" required><br>
<input id="pages" name="pages" type="number" placeholder="Number of pages" required><br>
<input id="isRead" name="isRead" type="checkbox">
<label for="isRead">Have I read the book?</label><br>
<button id="addBook">Add Book</button>
</div>
</div>
<table id="books">
<tr>
<th>Book name</th>
<th>Author</th>
<th>Number of pages</th>
<th>Have I read the book?</th>
</tr>
</table>
<script src="script.js"></script>
</body>
</html>