gestion footeré
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
This commit is contained in:
@ -44,6 +44,8 @@ $( window ).resize(function() {
|
||||
|
||||
|
||||
function resize() {
|
||||
console.log("resize");
|
||||
|
||||
if($("#header").is(":visible")){
|
||||
$(".navbar-logo").hide();
|
||||
$("#menulink").hide();
|
||||
@ -55,8 +57,13 @@ function resize() {
|
||||
$("#header").show();
|
||||
}
|
||||
|
||||
$("main").css("height",$(window).height()-$(".header").height());
|
||||
$("#page").css("height",$(window).height()-$(".header").height());
|
||||
var footerheight=$("footer").height();
|
||||
if(footerheight) footerheight=footerheight+10;
|
||||
else footerheight=0;
|
||||
console.log(footerheight);
|
||||
|
||||
$("main").css("height",$(window).height()-$(".header").height()-footerheight);
|
||||
$("#page").css("height",$(window).height()-$(".header").height()-footerheight);
|
||||
$("#sidebar").css("min-height",$("body").height()-$(".header").height());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user