1 2 // 3 // In my case I want to load them onload, this is how you do it! 4 // 5 Event.observe(window, 'load', loadAccordions, false); 6 7 // 8 // Set up all accordions 9 // 10 function loadAccordions() { 11 var topAccordion = new accordion('horizontal_container', { 12 classNames : { 13 toggle : 'horizontal_accordion_toggle', 14 toggleActive : 'horizontal_accordion_toggle_active', 15 content : 'horizontal_accordion_content' 16 }, 17 defaultSize : { 18 width : 525 19 }, 20 direction : 'horizontal' 21 }); 22 23 var bottomAccordion = new accordion('vertical_container'); 24 25 var nestedVerticalAccordion = new accordion('vertical_nested_container', { 26 classNames : { 27 toggle : 'vertical_accordion_toggle', 28 toggleActive : 'vertical_accordion_toggle_active', 29 content : 'vertical_accordion_content' 30 } 31 }); 32 33 // Open first one 34 bottomAccordion.activate($$('#vertical_container .accordion_toggle')[0]); 35 36 // Open second one 37 topAccordion.activate($$('#horizontal_container .horizontal_accordion_toggle')[2]); 38 } 39
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.