MCPcopy Index your code
hub / github.com/zhongsp/TypeScript / hideSidebar

Function hideSidebar

docs/book.js:473–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

471 });
472
473 function hideSidebar() {
474 body.classList.remove('sidebar-visible')
475 body.classList.add('sidebar-hidden');
476 Array.from(sidebarLinks).forEach(function (link) {
477 link.setAttribute('tabIndex', -1);
478 });
479 sidebarToggleButton.setAttribute('aria-expanded', false);
480 sidebar.setAttribute('aria-hidden', true);
481 try { localStorage.setItem('mdbook-sidebar', 'hidden'); } catch (e) { }
482 }
483
484 // Toggle sidebar
485 sidebarToggleButton.addEventListener('click', function sidebarToggle() {

Callers 2

book.jsFile · 0.85
resizeFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected