Calc com Javascript

by cintia_rodrigues

HTML

Para substiruir o calc em css

Nas paginas de error e service unavailable
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

JavaScript

var windowHeight = $(window).height();
var headerHeight = $('.m-hdr').height();
var footerHeight = $('.m-ftr').height();

$(window).resize(function () {
    $('.fullheight').css('min-height', (windowHeight - headerHeight - footerHeight))
});

$(document).ready(function () {
    $('.fullheight').css('min-height', (windowHeight - headerHeight - footerHeight))
});


ps= o fullheight tem de estar na div que eu quero encontrar o tamanho. Indicar os nomes do header e do footer nas variaveis