1/* 2** Accordion Workaround draft 3*/ 4 5 6$(document).ready(function () { 7 8 // init content 9 $('.accordion-content1:not(.opened)').slideUp('fast'); 10 11 // toggle accordion 12 $('.accordion-toggler1').click(function () { 13 var $parent = $(this).closest('.product-group-items'); 14 if ($(this).hasClass('opened')) { 15 $parent.children('.accordion-content1').slideUp('fast'); 16 $(this).removeClass('opened'); 17 } else { 18 $parent.children('.accordion-content1').slideDown('fast'); 19 $(this).addClass('opened'); 20 } 21 }); 22 23 // toggle accordion 24 $('.accordion-toggler').click(function () { 25 var _this = $(this); 26 //var $parent = _this.closest('.product-group-items'); 27 if (_this.hasClass('opened')) { 28 _this.removeClass('opened'); 29 $('[data-accordion-identifier="' + _this.attr('data-accordion-target') + '"]').slideUp('fast'); 30 } else { 31 _this.addClass('opened'); 32 $('[data-accordion-identifier="' + _this.attr('data-accordion-target') + '"]').slideDown('fast'); 33 } 34 }); 35 36 // Curtain 37 $('.see-more').on('click', function (e) { 38 $(this).toggleClass('expanded').closest('.product-group-items').find('.product-group-item-content').readmore('toggle'); 39 }); 40 41 $('.product-group-item-content.menu-accordion-content').each(function () { 42 if ($(this).height() > 260) { 43 $(this).addClass('has-curtain').readmore({ 44 speed: 300, 45 collapsedHeight: 250, 46 heightMargin: 10, 47 moreLink: '', 48 lessLink: '' 49 }); 50 } 51 }); 52});
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.