Template:Team:TU Munich/ExCol
From 2012.igem.org
(Difference between revisions)
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('h2').hide() |
$('h2').click(function() { | $('h2').click(function() { | ||
- | $(this).nextUntil(' | + | $(this).nextUntil('h2').fadeToggle() |
console.log(this.localName) | console.log(this.localName) | ||
}); | }); | ||
$('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('h3').hide() |
$('h3').click(function() { | $('h3').click(function() { | ||
- | $(this).nextUntil(' | + | $(this).nextUntil('h3').fadeToggle() |
}); | }); | ||
$('h3').attr({ onMouseOver: "this.style.cursor='pointer'"}) | $('h3').attr({ onMouseOver: "this.style.cursor='pointer'"}) |
Revision as of 20:21, 23 September 2012