From 1de7ac4ef1efbfbfdf907957c86bce8c2c13f3bf Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Thu, 21 Dec 2017 13:09:06 -0500 Subject: [PATCH] Prefix jQuery object variable names with $ --- static/js/footer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) } }