add a book count
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
David 2023-02-04 20:51:40 -05:00
parent f802943316
commit b11316abe5
3 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,9 @@ function renderTable(books, sortField) {
var bookElement = document.getElementById("books");
bookElement.innerHTML = TableTemplate(books);
var bookCount = document.getElementById("bookCount");
bookCount.innerHTML = `${books.length} books`;
// add listeners for selecting book to view
Array.from(bookElement.querySelectorAll("tbody tr"))
.slice(1) // remove header from Array

View File

@ -30,6 +30,7 @@
>git</a
>
<div id="searchBox">
<span id="bookCount" class="bookCount">_ books</span>
<input
id="search"
type="text"

View File

@ -147,6 +147,11 @@ body {
display: inline;
}
#header .bookCount {
font-size: small;
color: #a29c77;
}
#searchBox {
position: absolute;
right: 10px;