Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/5678
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Sep 13, 2021
1 parent 44cdac9 commit 75835b5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion view/include/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,16 @@ function checkFooter() {


function getPageHeight() {
return $('#mainNavBar').height() + $('#mainFooter').height() + $('.container, .container-fluid').first().height();
var mainNavBarH = 0;
if($('#mainNavBar').length){
mainNavBarH = $('#mainNavBar').height();
}
var mainFooterH = 0;
if($('#mainFooter').length){
mainFooterH = $('#mainFooter').height();
}

return mainNavBarH + mainFooterH + $('.container, .container-fluid').first().height();
}
</script>
<!--
Expand Down

0 comments on commit 75835b5

Please sign in to comment.