Template:Sifuentes04

From 2014.igem.org

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

Revision as of 18:29, 14 January 2015