-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (71 loc) · 2.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./css/style.css">
<title>Simple Library App</title>
</head>
<body>
<div class="container">
<h1>Bookshelf</h1>
</div>
<div id="buttonAdd">
<button id="btnAdd" class="showForm">Add Book</button>
</div>
<main id="main">
<div class="main-container">
<table class="table" id="bookTable">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Pages</th>
<th>Status</th>
<th></th>
</tr>
</thead>
<tbody id="tbody">
</tbody>
</table>
</div>
</main>
<div class="addForm-container hidden-container">
<form id="entryForm">
<div class="form-container">
<div class="form-title">
<h2>New Book</h2>
</div>
<div class="entry-fields">
<label for="title" class="entry-label">Title</label>
<input type="text" class="entry-input" id="book-title" required>
</div>
<div class="entry-fields">
<label for="author" class="entry-label">Author</label>
<input type="text" class="entry-input" id="book-author">
</div>
<div class="entry-fields">
<label for="pages" class="entry-label">Pages</label>
<input type="number" class="entry-input" id="book-pages" min="1">
</div>
<div class="entry-fields">
<label for="status" class="entry-label">Status</label>
<select id="book-status" class="entry-input" name="status">
<option value="read" selected>Read</option>
<option value="currently-reading">Currently Reading</option>
<option value="to-read">To Read</option>
</select>
</div>
<div class="entry-save">
<button class="closeBtn" id="cancelButton">Cancel</button>
<button class="add-book-btn" id="submit">Save</button>
</div>
</div>
</form>
</div>
<script src="https://www.gstatic.com/firebasejs/6.3.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/6.3.3/firebase-database.js"></script>
<script src="./js/app.js"></script>
</body>
</html>