mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-23 13:15:49 +00:00
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
This commit is contained in:
9
content/static/js/fixsidebarscroll.js
Normal file
9
content/static/js/fixsidebarscroll.js
Normal file
@@ -0,0 +1,9 @@
|
||||
$(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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user