Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 375: Line 375:
$('.collapseMenu').click(function () {
$('.collapseMenu').click(function () {
-
if (checkIfActive == 0) {
+
-
$('.collapseMenu').css("background-color", "red");
+
-
checkIfActive = 1;
+
$('.accordion-header').next().slideToggle().toggleClass('open-content');
$('.accordion-header').next().slideToggle().toggleClass('open-content');
-
}
 
-
else {
 
-
$('.collapseMenu').css("background-color", "blue");
 
-
checkIfActive = 0;
 
-
$('.accordion-header').next().slideToggle().toggleClass('open-content');
 
-
}
 
});
});

Revision as of 18:12, 14 January 2015