@@ -248,12 +248,12 @@ function displayBooks() {
248
248
<td class="edition">${ books . bookedition } </td>
249
249
<td class="publicationdate">${ books . bookpublication } </td>
250
250
<td class="type">${
251
- books . readStatus
252
- ? `<label class="switch">
251
+ books . readStatus
252
+ ? `<label class="switch">
253
253
<input type="checkbox" checked disabled>
254
254
<span class="slider round"></span>
255
- </label>`
256
- : `<label class="switch">
255
+ </label>`
256
+ : `<label class="switch">
257
257
<input type="checkbox" disabled>
258
258
<span class="slider round"></span>
259
259
</label>`
@@ -287,11 +287,11 @@ function displayBooks() {
287
287
<td class="publicationdate">${ books . bookpublication } </td>
288
288
<td class="type">${
289
289
books . readStatus
290
- ? `<label class="switch">
290
+ ? `<label class="switch">
291
291
<input type="checkbox" checked disabled>
292
292
<span class="slider round"></span>
293
293
</label>`
294
- : `<label class="switch">
294
+ : `<label class="switch">
295
295
<input type="checkbox" disabled>
296
296
<span class="slider round"></span>
297
297
</label>`
@@ -633,17 +633,16 @@ var head1 = document.getElementById("subHead1");
633
633
var head2 = document . getElementById ( "subHead2" ) ;
634
634
var tables = document . getElementsByTagName ( "table" ) ;
635
635
636
- icon . onclick = ( ) => {
636
+ icon . onclick = ( ) => {
637
637
document . body . classList . toggle ( "dark-theme" ) ;
638
- if ( document . body . classList == "dark-theme" ) {
638
+ if ( document . body . classList == "dark-theme" ) {
639
639
icon . innerHTML = `<i class='fas fa-sun'></i>` ;
640
640
head1 . style . color = "white" ;
641
641
head2 . style . color = "white" ;
642
642
for ( let i = 0 ; i < tables . length ; i ++ ) {
643
643
tables [ i ] . style . color = "white" ;
644
644
}
645
- }
646
- else {
645
+ } else {
647
646
icon . innerHTML = `<i class='fas fa-moon'></i>` ;
648
647
head1 . style . color = "black" ;
649
648
head2 . style . color = "black" ;
@@ -652,7 +651,7 @@ icon.onclick = ()=>{
652
651
}
653
652
}
654
653
console . log ( document . body . classList ) ;
655
- }
654
+ } ;
656
655
var acc = document . getElementsByClassName ( "accordion" ) ;
657
656
var i ;
658
657
var len = acc . length ;
0 commit comments