Prefix jQuery object variable names with $
parent
caa82bb8b3
commit
1de7ac4ef1
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
// Push footer to bottom on pages with little content
|
// Push footer to bottom on pages with little content
|
||||||
function setFooter () {
|
function setFooter () {
|
||||||
var windowHeight = $(window).height()
|
var $windowHeight = $(window).height()
|
||||||
var footerBottom = $('footer').offset().top + $('footer').height()
|
var $footerBottom = $('footer').offset().top + $('footer').height()
|
||||||
if (windowHeight > footerBottom) {
|
if ($windowHeight > $footerBottom) {
|
||||||
$('footer').css('margin-top', windowHeight - footerBottom)
|
$('footer').css('margin-top', $windowHeight - $footerBottom)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue