aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-16 11:49:27 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-16 11:50:16 +0100
commit7403f9f870e51a99a2a8674f6e7a1e91ebd48d42 (patch)
treed10ecacf02beebd40cd6465688d3d5779b073a5e
parent4744e5024438a7c81fac199a0efd35a7a03aa86e (diff)
downloadvolse-hubzilla-7403f9f870e51a99a2a8674f6e7a1e91ebd48d42.tar.gz
volse-hubzilla-7403f9f870e51a99a2a8674f6e7a1e91ebd48d42.tar.bz2
volse-hubzilla-7403f9f870e51a99a2a8674f6e7a1e91ebd48d42.zip
some fixes for doco nav
-rw-r--r--doc/toc.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/toc.html b/doc/toc.html
index 7fad42b36..ec566c02d 100644
--- a/doc/toc.html
+++ b/doc/toc.html
@@ -389,6 +389,22 @@
$(".widget").stick_in_parent({
offset_top: $('nav').outerHeight(true)
});
+
+ $('#expand-aside').click(function() {
+ if($('main').hasClass('region_1-on')) {
+ $('body').css('overflow-x', 'hidden');
+ }
+ else {
+ $('body').css('overflow-x', '');
+ }
+ });
+ $(window).scroll(function() {
+ if($('main').hasClass('region_1-on') && $(window).scrollLeft() > 5) {
+ $('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left');
+ $('main').toggleClass('region_1-on');
+ $('body').css('overflow-x', '');
+ }
+ });
});
</script>