aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-13 15:15:37 -0800
committerzotlabs <mike@macgirvin.com>2016-12-13 15:15:37 -0800
commit23823811e9fcef166f961e5202bab56fc444dae0 (patch)
tree8547e5384f8f742447ab52a9314ed79215a753a4 /doc
parentca44ce5f8cb5ab78d8d5f33c71f29d943ea91a8e (diff)
parentdce03a36d01efdb0b9882782d1a4575515441127 (diff)
downloadvolse-hubzilla-23823811e9fcef166f961e5202bab56fc444dae0.tar.gz
volse-hubzilla-23823811e9fcef166f961e5202bab56fc444dae0.tar.bz2
volse-hubzilla-23823811e9fcef166f961e5202bab56fc444dae0.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'doc')
-rw-r--r--doc/toc.html11
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});
+ }
+ });
});