Line 113: | Line 113: | ||
} | } | ||
</style> | </style> | ||
+ | |||
+ | $(".accordion-titulo").click(function(){ | ||
+ | |||
+ | var contenido=$(this).next(".accordion-content"); | ||
+ | |||
+ | if(contenido.css("display")=="none"){ //open | ||
+ | contenido.slideDown(250); | ||
+ | $(this).addClass("open"); | ||
+ | } | ||
+ | else{ //close | ||
+ | contenido.slideUp(250); | ||
+ | $(this).removeClass("open"); | ||
+ | } | ||
+ | |||
+ | }); | ||
<div id="container-main"> | <div id="container-main"> |
Revision as of 22:22, 29 October 2017
Environmental regulations
This collaboration was made between iGEM Pasteur team and iGEM UChile_OpenBio-CeBiB team.
The questions must be in here
Questions
$(".accordion-titulo").click(function(){ var contenido=$(this).next(".accordion-content"); if(contenido.css("display")=="none"){ //open contenido.slideDown(250); $(this).addClass("open"); } else{ //close contenido.slideUp(250); $(this).removeClass("open"); } });
![](https://static.igem.org/mediawiki/2017/1/11/T--UChile_OpenBio-CeBiB--GreenArrow.png)
![](https://static.igem.org/mediawiki/2017/1/11/T--UChile_OpenBio-CeBiB--GreenArrow.png)