mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
template bugfixes - code expand, sidebar
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
$(window).scroll(function() {
|
||||
var footerpos = parseInt($(".footer").offset().top);
|
||||
var footerpos = parseInt($("footer").offset().top);
|
||||
var scrollpos = $(window).scrollTop() + $(window).height();
|
||||
if(scrollpos - footerpos > 0) {
|
||||
$(".menubar.fixed").css("margin-bottom", scrollpos-footerpos);
|
||||
$("aside.sidebar .dev_nav_wrapper").css("bottom", (scrollpos-footerpos)+"px");
|
||||
} else {
|
||||
$(".menubar.fixed").css("margin-bottom", 0);
|
||||
$("aside.sidebar .dev_nav_wrapper").css("bottom", 0);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user