Skip to content

Commit 804cd5a

Browse files
authored
Update index.html
1 parent ff58ce9 commit 804cd5a

1 file changed

Lines changed: 28 additions & 9 deletions

File tree

‎debugging/book-library/index.html‎

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,57 @@
99
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
1010
/>
1111
<style>
12+
#toast {
13+
position: fixed;
14+
bottom: 1rem;
15+
left: 50%;
16+
transform: translateX(-50%);
17+
background: #333;
18+
color: #fff;
19+
padding: 0.5rem 1rem;
20+
border-radius: 0.25rem;
21+
opacity: 0;
22+
pointer-events: none;
23+
transition: opacity 0.3s ease;
24+
}
25+
#toast.show {
26+
opacity: 1;
27+
}
1228
</style>
1329
</head>
1430
<body>
1531
<div class="container my-4">
1632
<h1>My Library</h1>
1733

18-
<div class="form-group row g-2 align-items-end">
34+
<form id="bookForm" class="row g-2 align-items-end">
1935
<div class="col">
2036
<label for="title">Title:</label>
2137
<input type="text" class="form-control" id="title" name="title" required />
2238
</div>
23-
2439
<div class="col">
2540
<label for="author">Author:</label>
2641
<input type="text" class="form-control" id="author" name="author" required />
2742
</div>
28-
2943
<div class="col">
30-
<form id="bookForm" class="row g-2 align-items-end">
3144
<label for="pages">Pages:</label>
32-
<input type="number" class="form-control" id="pages" name="pages" min="1" required />
45+
<input
46+
type="number"
47+
class="form-control"
48+
id="pages"
49+
name="pages"
50+
min="1"
51+
step="1"
52+
required
53+
/>
3354
</div>
34-
3555
<div class="col-auto form-check mb-2">
3656
<input type="checkbox" class="form-check-input" id="check" name="check" />
3757
<label class="form-check-label" for="check">Read</label>
3858
</div>
39-
4059
<div class="col-auto">
41-
<input type="button" value="Submit" id="submitBtn" class="btn btn-primary" />
60+
<input type="submit" value="Submit" id="submitBtn" class="btn btn-primary" />
4261
</div>
43-
</div>
62+
</form>
4463

4564
<table id="display" class="table table-striped mt-4">
4665
<thead>

0 commit comments

Comments
 (0)