Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 378: Line 378:
if (checkIfActive == 0) {
if (checkIfActive == 0) {
$('.collapseMenu').css("background-color", "red");
$('.collapseMenu').css("background-color", "red");
-
$('.collapseMenu').html("jQuery magic in action!");
+
$('.collapseMenu').html("Expand All");
checkIfActive = 1;
checkIfActive = 1;
$('.accordion-header').next().slideToggle().toggleClass('open-content');
$('.accordion-header').next().slideToggle().toggleClass('open-content');
Line 386: Line 386:
checkIfActive = 0;
checkIfActive = 0;
$('.accordion-header').next().slideToggle().toggleClass('open-content');
$('.accordion-header').next().slideToggle().toggleClass('open-content');
 +
$('.collapseMenu').html("Collapse All");
}
}

Revision as of 18:27, 14 January 2015