1let TableCSV = function( $scope, $ ){ 2 var section_id = $scope.data('id'), 3 wrapper_id = '#tablentor-table-csv-'+section_id, 4 tableWrapper = $(wrapper_id); 5 table_id = $(wrapper_id + ' .tablentor-table-csv'); 6 options = tableWrapper.data('table'); 7 8 if ( ! options ) { 9 return; 10 } 11 12 options = JSON.parse( atob(options) ); 13 14 if ( ! options.table || 'yes' !== options.table ) { 15 return; 16 } 17 18 new DataTable(table_id, { 19 paging: 'yes' === options?.paging, 20 ordering: 'yes' === options?.ordering, 21 searching: 'yes' === options?.searching, 22 initComplete: function(){ 23 tableWrapper.addClass('data-table-initialized'); 24 if ( 'yes' !== options?.paging ) { 25 $(table_id).find('.dt-info').remove(); 26 } 27 28 if ( 'no' === options?.paging_length ) { 29 tableWrapper.find('.dt-length').remove(); 30 } 31 } 32 }); 33} 34 35jQuery(window).on("elementor/frontend/init", function () { 36 elementorFrontend.hooks.addAction("frontend/element_ready/tablentor-table-csv.default", TableCSV); 37}); 38
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.