template bugfixes - code expand, sidebar

This commit is contained in:
mDuo13
2016-03-01 15:41:56 -08:00
parent 608c3ec455
commit 083201af41
22 changed files with 282 additions and 99 deletions

View File

@@ -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);
}
});