aboutsummaryrefslogtreecommitdiff
path: root/docs/pkgdown.js
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-05-20 08:44:47 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-05-20 08:44:47 +0200
commit43d58935483e0d9dda7a74c029e7d7d2adad9ed7 (patch)
treee09b6827e30e7f83fcefe76b2d3b4b78a6a4a5c9 /docs/pkgdown.js
parent58083418f158d9b1d69caef6f7b7b6e4b5772913 (diff)
Static documentation rebuilt by pkgdown::build_site()
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r--docs/pkgdown.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js
index eb7e83d..7e7048f 100644
--- a/docs/pkgdown.js
+++ b/docs/pkgdown.js
@@ -2,18 +2,11 @@
(function($) {
$(function() {
- $("#sidebar")
- .stick_in_parent({offset_top: 40})
- .on('sticky_kit:bottom', function(e) {
- $(this).parent().css('position', 'static');
- })
- .on('sticky_kit:unbottom', function(e) {
- $(this).parent().css('position', 'relative');
- });
+ $('.navbar-fixed-top').headroom();
- $('body').scrollspy({
- target: '#sidebar',
- offset: 60
+ $('body').css('padding-top', $('.navbar').height() + 10);
+ $(window).resize(function(){
+ $('body').css('padding-top', $('.navbar').height() + 10);
});
$('[data-toggle="tooltip"]').tooltip();

Contact - Imprint