1(function ($) { 2 'use strict'; 3 4 $(document).ready(function() { 5 $('.ins-ppc-faq-widget .faq-box-top').on('click', function() { 6 7 // Selects the description element next to the clicked title 8 const faqDescription = $(this).siblings('.faq-box-description'); 9 const isActive = faqDescription.is(':visible'); 10 11 // Collapse all descriptions first 12 $('.ins-ppc-faq-widget .faq-box-description').slideUp(); 13 $('.ins-ppc-faq-widget .faq-box-top').removeClass('active'); 14 $('.ins-ppc-faq-widget .faq-box-top-svg-plus').show(); 15 $('.ins-ppc-faq-widget .faq-box-top-svg-negative').hide(); 16 17 // Expands only if the clicked item was not already open 18 if (!isActive) { 19 faqDescription.slideDown(); 20 $(this).addClass('active'); 21 22 // Hide plus and show minus only for the clicked item 23 $(this).find('.faq-box-top-svg-plus').hide(); 24 $(this).find('.faq-box-top-svg-negative').show(); 25 } 26 }); 27 28 // Initial state for all items 29 $('.ins-ppc-faq-widget .faq-box-top-svg-plus').show(); 30 $('.ins-ppc-faq-widget .faq-box-top-svg-negative').hide(); 31 }); 32 }(jQuery));
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.