diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-13 15:16:27 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-13 15:16:27 -0800 |
commit | a65ebbb3193b05edcd29c89038e21ba6a856af20 (patch) | |
tree | 64ebc36c9592229deb2fb8d5dfe14ffedcece6b8 /doc/toc.html | |
parent | bc78cf8a8712198fe0e8f571cce2cec984d84a99 (diff) | |
parent | 2bcc41c851355e27badc07ed241e16f92f16fb5c (diff) | |
download | volse-hubzilla-a65ebbb3193b05edcd29c89038e21ba6a856af20.tar.gz volse-hubzilla-a65ebbb3193b05edcd29c89038e21ba6a856af20.tar.bz2 volse-hubzilla-a65ebbb3193b05edcd29c89038e21ba6a856af20.zip |
Merge branch '2.0RC' of https://github.com/redmatrix/hubzilla into 2.0RC_merge
Diffstat (limited to 'doc/toc.html')
-rw-r--r-- | doc/toc.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/toc.html b/doc/toc.html index 8f0261dc7..0d342d25a 100644 --- a/doc/toc.html +++ b/doc/toc.html @@ -407,11 +407,20 @@ tocUl.removeClass(); // Classes are automatically added to <ul> elements by something else tocUl.toc({content: "#doco-content", headings: "h1"}); tocUl.addClass('toc-content sub-menu'); - if( $(window).height() > 499) { + tocUl.attr('id', 'doco-side-toc'); + if( $(window).width() > 768) { tocUl.sticky({topSpacing:$('nav').outerHeight(true), zIndex: 1000}); } } }); + + $( window ).resize(function() { + if($(window).width() < 768 ) { + $( "#doco-side-toc" ).unstick(); + } else { + $( "#doco-side-toc" ).sticky({topSpacing:$('nav').outerHeight(true), zIndex: 1000}); + } + }); }); |