Prefix jQuery object variable names with $
parent
caa82bb8b3
commit
1de7ac4ef1
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue