Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Removing console logs from sticky footer.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Jan 9, 2015
1 parent 13c097f commit 29cabf9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions js/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,21 +224,13 @@ var wpadminbarH = $('#wpadminbar').outerHeight();
var ucheaderH = $('#uc-header').outerHeight();

function stickyFoot(wrapperHeight){
console.log('wrapperh: '+wrapperH);
if (document.getElementById('page')!=null && document.getElementById('footers') !=null){
var footerH = $('#footers').outerHeight();
console.log('footerH: '+footerH);

var windowH = window.innerHeight;
console.log('windowH: '+windowH);
windowH = windowH - wpadminbarH - ucheaderH;
console.log('windowH: '+windowH);
if(windowH>=wrapperHeight){
console.log('window frame TALLER than page contents');
$('body').addClass('sticky');
} else {
console.log('window frame SMALLER than page contents');

$('body').removeClass('sticky');
}
}
Expand Down
2 changes: 1 addition & 1 deletion js/min/cs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 29cabf9

Please sign in to comment.