Team:ATOMS-Turkiye/Templates/AutohideContent
From 2013.igem.org
(Difference between revisions)
(One intermediate revision not shown) | |||
Line 11: | Line 11: | ||
next = $(this).parent().next(); | next = $(this).parent().next(); | ||
if(next.is(':animated')) | if(next.is(':animated')) | ||
- | + | return; | |
if(next.hasClass("contentVisible")) | if(next.hasClass("contentVisible")) | ||
{ | { | ||
Line 25: | Line 25: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | $(".article .mw-headline").click(toggleContent); | + | $(".article h2 .mw-headline").click(toggleContent); |
- | a = $(".article .mw-headline").parent().next(); | + | a = $(".article h2 .mw-headline").parent().next(); |
a.addClass("contentVisible"); | a.addClass("contentVisible"); | ||
a.hide(); | a.hide(); |
Latest revision as of 00:51, 5 October 2013