Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 297: Line 297:
//Add Inactive Class To All Accordion Headers
//Add Inactive Class To All Accordion Headers
$('.accordion-header').toggleClass('active-header');
$('.accordion-header').toggleClass('active-header');
-
+
$('.accordion-content').children().slideDown().toggleClass('open-content');
 +
//Set The Accordion Content Width
//Set The Accordion Content Width
var contentwidth = $('.accordion-header').width();
var contentwidth = $('.accordion-header').width();
$('.accordion-content').css({'width' : contentwidth });
$('.accordion-content').css({'width' : contentwidth });
-
//Open The First Accordion Section When Page Loads
 
-
$('.accordion-content').children().slideDown().toggleClass('open-content');
 
// The Accordion Effect
// The Accordion Effect

Revision as of 22:05, 12 January 2015