1jQuery(document).ready(function($) { 2 function syncHiddenSlidesFocusable($slider) { 3 $slider.find('.slick-slide').each(function() { 4 var $slide = $(this); 5 var isHidden = $slide.attr('aria-hidden') === 'true'; 6 var $focusables = $slide.find('a, button, input, select, textarea, [tabindex]'); 7 8 if (isHidden) { 9 $focusables.attr('tabindex', '-1'); 10 } else { 11 $focusables.removeAttr('tabindex'); 12 } 13 }); 14 } 15 16 17 // For Slider 18 $( '.exibart-post-pp-slider' ).each(function( index ) { 19 20 var slider_id = $(this).attr('id'); 21 22 23 if( typeof(slider_id) != 'undefined' && slider_id != '' ) { 24 var $slider = jQuery('#' + slider_id); 25 26 $slider.on('init reInit afterChange setPosition', function() { 27 syncHiddenSlidesFocusable($slider); 28 }); 29 30 $slider.slick({ 31 lazyLoad: 'ondemand', 32 dots : false, 33 infinite : true, 34 arrows : true, 35 speed : 500, 36 autoplay : true, 37 autoplaySpeed : 5000, 38 slidesToShow : 1, 39 slidesToScroll : 1, 40 rtl : false, 41 }); 42 43 syncHiddenSlidesFocusable($slider); 44 45 jQuery('.exibart-home-slider-text-overlay').fadeIn(); 46 } 47 48 }); 49});
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.