-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (54 loc) · 2.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Library</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="header">
<span>Book Collection</span>
<div class="add-book">
<button class="add-book-button" id="open">New book</button>
</div>
</div>
<div class="card-holder" id="card-holder">
</div>
<div class="modal-container alignment" id="modal-container">
<div class="modal">
<form id="my-form">
<div class="all-forms" id="all-forms">
<span class="error" id="title-error" aria-live="polite"></span>
<div class="form">
<input type="text" id="title" name="title" id="title" placeholder="Title" maxlength = "60" required>
</div>
<span class="error" id="author-error" aria-live="polite"></span>
<div class="form">
<input type="text" id="author" name="author" id="author" placeholder="Author" maxlength = "30" required>
</div>
<span class="error" id="pages-error" aria-live="polite"></span>
<div class="form">
<input type="number" id="pages" name="pages" id="pages" placeholder="Pages" max = "9999" min="1" required>
</div>
<div class="form">
<label for="book-read">have you read this book?</label>
<input type="checkbox" name="read" id="read">
</div>
</div>
<div class="buttons">
<button class="modal-button" id="close">
Close
</button>
<button type="submit" class="modal-button" id="add">
Add
</button>
</div>
</form>
</div>
</div>
<script src="script.js"></script>
<script src="form_validation.js"></script>
</body>
</html>