1jQuery(document).ready(function ($) { 2 // Single event handler for all buttons 3 $(".promises button").click(function () { 4 // Remove active class from all buttons 5 $(this).siblings().removeClass('active'); 6 // Add active class to clicked button 7 $(this).addClass('active'); 8 9 10 // Get the clicked filter class 11 var clickedClass = $(this).attr('class').split(' ')[0]; 12 13 // Hide all child accordions initially 14$('.accordion-item').collapse('show'); 15 $('.accordion .accordion .accordion-item').hide(); 16 17 // Show child accordions that match the clicked filter class 18 $('.accordion .accordion .accordion-item.' + clickedClass).show(); 19 20 // Check if all child accordions are hidden and add/remove class to parent 21 $('[data-accordion-type="parent"]').each(function () { 22 var parentAccordion = $(this); 23 var childAccordions = parentAccordion.find('.accordion-item'); 24 25 // Check if there are any child accordions with the clicked class 26 var childAccordionsWithClass = childAccordions.filter('.' + clickedClass); 27 28 // Add or remove the 'all-children-hidden' class 29 if (childAccordionsWithClass.length === 0) { 30 parentAccordion.addClass('all-children-hidden'); 31 } else { 32 parentAccordion.removeClass('all-children-hidden'); 33 } 34 }); 35 }); 36}); 37 var swiper = new Swiper(".mySwiper.trans", { 38 39 autoplay: { 40 delay: 6000, 41 }, 42 43 pagination: { 44 el: ".swiper-pagination", 45 46 }, 47 48 navigation: { 49 nextEl: ".swiper-button-next", 50 prevEl: ".swiper-button-prev", 51 }, 52 }); 53 54 var swiper = new Swiper(".mySwiper.teamsters", { 55 pagination: { 56 el: ".swiper-pagination", 57 58 }, 59 60 });
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.