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

Function showSidebar

docs/book.js:451–460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449 var firstContact = null;
450
451 function showSidebar() {
452 body.classList.remove('sidebar-hidden')
453 body.classList.add('sidebar-visible');
454 Array.from(sidebarLinks).forEach(function (link) {
455 link.setAttribute('tabIndex', 0);
456 });
457 sidebarToggleButton.setAttribute('aria-expanded', true);
458 sidebar.setAttribute('aria-hidden', false);
459 try { localStorage.setItem('mdbook-sidebar', 'visible'); } catch (e) { }
460 }
461
462
463 var sidebarAnchorToggles = document.querySelectorAll('#sidebar a.toggle');

Callers 2

book.jsFile · 0.85
resizeFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected