'; html += ' ' + noticia.resumo.replace( /<.>|<. html>'; html += 'VEJA MAIS'; html += '
'; html += ''; count ++; } if( count == limit ) break; } if( html ){ $( '#wrap-noticias' ).prepend( html ); return true; } return false; }, 'json') } var header = getHeader( "/noticias/indice/header.json" ); if( ! header ){ header = getHeader( "/noticias/indiceHeader" ); } header.forEach( function( item ) { if( codigo == item.codigo ){ var limit = 10; var numberFile = Math.ceil( ( query.page * limit ) / item.totalPorArquivo ); var url = "/noticias/indice/" + codigo + '/indice-' + numberFile + '.json'; if( ! getContent( codigo, query.page, 10, item.totalPorArquivo, url ) ){ url = "/noticias/indiceContent/" + codigo + '/' + limit + '/' + query.page + '/'; getContent( codigo, query.page, 10, item.totalPorArquivo, url ) } montarPaginacao( query.page, item.quantidade_total, limit ); } }) return ''; }