зеркало из https://github.com/mozilla/pjs.git
12 строки
345 B
JavaScript
12 строки
345 B
JavaScript
//the main function, call to the effect object
|
|
function ec_init(){
|
|
var myDivs = document.getElementsByClassName("collapsable");
|
|
var myLinks = document.getElementsByClassName('collapse-link');
|
|
|
|
//then we create the effect.
|
|
var myAccordion = new fx.Accordion(myLinks, myDivs, {opacity: true});
|
|
myAccordion.fxa[0].toggle();
|
|
}
|
|
|
|
|