mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
parse_pages - refactor for external config and output to target dir
This commit is contained in:
9
assets/js/fixsidebarscroll.js
Normal file
9
assets/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) {
|
||||
$(".menubar.fixed").css("margin-bottom", scrollpos-footerpos);
|
||||
} else {
|
||||
$(".menubar.fixed").css("margin-bottom", 0);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user