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:
Andrew Manning
2016-12-09 22:18:23 -05:00
parent 82d09c288d
commit 6668fe02aa
4 changed files with 30 additions and 8 deletions

View File

@@ -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>