RGL Browser: a bunch of style updates to make it less fugly

This commit is contained in:
john.j.camilleri
2013-01-21 10:44:30 +00:00
parent 0a7cb6940c
commit 3c5955685e
3 changed files with 124 additions and 138 deletions

View File

@@ -127,7 +127,7 @@ $(document).ready(function() {
}
var setTitle = function(s){
$('#tabbar h2').html(s);
$('#module_name').html(s);
$('title').html(state.title + ": " + s);
}
@@ -189,7 +189,7 @@ $(document).ready(function() {
return false;
})
// .appendTo("#tabbar")
.insertBefore("#tabbar *:last-child")
.insertAfter("#tabbar *:last-child")
});
showPanel(".panel:first");
@@ -232,7 +232,6 @@ $(document).ready(function() {
if (!module) continue;
$('<a>')
.html(module)
.addClass('button')
.attr('href', "#"+lang+"/"+module+".gf")
.appendTo("#modules");
}
@@ -406,7 +405,8 @@ $(document).ready(function() {
});
var recalculateHeights = function() {
$('body').height( $(window).height()-60); // just found empirically
var x = 40; // just found empirically
$('body').height( $(window).height()-x);
$('.maxheight').each(function(){
var obj = $(this);
var parent = obj.parent();