1jQuery(document).ready( function () { 2 3 4 var tipoListado = $('#tipoListado').val(); 5 var columnas = [ 6 { data: 'micrositio', sWidth: tipoListado === 'micrositios' ? '65%' : '80%' , sClass: 'table_align_left'} 7 ]; 8 9 if (tipoListado === 'micrositios') { 10 columnas.push({ data: 'conteo', sWidth: '15%' , sClass: 'table_align_center'}); 11 } 12 13 columnas.push({ data: 'accion', sWidth: '20%' , sClass: 'table_align_center'}); 14 15 $.ajax({ 16 url: '/main_page/carga_datos_micrositio', 17 data: {'clasificacion' : tipoListado}, 18 type: 'POST', 19 beforeSend: function(){ 20 $('#tbody_micrositio').html('<div style="width:600px;height:400px;line-height:400px;margin:0px auto;text-align:center;" align="center"><i style="vertical-align:middle;" class="fa fa-spinner fa-pulse fa-4x"></i></div>'); 21 }, 22 success: function (DATA) 23 { 24 $('#tbody_micrositio').html(''); 25 $('#table_micrositios_listado').DataTable( { 26 responsive: true, 27 destroy: true, 28 paging: true, 29 searching: true, 30 info: false, 31 data: DATA, 32 aLengthMenu: [ 33 [5, 10, 15, 25, 50, 100, -1], 34 [5, 10, 15, 25, 50, "Todos"] 35 ], 36 iDisplayLength: 10, 37 columns: columnas, 38 language: lenguaje 39 40 }); 41 } 42 43 }); 44 45 46 });
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.