1jQuery(document).ready(function ($) { 2 if( $('body').hasClass('wp-admin') ) { 3 return; 4 } 5 6 $('.timeline-date-slider-vive').each(function(){ 7 var section_id = $(this).attr('id'); 8 9 var slider_dates = new Splide( '#'+section_id+' .date-slider', {} ); 10 11 slider_dates.on( 'arrows:mounted', function () { 12 var are_arrows_needed = $('#'+section_id).find('.date-slider .splide__slide:not(.is-visible)'); 13 if(!are_arrows_needed.length) { 14 $('#'+section_id).find('.date-slider .splide__arrows').addClass('hidden'); 15 } 16 }); 17 18 slider_dates.mount(); 19 var slider_content = new Splide( '#'+section_id+' .content-slider', {} ); 20 21 slider_content.sync( slider_dates ).mount(); 22 }); 23});
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.