1var l_div = null; 2var l_div_aps = null; 3var l_frame = null; 4 5function abrirFrame(id, obj){ 6 $( '#imgConstituicao' ).hide(); 7 fAscendentes = ""; 8 9 var l_div = obj; 10 if (l_div.getElementsByTagName('div')[0].style.display == "none" || l_div.getElementsByTagName('div')[0].style.display == ""){ 11 l_frame = l_div.getElementsByTagName("iframe")[0]; 12 var link = "action/TematicaAction.php?acao=visualizarTextoAtosVinculados&codigo=" + id + "&word="+fAscendentes; 13 14 l_div.getElementsByTagName("span")[0].style.backgroundPosition = "0px -9px"; 15 l_div.getElementsByTagName('div')[0].style.display = "block"; 16 l_frame.src = link; 17 }else { 18 l_div.getElementsByTagName("span")[0].style.backgroundPosition = "0px 3px"; 19 l_div.getElementsByTagName('div')[0].style.display = "none"; 20 } 21} 22 23function expandir(pObj, nuAscendentes) { 24 l_div = recuperarObjetoPai(pObj, nuAscendentes); 25 l_div_aps = l_div.getElementsByTagName('div')[0]; 26 27 if (l_div_aps.style.display == "" || l_div_aps.style.display == "block") { 28 // setarClassColapse(); 29 setarPropriedadeDisplay(l_div_aps, "none"); 30 pObj.style.backgroundPosition = "0px 3px"; 31 } else { 32 pObj.style.backgroundPosition = "0px -9px"; 33 l_div_aps.innerHTML = "<div style='font-size: 8pt; margin-left: 21px;'>Carregando...</div>"; 34 setarPropriedadeDisplay(l_div_aps, "block"); 35 36 buscarFilhos(retira_acentos(document.getElementsByName('filtroArvore')[0].value),""); 37 38 } 39} 40 41function buscarFilhos(filtro, dshierarquia) { 42 var params = '/action/TematicaAction.php?acao=montarEstruturaTitulos&cotematica=' 43 + l_div.getAttribute("codigo") 44 + "¬ematica=" 45 + filtro 46 + "&nivel=" 47 + 1 48 + "&infiltro=" 49 + l_div.getAttribute("infiltro"); 50 51 processarAjax(params, 'POST', "", mostrarFilhos); 52} 53 54function mostrarFilhos(pRetorno) { 55 try{ 56 //var indice = ''; 57 l_div_aps.innerHTML = pRetorno; 58 59 var posicaoScroll = l_div_aps.offsetTop + 46; 60 if(posicaoScroll <= 110) posicaoScroll = 0; 61 $(window).scrollTop(posicaoScroll); 62 }catch(e){ 63 //alert(e.message); 64 } 65} 66 67function recuperarObjetoPai(obj, nuascendentes) { 68 var objPai = obj; 69 70 for ( var i = 0; i < nuascendentes; i++) { 71 objPai = objPai.parentNode; 72 } 73 74 return objPai; 75} 76 77function setarPropriedadeDisplay(pObj, pDisplay) { 78 pObj.style.display = pDisplay; 79} 80 81function retira_acentos(palavra) { 82 var com_acento = 'áàãâäéèêëÃÂìîïóòõôöúùûüçÃÃâ¬ÃÆÃâÃâÃâ°ÃËÃÅ Ãâ¹Ã�ÃÅÃŽÃ�ÃâÃâÃâ¢ÃâÃâÃÅ¡Ãâ¢ÃâºÃÅÃâ¡'; 83 var sem_acento = 'aaaaaeeeeiiiiooooouuuucAAAAAEEEEIIIIOOOOOUUUUC'; 84 var nova = ''; 85 86 for ( var i = 0; i < palavra.length; i++) { 87 var p = com_acento.indexOf(palavra.substr(i, 1)); 88 89 if (p > -1) { 90 nova += sem_acento.substr(p, 1); 91 } else { 92 nova += palavra.substr(i, 1); 93 } 94 } 95 return nova; 96}
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.