Skip to content

Commit

Permalink
Fixed footer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Trezoid committed Apr 29, 2012
1 parent 20a3d46 commit 7180481
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions scripts/footer.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
$(document).ready(function() {
/* if ($('.col').length > 0)
{
if ($(window).width() > 980)
{
$('.content').height($('.col').height());
} else {
$('.content').height($('.col').height() + $('.col').next().height());
}
}*/
footGlue();
});

Expand All @@ -17,7 +8,7 @@ $(window).resize(function() {

function footGlue()
{
if (($('.content').outerHeight() + 40) <
if (($('.container').outerHeight() + $('.footer').outerHeight() + $('.header').outerHeight()) <
($(window).outerHeight() - $('.footer').outerHeight()))
{
$('.footer').addClass('stuck');
Expand Down

0 comments on commit 7180481

Please sign in to comment.