-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (54 loc) · 2.08 KB
/
index.html
File metadata and controls
58 lines (54 loc) · 2.08 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://unpkg.com/bulmaswatch/flatly/bulmaswatch.min.css">
<link rel="stylesheet" href="style.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Library</title>
</head>
<body>
<nav class="navbar">
<div class="navbar-brand">
<h1 class="navbar-item title is-3">Library</h1>
</div>
<div class="navbar-end">
<div class="navbar-item">
<button class="button" type="button" id="show-form-btn">Show Form</button>
</div>
</div>
</nav>
<div class="columns is-centered">
<form class="column box is-4 is-hidden mt-50" id="addbook">
<div id ="alertMessage" class="notification is-danger is-hidden">
<h5 class="title is-5 has-text-centered">All fields required!</h5>
</div>
<div class="field">
<label for="title" class="label">Title</label>
<input id="title" type="text" class="input" required>
</div>
<div class="field">
<label for="author" class="label">Author</label>
<input id="author" type="text" class="input" required>
</div>
<div class="field">
<label for="pages" class="label">Pages</label>
<input id="pages" type="number" class="input" min="0" required>
</div>
<div class="field">
<label class="label" for="read">Have you read it yet?</label>
<label class="switch mt-20">
<input type="checkbox" id="readStatus">
<span class="slider round"></span>
</label>
</div>
<button id="add-book-btn" class="button is-primary mt-20" type="button">
Add Book
</button>
</form>
</div>
<div class="columns is-multiline mt-50" id="bookcontainer">
</div>
<script src="index.js"></script>
</body>
</html>