Only display h1 headings in sticky side nav. Toggle display of detailed TOC at top of page. Introduce return to top button for small screens.
This commit is contained in:
@@ -420,11 +420,11 @@
|
||||
tocUl.toc({content: "#doco-content", headings: "h1"});
|
||||
tocUl.addClass('toc-content');
|
||||
if( $(window).height() > 499) {
|
||||
tocUl.sticky({topSpacing:$('nav').outerHeight(true), zIndex: 1000});
|
||||
}
|
||||
tocUl.sticky({topSpacing:$('nav').outerHeight(true), zIndex: 1000});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user