-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (35 loc) · 1.49 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Odin Library</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="header">
<div class="library-text">
Welcome to the Erisian Library!
</div>
<div id="add-book-button">
<button type="button">Add a New Book</button></div>
<dialog>
<button autofocus id="add-book-close-button">-</button>
<form method="dialog" id="user-input">
<div class="form-explanation" id="form-explanation-title">Book Title</div>
<input type="text" id="form-title" placeholder="The Odyssey" required>
<div class="form-explanation">Book Author</div>
<input type="text" id="form-author" placeholder="Homer" required>
<div class="form-explanation">Out of how many total pages?</div>
<input type="number" id="form-pages" placeholder="416" required>
<span id="form-pages-error" class="error" aria-live="polite"></span>
<div class="form-explanation" id="read-question">Have you read it?</div>
<input type="checkbox" id="form-read">
<button id="confirmBtn" value="default">Add Book</button>
</form>
</dialog>
</div>
<div id="book-cards"></div>
<script src="script.js"></script>
</body>
</html>