Template:Team:TU Munich/MeetingHeader
From 2012.igem.org
(Difference between revisions)
Line 135: | Line 135: | ||
$("table").addClass("wikitable"); | $("table").addClass("wikitable"); | ||
$("#bodyContent h2").addClass("ui-corner-all"); | $("#bodyContent h2").addClass("ui-corner-all"); | ||
- | + | $('.meeting h2 span.mw-headline').click(function() { | |
- | + | if ($(this).hasClass('displayed')) { | |
- | + | $(this).parent().parent().children('p').css({display: 'none'}) | |
- | + | $(this).parent().parent().children('table').css({display: 'none'}) | |
- | + | $(this).parent().parent().children('ul').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') | |
- | + | } | |
- | + | }); | |
- | + | $('.meeting h2 span.mw-headline').attr({ onMouseOver: "this.style.cursor='pointer'"}) | |
- | + | ||
- | + | ||
}); | }); | ||
</script> | </script> | ||
</head> | </head> | ||
</html> | </html> |
Revision as of 12:30, 31 August 2012