Team:WITS-CSIR SA/common.js

From 2011.igem.org

(Difference between revisions)
Line 12: Line 12:
     backgroundRepeat: 'repeat-x',
     backgroundRepeat: 'repeat-x',
     height: '155px'
     height: '155px'
-
  });
 
-
 
-
  var arr = $.grep($('#menubar li'), function(e,i){
 
-
    return $(e).text() == 'teams'
 
-
  });
 
-
 
-
  arr.each(function(){
 
-
    $(this).hide();
 
   });
   });
}
}

Revision as of 12:11, 8 May 2011

function ResizeLayout() {

 $('#top-section, #content').css({
   width: '100%'
 });

}

function RebuildHeader() {

 $('#p-logo').empty();
 $('#top-section').css({
   backgroundImage: 'url(https://static.igem.org/mediawiki/2011/5/53/Body_bg.gif)',
   backgroundColor: '#666666',
   backgroundRepeat: 'repeat-x',
   height: '155px'
 });

}

function RemoveTitle(){

 $('.firstHeading:first').remove();

}

$(function() {

 ResizeLayout();
 RebuildHeader();
 RemoveTitle();

});