1jQuery(window).on('load', function () { 2 relatorioMetrica.init(); 3}); 4 5var relatorioMetrica = { 6 7 init: function () { 8 relatorioMetrica.relatorio.relatorio1(); 9 }, 10 11 relatorio: { 12 relatorio1: function () { 13 jQuery('.gerar-relatorio-metricas').click(function () { 14 relatorioMetrica.relatorio.relatorio2(); 15 }); 16 }, 17 relatorio2: function () { 18 let dados1 = []; 19 20 let cabecalho = jQuery('.table_relatorio_metrica').find('thead').children(); 21 for (const dados of cabecalho) { 22 let dado = dados.innerText.split('\t'); 23 dados1.push(dado); 24 } 25 26 let tabela = jQuery('.table_relatorio_metrica').find('tbody').children(); 27 28 for (const post of tabela) { 29 let post1 = post.innerText.split('\t'); 30 dados1.push(post1); 31 } 32 33 let csvBody = ''; 34 for (let [rowIndex, postagem] of dados1.entries()) { 35 for (let [cellIndex, dadoPost] of postagem.entries()) { 36 csvBody += dadoPost; 37 if (cellIndex + 1 !== postagem.length) { 38 csvBody += ';'; 39 } 40 } 41 if (rowIndex + 1 !== dados1.length) { 42 csvBody += '\n'; 43 } 44 } 45 var csvDataUri = 'data:text/csv;charset=utf-8,' + encodeURIComponent(csvBody); 46 window.open(csvDataUri, '_blank', 'noopener,noreferrer'); 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.