removal of absolute pos.
Has been fixed with css. I'm not sure if i'll break something by leaving an empty file, thus i'll just leave it at that.
This commit is contained in:
@@ -1,18 +1 @@
|
||||
$(function() {
|
||||
var $sidebar = $("#sidebar");
|
||||
var $content = $("#content");
|
||||
|
||||
if (!$sidebar.length || !$content.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
var sidebar_offset = $sidebar.offset().top + $sidebar.height();
|
||||
var content_offset = $content.offset().top + $content.height();
|
||||
var offset = null;
|
||||
if (sidebar_offset > content_offset) {
|
||||
offset = sidebar_offset;
|
||||
} else {
|
||||
offset = content_offset;
|
||||
}
|
||||
$("#page-footer").css({"position": "absolute", "top": offset, "width": "100%", "height": "3em"});
|
||||
});
|
||||
$(function() {});
|
||||
|
||||
Reference in New Issue
Block a user