Adding exams folder + adding 'book_finder' in it as first folder commit
This commit is contained in:
25
_exams/book_finder/script.js
Normal file
25
_exams/book_finder/script.js
Normal file
@@ -0,0 +1,25 @@
|
||||
// Click handler for search button
|
||||
const captureSearchValue = () => {
|
||||
|
||||
};
|
||||
|
||||
// Filter books based on search input
|
||||
const filterBooks = () => {
|
||||
|
||||
};
|
||||
|
||||
// Empty the book list container, iterate over list of filtered books, return list of books formatted as HTML using the function in `helper.js`
|
||||
const structureBooksAsHtml = () => {
|
||||
|
||||
};
|
||||
|
||||
// Handler triggered when a user clickers the "Search" button. Chains previously defined functions together to filter books based on the search value, formats the books as HTML and renders them to the DOM
|
||||
const searchBtnClickHandler = () => {
|
||||
|
||||
}
|
||||
|
||||
// Grab search button from the DOM
|
||||
|
||||
|
||||
// Attach an event listener to the search button
|
||||
searchBtn.addEventListener("click", () => { searchBtnClickHandler(books) });
|
||||
Reference in New Issue
Block a user