Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sibi361 committed Nov 13, 2023
1 parent f0c54ca commit 71e285a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="logo-text">Library</div>
</div></a
>
<div class="form-search hidden">
<div class="form-search">
<div class="form-inputs">
<input
type="text"
Expand All @@ -31,7 +31,7 @@
/>
</div>
</div>
<div class="form-new-book hidden">
<div class="form-new-book">
<div class="form-inputs">
<input
type="text"
Expand Down
6 changes: 3 additions & 3 deletions scripts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const isAdmin = true;
const isAdmin = false;

const MAX_TEXT_INPUT_LENGTH = 100;
const MAX_PAGE_COUNT = 10000;
Expand Down Expand Up @@ -344,7 +344,7 @@ if (!library) {
saveLibraryToLs();
}

if (isAdmin) searchForm.classList.remove("hidden");
else newBookForm.classList.remove("hidden");
if (isAdmin) searchForm.classList.add("hidden");
else newBookForm.classList.add("hidden");

initFillLibrary();

0 comments on commit 71e285a

Please sign in to comment.