-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (60 loc) · 2.18 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Library</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="top-container">
<div id="header-container">
<header>
<h1>My Library</h1>
</header>
</div>
<div id="stats-container">
<h4>Statistics</h4>
<h5>Number of books: <span id="num-books"></span></h5>
<h5>Number of books read: <span id="num-books-read"></span></h5>
</div>
</div>
</div>
<div class="clearfix"></div>
<div id="seperator"></div>
<div id="no-book-indicator">No Books Saved</div>
<div id="bookshelf-container"></div>
<button id="new-book-button">+</button>
<div class="bg-modal">
<div class="modal">
<form id="new-book-form">
<h4 id="form-title">Add New book</h4>
<div class="title-container">
<label for="book-title">Title:</label>
<input type="text" id="title-input" name="book-title" maxlength="45" required>
</div>
<div class="author-container">
<label for="author">Author:</label>
<input type="text" id="author-input" name="author" maxlength="30">
</div>
<div class="num-page-container">
<label for="num-page">Number of Pages:</label>
<input type="number"
oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
id="num-page-input" name="num-page" maxlength="6">
</div>
<div class="read-status-container">
<label for="read-status">Finished the book?</label>
<input type="radio" value="yes" name="read-status" id="read-button">
<label for="yes">Yes</label>
<input type="radio" value="no" name="read-status" id="not-read-button" checked="checked">
<label for="no">No</label>
</div>
<button type="submit" id="submit-button">Submit</button>
<div id="close-form-button">X</div>
</form>
</div>
</div>
<footer class="info"></footer>
<script src="script.js"></script>
</body>
</html>