Template:Sifuentes04

From 2014.igem.org

(Difference between revisions)
Line 294: Line 294:
$(document).ready(function() {
$(document).ready(function() {
//Add Inactive Class To All Accordion Headers
//Add Inactive Class To All Accordion Headers
-
$('.accordion-header').toggleClass('active-header');
+
$('.accordion-header')..toggleClass('active-header').toggleClass('inactive-header').next().slideToggle().toggleClass('open-content');
//Set The Accordion Content Width
//Set The Accordion Content Width
Line 302: Line 302:
//Open The First Accordion Section When Page Loads
//Open The First Accordion Section When Page Loads
//$('.accordion-header').first().toggleClass('active-header').toggleClass('inactive-header');
//$('.accordion-header').first().toggleClass('active-header').toggleClass('inactive-header');
-
// $('.accordion-content').first().slideDown().toggleClass('open-content');
+
/$('.accordion-content').first().slideDown().toggleClass('open-content');
// The Accordion Effect
// The Accordion Effect

Revision as of 20:37, 12 January 2015