aboutsummaryrefslogtreecommitdiff
path: root/docs/pkgdown.js
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-09-18 18:18:40 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2019-09-18 18:18:40 +0200
commit803fe13e505960fddccdbd4dcb524715f5eb068d (patch)
treebe5a3b2ca52e20b3bfae758299febf15c889d621 /docs/pkgdown.js
parent8deaa29a659630a40e8b11df1fa3ebbbd9ca9e68 (diff)
Add url: tag to _pkgdown.yml, typo, update docs
Diffstat (limited to 'docs/pkgdown.js')
-rw-r--r--docs/pkgdown.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/docs/pkgdown.js b/docs/pkgdown.js
index eb7e83d..087a762 100644
--- a/docs/pkgdown.js
+++ b/docs/pkgdown.js
@@ -2,14 +2,12 @@
(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').css('padding-top', $('.navbar').height() + 10);
+ $(window).resize(function(){
+ $('body').css('padding-top', $('.navbar').height() + 10);
+ });
$('body').scrollspy({
target: '#sidebar',

Contact - Imprint