1(function($) { 2 3 function toggleAccordion($accordion, speed) { 4 5 if (speed == null) {speed = 'fast';} 6 var $content = $accordion.siblings('.content'); 7 8 $accordion.parent().toggleClass("open"); 9 if ($accordion.parent().hasClass("open")) { 10 $content.animateToAutoHeight('fast'); 11 } else { 12 $content.animate({'height':'1px'},'fast'); 13 } 14 15 } 16 17 function accordionClick(ev) { 18 toggleAccordion($(this)); 19 } 20 21 var $accordions = $('.collapsible-content'); 22 23 $accordions.each(function() { 24 // $contents used to be $(this).nextUntil('.collapsible-content, .end-collapsible-content') 25 // Changed because Page Builder in Wordpress added extra divs 26 var $contents = $(this).parent().nextUntil($('.collapsible-content, .end-collapsible-content').parent()); 27 $contents.appendTo($(this).find('.content .in')); 28 }); 29 30 $accordions 31 .children('.title') 32 .click(accordionClick) 33 .siblings('.content') 34 .css('height', '1px') 35 .removeClass("open"); 36 37 $accordions.filter('.default').each(function() { 38 toggleAccordion($(this).find('.title')); 39 }); 40 41})(jQuery);
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.