The layout has changed a little bit, to mini-mize the "white-space" in the header and so fort.

This commit is contained in:
Brinken
2012-03-18 01:46:51 +01:00
parent b85f5c0227
commit ba91eecad0
9 changed files with 250 additions and 161 deletions

View File

@@ -13,20 +13,24 @@ $(document).ready(function() {
//On load set #main height & width
windowWidth = $(window).width();
windowHeight = $(window).height();
menuWidth = $("#nav").width();
menuWidth = $("#nav").outerWidth();
headerHeight = $("header").height();
$("#main").height(windowHeight - headerHeight - 40);
$("#main").width(windowWidth - menuWidth - 10);
footerHeight = $("footer").innerHeight();
$("#main").height(windowHeight - headerHeight - footerHeight);
$("#main").width(windowWidth - menuWidth);
$(".fixed").width(windowWidth - menuWidth);
});
//On window resize
$(window).resize(function() {
windowWidth = $(window).width();
windowHeight = $(window).height();
menuWidth = $("#nav").width();
menuWidth = $("#nav").outerWidth();
headerHeight = $("header").height();
$("#main").height(windowHeight - headerHeight - 40);
$("#main").width(windowWidth - menuWidth - 10);
footerHeight = $("footer").innerHeight();
$("#main").height(windowHeight - headerHeight - footerHeight);
$("#main").width(windowWidth - menuWidth);
$(".fixed").width(windowWidth - menuWidth);
});
//Update close
@@ -39,6 +43,11 @@ $(document).ready(function () {
});
});
//Add styled class to dataTables_lenght
$(document).ready(function() {
$(".dataTables_length label select").addClass("styled");
});
//Main fadeIn
$(document).ready(function () {
$("#main").hide();