diff --git a/static/js/footer.js b/static/js/footer.js index 5446f29..a6b64f9 100644 --- a/static/js/footer.js +++ b/static/js/footer.js @@ -3,10 +3,10 @@ // Push footer to bottom on pages with little content function setFooter () { - var windowHeight = $(window).height() - var footerBottom = $('footer').offset().top + $('footer').height() - if (windowHeight > footerBottom) { - $('footer').css('margin-top', windowHeight - footerBottom) + var $windowHeight = $(window).height() + var $footerBottom = $('footer').offset().top + $('footer').height() + if ($windowHeight > $footerBottom) { + $('footer').css('margin-top', $windowHeight - $footerBottom) } }