Skip to content

Commit

Permalink
Fix wrong footer position
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Oct 7, 2019
1 parent f4b9331 commit cec9b7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/js/schemes/muse.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ window.addEventListener('DOMContentLoaded', () => {
var containerHeight = document.querySelector('.container').offsetHeight;
var footer = document.getElementById('footer');
if (footer.classList.contains('footer-fixed')) containerHeight += footer.outerHeight(true);
if (containerHeight < window.innerHeight) {
footer.classList.add('footer-fixed');
} else {
if (containerHeight > window.innerHeight) {
footer.classList.remove('footer-fixed');
} else {
footer.classList.add('footer-fixed');
}
}

Expand Down

0 comments on commit cec9b7e

Please sign in to comment.