Skip to content

Commit f942f38

Browse files
GuillaumeGomezehuss
authored andcommitted
Remove unused CSS class sidebar-hidden
1 parent e6315bf commit f942f38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/front-end/js/book.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ aria-label="Show hidden lines"></button>';
524524
let firstContact = null;
525525

526526
function showSidebar() {
527-
body.classList.remove('sidebar-hidden');
528527
body.classList.add('sidebar-visible');
529528
Array.from(sidebarLinks).forEach(function(link) {
530529
link.setAttribute('tabIndex', 0);
@@ -540,7 +539,6 @@ aria-label="Show hidden lines"></button>';
540539

541540
function hideSidebar() {
542541
body.classList.remove('sidebar-visible');
543-
body.classList.add('sidebar-hidden');
544542
Array.from(sidebarLinks).forEach(function(link) {
545543
link.setAttribute('tabIndex', -1);
546544
});
@@ -765,7 +763,7 @@ aria-label="Show hidden lines"></button>';
765763
let scrollTop = document.scrollingElement.scrollTop;
766764
let prevScrollTop = scrollTop;
767765
const minMenuY = -menu.clientHeight - 50;
768-
// When the script loads, the page can be at any scroll (e.g. if you reforesh it).
766+
// When the script loads, the page can be at any scroll (e.g. if you refresh it).
769767
menu.style.top = scrollTop + 'px';
770768
// Same as parseInt(menu.style.top.slice(0, -2), but faster
771769
let topCache = menu.style.top.slice(0, -2);

0 commit comments

Comments
 (0)