Veja como a PREVI separa os recursos para os perfis de investimento
<p>Edição 190 | Set/2016</p><h4>Conteúdo relacionado:</h4><ul><li>Set/2016 –
<a calculatedurl="true" appendurl="&itemId=2C9FBF8E76DEBC160176DED79FB17917" pageid="contentRelatedPageId" tag="href">O que você precisa saber sobre Perfis de Investimento</a></li></ul><br/><br/></div></div><div class="block-mais-vistos"><br/><h3 class="so-aqui">Mais vistos</h3><ul><script type="text/javascript">
$(document).ready(function()
{
var url_req=g_LumisRootPath+'lumis/api/rest/previrevista/lumgetdata/restMaisVistos';
varUrlDinamica = '/main.jsp?itemId='+'2C9FBF8E76DEBC160176DEDE48201C1B'
+'&lumPageId='+'2C92808573FCEF31017402C1194E5548';
//Se for midia, adicionar a interface na URL
tipoMaisVisto = '4';
if(tipoMaisVisto!='' && tipoMaisVisto < '5')
varUrlDinamica+='&lumI=br.com.previ.revistaprevi.revista.mediaDetails';
var postData;
//não contabilizar acessos quando não estiver na visão de usuário
if(g_LumisDisplayMode != 0){
postData = {
"acao":"getMaisVistos",
"revistaIdFiltro":"",
"tipos":"4",
"maxRows":3
};
}else{
postData = {
"acao":"addMaisVistos",
"tipo":"4",
"id_conteudo":"2C9FBF8E76DEBC160176DEDE48201C1B",
"url_conteudo": varUrlDinamica,
"revista_id":"2C9FBF8E76DEBC160176DED5EA0529E2",
"revistaIdFiltro":"",
"tipos":"4",
"maxRows":3
};
}
$.ajax
({
type: 'GET',
url: url_req,
data:postData,
error: function()
{
alert('Não foi possível fazer a requisição.');
},
success: function(data)
{
if(data.totalCount == 0)
$(".block-mais-vistos").hide();
$.each(data.rows, function(index, value){
var classe;
if(value.tipo == 0 || value.tipo == 2 )
classe= "video";
else if(value.tipo == 1)
classe= "audio";
else if(value.tipo == 3)
classe= "dialogo";
else if(value.tipo == 4)
classe= "grafico";
else
classe= "doc";
if(index==2)
classe+=" last";
var li=document.createElement("li");
li.setAttribute("class", classe);
var a=document.createElement("a");
var nome = value.nome;
if(!!nome){
if(nome.length > 42)
nome = nome.substring(0, 41) + '...';
}
a.innerHTML=nome;
a.setAttribute("href", value.url_conteudo);
li.appendChild(a);
$(".block-mais-vistos ul").append(li);
});
}
});
});
</script></ul></div></article></section>
<a href="main.jsp?lumPageId=2C92808573FCEF31017402C1194E553A" class="lum-link"/><a href="main.jsp?lumPageId=2C92808573FCEF31017402C1194E553C" class="lum-link"/><a href="main.jsp?lumPageId=2C92808573FCEF31017402C1194E553D" class="lum-link"/><a href="main.jsp?lumPageId=2C92808573FCEF31017402C1194E553B" class="lum-link"/><a href="main.jsp?lumPageId=2C92808573FCEF31017402C1194E553E" class="lum-link"/><input type="hidden" id="es2C928085740C02C701740C33839262A2_null_lum_errorSummary"/></div><input id="contentRelatedPageId" type="hidden" val="/main.jsp?lumPageId=2C92808573FCEF31017402C1194E5530" />
<input id="contentRelatedMobilePageId" type="hidden" val="/main.jsp?lumPageId=2C928085740C02C701740CD2A40678CC" />
<input id="homePageId" type="hidden" val="/main.jsp?lumPageId=2C92808573FCEF31017402B634114AC2" /> <input id="homeMobilePageId" type="hidden" val="/main.jsp?lumPageId=2C928085740C02C701740CCDBCD275B1" /> <input id="livrosDoLeitorPageId" type="hidden" val="/main.jsp?lumPageId=2C92808573FCEF31017402C1194E5541" /> <input id="cartasDoLeitorChannelId" type="hidden" val="/main.jsp?lumChannelId=2C92808573FCEF31017402C1194E553F" />
<!--
Ex de uso:
<a calculatedurl="true" appendurl="&itemId=999999999999999" pageid="contentRelatedPageId" tag="href">Teste de Link</a>
Resultado:
<a href="/main.jsp?lumPageId=8A488ADC42C34E4D0142E2626BC65399&itemId=999999999999999">
--><script>
function loadCalculatedURLs(){
$("[calculatedurl='true']").each(function(){
var url = $(this).attr("pageid");
var urlVal = $("input#"+url).attr("val");
if($(this).attr("appendurl"))
urlVal += $(this).attr("appendUrl");
if($(this).attr("tag")!="")
$(this).attr("href",urlVal);
if($(this).attr("src"))
$(this).attr("src",urlVal);
});
}
document.addEventListener("DOMContentLoaded", loadCalculatedURLs);
</script>
</main>
<footer id="footer"><address>Copyright © <script>document.write(new Date().getFullYear())</script> PREVI - Todos os direitos reservados</address>
<nav>
<ul>
<li><a href="main.jsp?lumPageId=2C928085740C02C701740C21523E3633">Termos e condições de uso</a></li>
<li><a href="http://www.previ.com.br/" target="_blank">Site da PREVI</a></li>
</ul>
</nav>
<input id="contentRelatedPageId" type="hidden" val="/main.jsp?lumPageId=2C92808573FCEF31017402C1194E5530" />
<input id="contentRelatedMobilePageId" type="hidden" val="/main.jsp?lumPageId=2C928085740C02C701740CD2A40678CC" />
<input id="homePageId" type="hidden" val="/main.jsp?lumPageId=2C92808573FCEF31017402B634114AC2" /> <input id="homeMobilePageId" type="hidden" val="/main.jsp?lumPageId=2C928085740C02C701740CCDBCD275B1" /> <input id="livrosDoLeitorPageId" type="hidden" val="/main.jsp?lumPageId=2C92808573FCEF31017402C1194E5541" /> <input id="cartasDoLeitorChannelId" type="hidden" val="/main.jsp?lumChannelId=2C92808573FCEF31017402C1194E553F" />
<!--
Ex de uso:
<a calculatedurl="true" appendurl="&itemId=999999999999999" pageid="contentRelatedPageId" tag="href">Teste de Link</a>
Resultado:
<a href="/main.jsp?lumPageId=8A488ADC42C34E4D0142E2626BC65399&itemId=999999999999999">
--><script>
function loadCalculatedURLs(){
$("[calculatedurl='true']").each(function(){
var url = $(this).attr("pageid");
var urlVal = $("input#"+url).attr("val");
if($(this).attr("appendurl"))
urlVal += $(this).attr("appendUrl");
if($(this).attr("tag")!="")
$(this).attr("href",urlVal);
if($(this).attr("src"))
$(this).attr("src",urlVal);
});
}
document.addEventListener("DOMContentLoaded", loadCalculatedURLs);
</script>
</footer>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript" src="lumis/portal/monitor/impl/script/log.js"></script><script type="text/javascript">
//<![CDATA[
if(document.cookie.search("lumUserLocale=pt_BR")==-1)document.write("<div style=\"display:none\"><img src=\"../../lumis/portal/controller/html/SetLocale.jsp?lumUserLocale=pt_BR\" alt=\" \"/><\/div>");
//]]>
</script></body>
</html>