-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (49 loc) · 1.66 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
<!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 class="container">
<div class="no-1">
<button id="formContainer">
Add Book
</button>
<div class="formDiv">
<form action="/submit" method="POST">
<div class="fDiv">
<label for="title">Title: </label>
<input type="text" id="title" name="title">
</div>
<div class="fDiv">
<label for="author">Author: </label>
<input type="text" id="author" name="author">
</div>
<div class="fDiv">
<label for="pages">Pages: </label>
<input id="pages" type="number" name="pages">
</div>
<div class="fDiv">
<label for="isRead">Is Read?</label>
<input type="checkbox" id="isRead" name="isRead">
</div>
<div class="fDiv">
<button type="submit" id="addBook" value="submit">Add Book</button>
</div>
<div class="fDiv">
<button type="button" id="cancelButton">Cancel</button>
</div>
</form>
</div>
</div>
<div class="no-2">
<h1>Library</h1>
<div class="booksContainer"></div>
</div>
</div>
<script src="./index.js"></script>
</body>
</html>