Template:Team:TU-Munich/LabHeader
From 2013.igem.org
(Difference between revisions)
Line 116: | Line 116: | ||
$('.labbook p').css({display: 'none'}) | $('.labbook p').css({display: 'none'}) | ||
$('.labbook table').css({display: 'none'}) | $('.labbook table').css({display: 'none'}) | ||
- | |||
$("table").addClass("wikitable"); | $("table").addClass("wikitable"); | ||
$("div.vector_design").addClass("experiment"); | $("div.vector_design").addClass("experiment"); | ||
Line 139: | Line 138: | ||
$('.'+this.value+' div').css({display: 'none'}) | $('.'+this.value+' div').css({display: 'none'}) | ||
} | } | ||
+ | $('h4').parent('div.bezel').children('h4').append("<span style='font-size:90%;float:right;'class='excol'> [Expand]</span>") | ||
+ | $('h4').parent('div.bezel').children().not('h4').hide() | ||
+ | $('h4').parent('div.bezel').children('h4').click(function() { | ||
+ | if( $(this).parent('div.bezel').children('h4').children('span.excol').html() == ' [Expand]') { | ||
+ | $(this).parent('div.bezel').children('h4').children('span.excol').html(' [Collapse]') | ||
+ | }else { | ||
+ | $(this).parent('div.bezel').children('h4').children('span.excol').html(' [Expand]') | ||
+ | } | ||
+ | $(this).parent('div.bezel').children().not('h4').slideToggle() | ||
+ | }); | ||
+ | $('h4').parent('div.bezel').children('h4').attr({ onMouseOver: "this.style.cursor='pointer'"}) | ||
+ | $('h3').parent('div.experiment').children('h3').append("<span style='font-size:90%;float:right;'class='excol'> [Expand]</span>") | ||
+ | $('h3').parent('div.experiment').children().not('h3').hide() | ||
+ | $('h3').parent('div.experiment').children('h3').click(function() { | ||
+ | if( $(this).parent('div.experiment').children('h3').children('span.excol').html() == ' [Expand]') { | ||
+ | $(this).parent('div.experiment').children('h3').children('span.excol').html(' [Collapse]') | ||
+ | }else { | ||
+ | $(this).parent('div.experiment').children('h3').children('span.excol').html(' [Expand]') | ||
+ | } | ||
+ | $(this).parent('div.experiment').children().not('h3').slideToggle() | ||
+ | }); | ||
+ | $('h3').parent('div.experiment').children('h3').attr({ onMouseOver: "this.style.cursor='pointer'"}) | ||
}); | }); | ||
Revision as of 20:45, 20 April 2013