Template:Team:TU Munich/LabHeader

From 2012.igem.org

(Difference between revisions)
Line 180: Line 180:
   if ($(this).hasClass('detailed')){
   if ($(this).hasClass('detailed')){
     $(this).removeClass('detailed')
     $(this).removeClass('detailed')
-
     $(this).text('Hide Details...')
+
     $(this).text('Show Details...')
   }else {
   }else {
     $(this).addClass('detailed')
     $(this).addClass('detailed')
-
     $(this).text('Show Details...')  
+
 
 +
     $(this).text('Hide Details...')  
   }   
   }   
  });
  });
  $('h1 span.mw-headline').click(function() {
  $('h1 span.mw-headline').click(function() {
   $('#W'+this.id).fadeToggle("slow", "linear")
   $('#W'+this.id).fadeToggle("slow", "linear")
 +
  if ($('a#'+this.id).hasClass('detailed')){
 +
    $('a#'+this.id).removeClass('detailed')
 +
    $('a#'+this.id).text('Show Details...')
 +
  }else {
 +
    $('a#'+this.id).addClass('detailed')
 +
 +
    $('a#'+this.id).text('Hide Details...')
 +
  }
  });
  });
  $('.experiment h3 span.mw-headline').attr({ onMouseOver: "this.style.cursor='pointer'"})
  $('.experiment h3 span.mw-headline').attr({ onMouseOver: "this.style.cursor='pointer'"})

Revision as of 15:24, 31 August 2012