1// Responsive Accordion v1.3, Copyright 2014, Joe Mottershaw, https://github.com/joemottershaw/ 2// ============================================================================================ 3 4 jQuery(document).ready(function($) { 5 $('.responsive-accordion').each(function() { 6 // Set Expand/Collapse Icons 7 $('.responsive-accordion-minus', this).hide(); 8 9 // Hide panels 10 $('.responsive-accordion-panel', this).hide(); 11 12 // Bind the click event handler 13 $('.responsive-accordion-head', this).click(function(e) { 14 // Get elements 15 var thisAccordion = $(this).parent().parent(), 16 thisHead = $(this), 17 thisPlus = thisHead.find('.responsive-accordion-plus'), 18 thisMinus = thisHead.find('.responsive-accordion-minus'), 19 thisPanel = thisHead.siblings('.responsive-accordion-panel'); 20 21 // Reset all plus/mins symbols on all headers 22 thisAccordion.find('.responsive-accordion-plus').show(); 23 thisAccordion.find('.responsive-accordion-minus').hide(); 24 25 // Reset all head/panels active statuses except for current 26 thisAccordion.find('.responsive-accordion-head').not(this).removeClass('active'); 27 thisAccordion.find('.responsive-accordion-panel').not(this).removeClass('active').slideUp(); 28 29 // Toggle current head/panel active statuses 30 if (thisHead.hasClass('active')) { 31 thisHead.removeClass('active'); 32 thisPlus.show(); 33 thisMinus.hide(); 34 thisPanel.removeClass('active').slideUp(); 35 } else { 36 thisHead.addClass('active'); 37 thisPlus.hide(); 38 thisMinus.show(); 39 thisPanel.addClass('active').slideDown(); 40 } 41 }); 42 }); 43 });
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.