1$(document).ready(function () { 2 var Accordion = { 3 $item: $('.accordion-item'), 4 $link: $('.accordion-link'), 5 $content: $('.accordion-content'), 6 7 toggle: function () { 8 this.$link.on('click', function (e) { 9 var $item = $(this).parent(this.$item); 10 var $content = $(this).next(this.$content); 11 12 e.preventDefault(); 13 14 $item.toggleClass('accordion-item--active'); 15 $content.slideToggle('fast', function () { 16 if ($(this).attr('aria-hidden') === 'true') { 17 $(this).attr('aria-hidden', 'false'); 18 } else { 19 $(this).attr('aria-hidden', 'true'); 20 } 21 }); 22 }); 23 }, 24 25 init: function () { 26 this.toggle(); 27 }, 28 }; 29 30 return Accordion.init(); 31});
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.