1(function($){ 2 3 var initializeFaqBlock = function($block) { 4 $block.find('.title').click(function(event) { 5 var $item = $(this).closest('.item'); 6 var $content = $item.find('.content'); 7 8 if (!$item.hasClass('active')) { 9 $('.faq_items .item').removeClass('active').find('.content').slideUp(); 10 $item.addClass('active'); 11 $content.slideDown(); 12 } else { 13 $item.removeClass('active'); 14 $content.slideUp(); 15 } 16 17 event.preventDefault(); 18 }); 19 }; 20 21 $(document).ready(function() { 22 $('.faq').each(function() { 23 initializeFaqBlock($(this)); 24 }); 25 }); 26 27 // Initialize dynamic block preview (editor). 28 if( window.acf ) { 29 window.acf.addAction( 'render_block_preview/type=faq', initializeFaqBlock ); 30 initializeFaqBlock( $(this) ); 31 } 32 33})(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.