1/** 2 * Dynamic pagination in widgets 3 */ 4jQuery( document ).ready( function () { 5 jQuery( 'body' ).on( 'click', '.widget-pagination a', function ( e ) { 6 e.preventDefault(); 7 8 // Current Page 9 let link, container, dataId, modWrapper; 10 link = jQuery( this ).attr( 'href' ); 11 12 container = jQuery( this ).parents( '.elementor-widget-container' ); 13 14 dataId = container.closest( '.elementor-element' ).attr( 'data-id' ); 15 16 modWrapper = jQuery( this ).closest( '.tg-module-wrapper' ); 17 18 container.height( modWrapper.outerHeight() ); 19 20 modWrapper.removeClass( 'tg-fade-in' ); 21 22 // load content 23 let result = container.load( link + ' [data-id="' + dataId + '"] .tg-module-wrapper', function () { 24 jQuery( this ).css( 'height', 'auto' ); 25 }); 26 27 } ); 28} );
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.