Skip to content

NW | ITP-May-25 | Geraldine Edwards | Module-Data-Flows | Sprint-2 | Debugging | Book-Library #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
182 changes: 110 additions & 72 deletions debugging/book-library/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title> </title>
<title>My Book Library</title>
<meta
charset="utf-8"
name="viewport"
Expand All @@ -18,79 +18,117 @@
</head>

<body>
<div class="jumbotron text-center">
<h1>Library</h1>
<p>Add books to your virtual library</p>
</div>
<div class="container-fluid">
<div class="jumbotron text-center">
<h1 class="text-center mb-4 text-primary">My Book Library</h1>
<p class="text-center mb-4">Add books to your virtual library</p>
</div>

<button data-toggle="collapse" data-target="#demo" class="btn btn-info">
Add new book
</button>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<!-- Reading Progress Section -->
<div class="card mb-4">
<div class="card-header bg-primary text-white">
<h4 class="mb-0" id="progress-header"> Reading Progress</h4>
</div>
<div class="card-body">
<div class="progress" style="height: 25px;">
<div id="progress-bar" class="progress-bar bg-success" role="progressbar" style="width: 0%">
<!-- Progress percentage gets dynamically updated -->
</div>
</div>
</div>
</div>

<div id="demo" class="collapse">
<div class="form-group">
<label for="title">Title:</label>
<input
type="title"
class="form-control"
id="title"
name="title"
required
/>
<label for="author">Author: </label>
<input
type="author"
class="form-control"
id="author"
name="author"
required
/>
<label for="pages">Pages:</label>
<input
type="number"
class="form-control"
id="pages"
name="pages"
required
/>
<label class="form-check-label">
<input
type="checkbox"
class="form-check-input"
id="check"
value=""
/>Read
</label>
<input
type="submit"
value="Submit"
class="btn btn-primary"
onclick="submit();"
/>
</div>
</div>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<button data-toggle="collapse" data-target="#demo" class="btn btn-info mb-3">
Add new book
</button>

<table class="table" id="display">
<thead class="thead-dark">
<tr>
<th>Title</th>
<th>Author</th>
<th>Number of Pages</th>
<th>Read</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<div id="demo" class="collapse">
<div class="card mb-4">
<div class="card-body">
<div class="form-group">
<label for="title">Title:</label>
<input
type="text"
class="form-control"
id="title"
name="title"
required
/>
</div>
<div class="form-group">
<label for="author">Author:</label>
<input
type="text"
class="form-control"
id="author"
name="author"
required
/>
</div>
<div class="form-group">
<label for="pages">Pages:</label>
<input
type="number"
class="form-control"
id="pages"
name="pages"
required
/>
</div>
<div class="form-check mb-3">
<input
type="checkbox"
class="form-check-input"
id="check"
value=""
/>
<label class="form-check-label" for="check">
I have read this book
</label>
</div>
<input
type="submit"
value="Add Book"
class="btn btn-primary"
onclick="submit();"
/>
</div>
</div>
</div>

<div class="table-responsive">
<table class="table table-striped table-hover" id="display">
<thead class="thead-dark">
<tr>
<th>Title</th>
<th>Author</th>
<th>Number of Pages</th>
<th>Read</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

<script src="script.js"></script>
</body>
</html>
</html>
Loading