Files
xrpl-dev-portal/content/static/js/fixsidebarscroll.js
mDuo13 e4ceb8b37b Temporary: move static files into content
During migration, while we launch Redocly with -d content, the static
files need to be in content. Eventually, when we stop using -d, we need
to move the files again.

Previously:
/assets : static assets used by templates
/img : images used in documentation (mostly)

Now:
/content/static : static assets used by templates
/img : images used in documentation (mostly)

Eventually:
/static : static assets used by templates
/docs/img : images used in documentation
2024-01-31 16:04:58 -08:00

10 lines
351 B
JavaScript

$(window).scroll(function() {
var footerpos = parseInt($("footer").offset().top);
var scrollpos = $(window).scrollTop() + $(window).height();
if(scrollpos - footerpos > 0) {
$("aside.sidebar .dev_nav_wrapper").css("bottom", (scrollpos-footerpos)+"px");
} else {
$("aside.sidebar .dev_nav_wrapper").css("bottom", 0);
}
});