MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / uncollapse

Function uncollapse

docs/_static/js/script.js:24–26  ·  view source on GitHub ↗
(section)

Source from the content-addressed store, hash-verified

22 });
23 /* Uncollapse parent sections when nested section is specified in the URL or before navigate to it from navbar */
24 function uncollapse(section) {
25 section.parents().each((i, val) => { $(val).children('.closed').click(); });
26 }
27 uncollapse($(window.location.hash));
28 $('.wy-menu.wy-menu-vertical li a.reference.internal').click(function() {
29 uncollapse($($(this).attr('href')));

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected