Template:Team:TU Munich/LabHeader
From 2012.igem.org
(Difference between revisions)
(Created page with "<html> <head> <style type="text/css"> #bodyContent h2 { text-align:center; color:white; background-color:#AAAAAA; margin: 15px 0; padding: 0.5em 0; } h...") |
|||
Line 130: | Line 130: | ||
$('.experiment h3 span.mw-headline').click(function() { | $('.experiment h3 span.mw-headline').click(function() { | ||
if ($(this).hasClass('displayed')) { | if ($(this).hasClass('displayed')) { | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
$(this).parent().parent().children('p').css({display: 'none'}) | $(this).parent().parent().children('p').css({display: 'none'}) | ||
$(this).parent().parent().children('table').css({display: 'none'}) | $(this).parent().parent().children('table').css({display: 'none'}) | ||
$(this).parent().parent().children('ul').css({display: 'none'}) | $(this).parent().parent().children('ul').css({display: 'none'}) | ||
$(this).parent().parent().children('pre').css({display: 'none'}) | $(this).parent().parent().children('pre').css({display: 'none'}) | ||
+ | $(this).removeClass('displayed') | ||
+ | }else { | ||
+ | $(this).parent().parent().children('p').css({display: 'block'}) | ||
+ | $(this).parent().parent().children('table').css({display: 'table'}) | ||
+ | $(this).parent().parent().children('ul').css({display: 'block'}) | ||
+ | $(this).parent().parent().children('pre').css({display: 'block'}) | ||
$(this).addClass('displayed') | $(this).addClass('displayed') | ||
} | } |
Revision as of 21:20, 4 July 2012