Skip to content

Commit d0f3705

Browse files
authored
Merge pull request #163 from Hrishit-B/hrishit-dev
help/faq link fixed
2 parents 751dfc3 + f63007c commit d0f3705

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ <h5 id="emptyMsg" class="mb-5 text-center p-3"></h5>
243243
<button type="button" id="clear" class="btn px-3 mb-2 btn-danger float-right">Clear Shelf</button>
244244
</div>
245245
</div>
246+
<div id="faq-section" class="p-1"></div>
246247
<div class="containerFluid">
247248
<h2 class="faq">Frequently Asked Questions (FAQs)</h2>
248249
<div class="accordion">
@@ -356,7 +357,7 @@ <h4>About</h4>
356357
<div class="footer-col">
357358
<h4>Supports</h4>
358359
<ul class="no-bullets p-0">
359-
<li><a href="#">Help / FAQ</a></li>
360+
<li><a href="#faq-section">Help / FAQ</a></li>
360361
<li><a href="#">Accessibility</a></li>
361362
<li><a href="#">Publisher</a></li>
362363
</ul>

script.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ function displayBooks() {
248248
<td class="edition">${books.bookedition}</td>
249249
<td class="publicationdate">${books.bookpublication}</td>
250250
<td class="type">${
251-
books.readStatus
252-
? `<label class="switch">
251+
books.readStatus
252+
? `<label class="switch">
253253
<input type="checkbox" checked disabled>
254254
<span class="slider round"></span>
255-
</label>`
256-
: `<label class="switch">
255+
</label>`
256+
: `<label class="switch">
257257
<input type="checkbox" disabled>
258258
<span class="slider round"></span>
259259
</label>`
@@ -287,11 +287,11 @@ function displayBooks() {
287287
<td class="publicationdate">${books.bookpublication}</td>
288288
<td class="type">${
289289
books.readStatus
290-
? `<label class="switch">
290+
? `<label class="switch">
291291
<input type="checkbox" checked disabled>
292292
<span class="slider round"></span>
293293
</label>`
294-
: `<label class="switch">
294+
: `<label class="switch">
295295
<input type="checkbox" disabled>
296296
<span class="slider round"></span>
297297
</label>`
@@ -633,17 +633,16 @@ var head1 = document.getElementById("subHead1");
633633
var head2 = document.getElementById("subHead2");
634634
var tables = document.getElementsByTagName("table");
635635

636-
icon.onclick = ()=>{
636+
icon.onclick = () => {
637637
document.body.classList.toggle("dark-theme");
638-
if(document.body.classList == "dark-theme"){
638+
if (document.body.classList == "dark-theme") {
639639
icon.innerHTML = `<i class='fas fa-sun'></i>`;
640640
head1.style.color = "white";
641641
head2.style.color = "white";
642642
for (let i = 0; i < tables.length; i++) {
643643
tables[i].style.color = "white";
644644
}
645-
}
646-
else{
645+
} else {
647646
icon.innerHTML = `<i class='fas fa-moon'></i>`;
648647
head1.style.color = "black";
649648
head2.style.color = "black";
@@ -652,7 +651,7 @@ icon.onclick = ()=>{
652651
}
653652
}
654653
console.log(document.body.classList);
655-
}
654+
};
656655
var acc = document.getElementsByClassName("accordion");
657656
var i;
658657
var len = acc.length;

style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ h2 {
399399
.no-bullets {
400400
list-style: none;
401401
}
402+
402403
.containerFluid {
403404
width: 75%;
404405
margin: 0 auto;

0 commit comments

Comments
 (0)