Team:WITS-CSIR SA/common.js
From 2011.igem.org
(Difference between revisions)
Line 37: | Line 37: | ||
RemoveTitle(); | RemoveTitle(); | ||
StyleBody(); | StyleBody(); | ||
- | |||
}); | }); |
Revision as of 12:01, 9 May 2011
function RebuildHeader() {
$('#p-logo').empty().append('CSIR Wits
');$('#top-section').css({ backgroundImage: 'url(https://static.igem.org/mediawiki/2011/5/53/Body_bg.gif)', backgroundColor: '#666666', backgroundRepeat: 'repeat-x', height: '155px' });
}
function SetEqualHeights(){
var maxHeight = 0; $('div.equalHeights').each(function(){ maxHeight = Math.max($(this).height(), maxHeight); });
$('div.equalHeights').height(maxHeight + 50);
}
function RemoveTitle(){
$('.firstHeading').eq(0).remove();
}
function StyleBody(){
$('body').addClass('ui-widget-content'); $('#bodyContent, #content').css('background-color', '#666666'); $('table').css('background-color', 'transparent'); $('#catlinks').css({'background-color': 'transparent', border:'none'}).addClass('ui-widget-header ui-corner-all'); var html = $('#footer-box').html(); $('#footer-box').remove(); $('#catlinks').html(html); $('body').css({ 'overflow-x': 'hidden', 'overflow-y': 'visible' });
}
$(function() {
RebuildHeader(); RemoveTitle(); StyleBody();
});