Template:Team:TU Munich/LabHeader

From 2012.igem.org

(Difference between revisions)
Line 190: Line 190:
  $('a.WDetails').click(function() {
  $('a.WDetails').click(function() {
   $('#W'+this.id).fadeToggle("slow", "linear")
   $('#W'+this.id).fadeToggle("slow", "linear")
 +
  if ($(this).hasClass('detailed')){
 +
    $(this).addClass('detailed')
 +
    $(this).text('Hide Details...')
 +
  }else {
 +
    $(this).removeClass('detailed')
 +
    $(this).text('Show Details...')
 +
  } 
  });
  });
  $('h1 span.mw-headline').click(function() {
  $('h1 span.mw-headline').click(function() {

Revision as of 15:19, 31 August 2012