1/** 2 * AQPB View JS 3 * Front-end js for Aqua Page Builder blocks 4 */ 5 6/** Fire up jQuery - let's dance! */ 7jQuery(document).ready(function($){ 8 9 /** Tabs & Toggles 10 -------------------------------*/ 11 // Tabs 12 if(jQuery().tabs) { 13 $(".aq_block_tabs").tabs({ 14 show: true 15 }); 16 } 17 18 // Toggles 19 $('.aq_block_toggle .tab-head, .aq_block_toggle .arrow').each( function() { 20 var toggle = $(this).parent(); 21 22 $(this).click(function() { 23 toggle.find('.tab-body').slideToggle(); 24 return false; 25 }); 26 27 }); 28 29 // Accordion 30 $(document).on('click', '.aq_block_accordion_wrapper .tab-head, .aq_block_accordion_wrapper .arrow', function() { 31 var $clicked = $(this); 32 33 $clicked.addClass('clicked'); 34 35 $clicked.parents('.aq_block_accordion_wrapper').find('.tab-body').each(function(i, el) { 36 if($(el).is(':visible') && ( $(el).prev().hasClass('clicked') || $(el).prev().prev().hasClass('clicked') ) == false ) { 37 $(el).slideUp(); 38 } 39 }); 40 41 $clicked.parent().children('.tab-body').slideToggle(); 42 43 $clicked.removeClass('clicked'); 44 45 return false; 46 }); 47 48});
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.