From 5252211c921a429c3c8e93278c4dfb9637afc190 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 16 Dec 2016 11:49:27 +0100 Subject: some fixes for doco nav --- doc/toc.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/toc.html') 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', ''); + } + }); }); -- cgit v1.2.3