1jQuery(document).ready(function($) { 2 function updateAriaTabindex() { 3 // Remove aria-hidden and tabindex from the parent .slick-slide 4 $('.slick-slide').removeAttr('tabindex'); 5 6 // Set tabindex="-1" and aria-hidden="true" for hidden slides' child elements 7 $('.slick-slide').find('.wppsac-post-content-position').attr('tabindex', '-1').css('display', 'none'); 8 9 // Set tabindex="0" and aria-hidden="false" for the active slide's child elements 10 $('.slick-slide.slick-active').find('.wppsac-post-content-position').attr('tabindex', '0').css('display', 'block'); 11 } 12 13 // Handle before slide change 14 $('#wppsac-post-slider-1').on('beforeChange', function(event, slick, currentSlide, nextSlide) { 15 setTimeout(function() { 16 updateAriaTabindex(); 17 }, 100); // Small timeout to ensure Slick Slider updates are complete 18 }); 19 20 // Handle after slide change 21 $('#wppsac-post-slider-1').on('afterChange', function(event, slick, currentSlide) { 22 setTimeout(function() { 23 updateAriaTabindex(); 24 }, 100); // Small timeout to ensure Slick Slider updates are complete 25 }); 26 27 // Initial setup on page load 28 updateAriaTabindex(); // Ensure parent .slick-slide doesn't have aria-hidden or tabindex 29});
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.