mirror of
https://github.com/rembo10/headphones.git
synced 2026-03-22 04:39:26 +00:00
The layout has changed a little bit, to mini-mize the "white-space" in the header and so fort.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user