mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
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
10 lines
351 B
JavaScript
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);
|
|
}
|
|
});
|