Template:Team:TU Munich/ExCol
From 2012.igem.org
(Difference between revisions)
(Undo revision 150515 by Fabian Froehlich (talk)) |
(Undo revision 150512 by Fabian Froehlich (talk)) |
||
Line 5: | Line 5: | ||
$('h2').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | $('h2').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | ||
$('h2').attr({ onMouseOver: "this.style.cursor='pointer'"}) | $('h2').attr({ onMouseOver: "this.style.cursor='pointer'"}) | ||
- | $('h2').nextUntil( | + | $('h2').nextUntil('div').hide() |
$('h2').click(function() { | $('h2').click(function() { | ||
- | $(this).nextUntil( | + | $(this).nextUntil('div').fadeToggle() |
}); | }); | ||
$('h3').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | $('h3').append("<span style='font-size:50%;float:right;'class='excol col'> [Expand/Collapse]</span>") | ||
- | $('h3').nextUntil( | + | $('h3').nextUntil('div').hide() |
$('h3').click(function() { | $('h3').click(function() { | ||
- | $(this).nextUntil( | + | $(this).nextUntil('div').fadeToggle() |
}); | }); | ||
$('h3').attr({ onMouseOver: "this.style.cursor='pointer'"}) | $('h3').attr({ onMouseOver: "this.style.cursor='pointer'"}) |
Revision as of 20:17, 23 September 2012