Logo CEWEB.br Logo NIC.br Logo CGI.br
Home Sobre o projeto

Sites Atualizados

Lista dos novos sites adicionados a plataforma na última atualização

Endereço Nota Erros Avisos

portaltransparencia.goncalves.mg.gov.br/telefones-ute
is

93.91 4 49
Recomendações Avaliadas
1.1 Respeitar os Padrões Web.

Recomendações

Número Descrição Quantidade Linhas Código Fonte
1.1.3 Presença de CSS(s) in-line 2 400 400
1.1.6 Presença de javascript(s) interno 11 14 327 336 341 376 444 486 517 526 557 580
400 <![CDATA[<div style="overflow: hidden; position: relative; width: 980px; height: 165px;" id="master0"><div style="position: absolute; width: 980px; height: 165px; top: 0pt; left: 0pt; background-color: transparent; z-index: 1;" id="canvas0_0"><a id="hyp_imgRotativo" class="pnl_img" title="Ir para a página principal" href="http://portaltransparencia.goncalves.mg.gov.br/principal"><img src="//portalfacilarquivos.blob.core.windows.net/uploads/GONCALVESPORTALTRANSPARENCIA/painel/painel_0.jpg" alt="Painel do site" title="Ir para a página principal"/></a></div></div>]]>
400 <![CDATA[<div style="position: absolute; width: 980px; height: 165px; top: 0pt; left: 0pt; background-color: transparent; z-index: 1;" id="canvas0_0"><a id="hyp_imgRotativo" class="pnl_img" title="Ir para a página principal" href="http://portaltransparencia.goncalves.mg.gov.br/principal"><img src="//portalfacilarquivos.blob.core.windows.net/uploads/GONCALVESPORTALTRANSPARENCIA/painel/painel_0.jpg" alt="Painel do site" title="Ir para a página principal"/></a></div>]]>
14 <![CDATA[<script type="text/javascript"> var PageSizeShow = 10; //Quantidade de páginas que será exibida var PageSize = 20; //Quantidade de registros por página var jsFunction = "GetTel"; //Nome da função javascript de exibição de dados. function GetTel(Page, cdUnidadeTipo) { if(cdUnidadeTipo == null) var cdUnidadeTipo = document.getElementById('ddl_cdUnidadeTipo').value; if((cdUnidadeTipo == null) || (cdUnidadeTipo == "")) var cdUnidadeTipo = "-1"; var x = 1; tel_lis.GetTel(Page, cdUnidadeTipo, PageSize, function(res) { var div = "telefones"; var divMain = document.createElement("div"); divMain.setAttribute("id", div); if(res.value != null) { var cdUnidadeTipo = -1; var cdUnidade = -1; SetPags(res.value.Rows[0].TOTALROWS, Page); var pagin = document.getElementById("paginacao"); for(var y = 0; y < res.value.Rows.length; y++) { if(cdUnidade != res.value.Rows[y].CDUNIDADE) { if(cdUnidadeTipo != res.value.Rows[y].CDUNIDADETIPO) { if(y == 0) Display(Page, res.value.Rows[y].CDUNIDADE); var h4 = document.createElement("h4"); h4.appendChild(document.createTextNode(res.value.Rows[y].NMUNIDADETIPO)); divMain.appendChild(h4); var ul = document.createElement("ul"); divMain.appendChild(ul); x = 1; } var li = document.createElement("li"); var a = document.createElement("a"); var spanNome = document.createElement("span"); var spanTelefone = document.createElement("span"); spanNome.setAttribute("class", "nome"); spanNome.setAttribute("className", "nome"); spanNome.appendChild(document.createTextNode(res.value.Rows[y].NMUNIDADE)); spanTelefone.setAttribute("class", "tel"); spanTelefone.setAttribute("className", "tel"); if (res.value.Rows[y].NUTELEFONE != null) { if (isNaN(Number(res.value.Rows[y].NUTELEFONE))) { spanTelefone.appendChild(document.createTextNode((res.value.Rows[y].NUPREFIXO.substr(0,1)!=""?"("+res.value.Rows[y].NUPREFIXO+") ":"") + res.value.Rows[y].NUTELEFONE)); } else { if (res.value.Rows[y].NUTELEFONE.length > 8) spanTelefone.appendChild(document.createTextNode((res.value.Rows[y].NUPREFIXO.substr(0,1)!=""?"("+res.value.Rows[y].NUPREFIXO+") ":"") + res.value.Rows[y].NUTELEFONE.substring(0,5) + "-" + res.value.Rows[y].NUTELEFONE.substring(5, res.value.Rows[y].NUTELEFONE.length))); else if (res.value.Rows[y].NUTELEFONE.length == 8) spanTelefone.appendChild(document.createTextNode((res.value.Rows[y].NUPREFIXO.substr(0,1)!=""?"("+res.value.Rows[y].NUPREFIXO+") ":"") + res.value.Rows[y].NUTELEFONE.substring(0,4) + "-" + res.value.Rows[y].NUTELEFONE.substring(4, res.value.Rows[y].NUTELEFONE.length))); else spanTelefone.appendChild(document.createTextNode((res.value.Rows[y].NUPREFIXO.substr(0,1)!=""?"("+res.value.Rows[y].NUPREFIXO+") ":"") + res.value.Rows[y].NUTELEFONE)); } } else spanTelefone.appendChild(document.createTextNode(" ")); a.setAttribute("href", "javascript:Display(" + Page + "," + res.value.Rows[y].CDUNIDADE +")"); a.appendChild(spanNome); a.appendChild(spanTelefone); li.setAttribute("class", "item" + x); li.setAttribute("className", "item" + x); li.appendChild(a); ul.appendChild(li); divMain.appendChild(pagin); if(x == 1) x = 2; else x = 1; cdUnidadeTipo = res.value.Rows[y].CDUNIDADETIPO; cdUnidade = res.value.Rows[y].CDUNIDADE; } } } else { SetPags(-1, Page); } document.getElementById(div).parentNode.replaceChild(divMain, document.getElementById(div)); }); } //Construtor de elementos function buildElem(elem, filho) { elem = typeof elem === 'string' ? document.createElement( elem ) : elem; if( !(typeof filho === 'undefined') ){ try{ if( typeof filho === 'string' ){ filho = document.createTextNode( filho ); } else if( typeof filho === 'object'){ for(var i=0,l=filho.length; i<l;i++){ elem.appendChild(filho[i]); } return; } elem.appendChild(filho); } catch(e) {} } return elem; } function Display(Page, cdUnidade) { tel_lis.LoadUnidade(cdUnidade, function(res) { var divMain = document.createElement("div"), a, b; divMain.setAttribute("id", "detalhes_vis"); if(res.value != null) { var img = document.createElement("img"); var h4nmUnidadeTipo = document.createElement("h4"); var h5nmUnidade = document.createElement("h5"); var h6dsDescricao = document.createElement("h6"); var pdsDescricao = document.createElement("p"); img.src = res.value.Tables[0].Rows[0].CAMINHO + res.value.Tables[0].Rows[0].IDIMAGEM + "/" + res.value.Tables[0].Rows[0].IDIMAGEM + "_231X170." + res.value.Tables[0].Rows[0].NMIMAGEMEXTENSAO; img.alt = res.value.Tables[0].Rows[0].NMUNIDADE; h4nmUnidadeTipo.appendChild(document.createTextNode(res.value.Tables[0].Rows[0].NMUNIDADETIPO)); h5nmUnidade.appendChild(document.createTextNode(res.value.Tables[0].Rows[0].NMUNIDADE)); h6dsDescricao.appendChild(document.createTextNode("Descrição:")); pdsDescricao.appendChild(document.createTextNode(res.value.Tables[0].Rows[0].DSUNIDADE)); var cdUnidadeLocal = -1; if(res.value.Tables[0].Rows[0].IDIMAGEM != null) divMain.appendChild(img); divMain.appendChild(h4nmUnidadeTipo); divMain.appendChild(h5nmUnidade); divMain.appendChild(h6dsDescricao); divMain.appendChild(pdsDescricao); var count = 1; for(var x = 0; res.value.Tables[1].Rows.length > x; x++) { if(cdUnidadeLocal != res.value.Tables[1].Rows[x].CDUNIDADELOCAL) { var y = 1; var h2End = document.createElement("h6"); if(count == 1) h2End.appendChild(document.createTextNode("Endereço: ")); else if(res.value.Tables[1].Rows[x].NMLOGRADOURO != null) h2End.appendChild(document.createTextNode("Endereço " + count + ": ")); var pdsComplemento = document.createElement("p"); var endereco = new Array(); var texto = res.value.Tables[1].Rows[x].NMLOGRADOURO; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } texto = res.value.Tables[1].Rows[x].NULOGRADOURO; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } texto = res.value.Tables[1].Rows[x].DSCOMPLEMENTO; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } texto = res.value.Tables[1].Rows[x].NMBAIRRO; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } texto = res.value.Tables[1].Rows[x].NMCIDADE; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } texto = res.value.Tables[1].Rows[x].NMUF; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } texto = res.value.Tables[1].Rows[x].NMPAIS; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } texto = res.value.Tables[1].Rows[x].NUCEP; texto = texto==null?"":texto.toString(); if(texto.replace(/\s/g,"")!=""){ endereco.push(texto); } if(endereco.length > 0) { var auxEndereco = ""; for(var y = 0; endereco.length > y; y++) { if(y != 0) auxEndereco += ", "; auxEndereco += endereco[y]; } pdsComplemento.appendChild(document.createTextNode(auxEndereco)); } else pdsComplemento.appendChild(document.createTextNode("")); divMain.appendChild(h2End); if(endereco.length > 0){ divMain.appendChild(pdsComplemento); } count ++; } if(res.value.Tables[1].Rows[x].NUTELEFONE != null) { var pLinha = document.createElement("p"); if(y == 1) { pLinha.setAttribute("class", "linha" + y); pLinha.setAttribute("className", "linha" + y); y = 0; } else { pLinha.setAttribute("class", "linha"); pLinha.setAttribute("className", "linha"); y = 1; } var telefoneTipo = res.value.Tables[1].Rows[x].NMUNIDADETELEFONETIPO!=null?res.value.Tables[1].Rows[x].NMUNIDADETELEFONETIPO:"Outros"; var nuTelefone = res.value.Tables[1].Rows[x].NUTELEFONE; if (isNaN(Number(nuTelefone))) pLinha.appendChild(document.createTextNode(telefoneTipo + (res.value.Tables[1].Rows[x].NUPREFIXO!=null && res.value.Tables[1].Rows[x].NUPREFIXO!=" " ?": (" + res.value.Tables[1].Rows[x].NUPREFIXO + ")":"") + " " + nuTelefone)); else if (nuTelefone.length > 8) pLinha.appendChild(document.createTextNode(telefoneTipo + (res.value.Tables[1].Rows[x].NUPREFIXO!=null && res.value.Tables[1].Rows[x].NUPREFIXO!=" " ?": (" + res.value.Tables[1].Rows[x].NUPREFIXO + ")":"") + " " + nuTelefone.substring(0,5) + "-" + nuTelefone.substring(5, nuTelefone.length))); else if (nuTelefone.length == 8) pLinha.appendChild(document.createTextNode(telefoneTipo + (res.value.Tables[1].Rows[x].NUPREFIXO!=null && res.value.Tables[1].Rows[x].NUPREFIXO!=" " ?": (" + res.value.Tables[1].Rows[x].NUPREFIXO + ")":"") + " " + nuTelefone.substring(0,4) + "-" + nuTelefone.substring(4, nuTelefone.length))); else pLinha.appendChild(document.createTextNode(telefoneTipo + (res.value.Tables[1].Rows[x].NUPREFIXO!=null && res.value.Tables[1].Rows[x].NUPREFIXO!=" " ?": (" + res.value.Tables[1].Rows[x].NUPREFIXO + ")":"") + " " + nuTelefone)); divMain.appendChild(pLinha); } cdUnidadeLocal = res.value.Tables[1].Rows[x].CDUNIDADELOCAL; } //* Responsável pela unidade if( res.value.Tables[0].Rows[0].NMRESPONSAVELUNIDADE ){ a = buildElem("h6", "Responsável pela unidade:"); b = buildElem("p", res.value.Tables[0].Rows[0].NMRESPONSAVELUNIDADE); buildElem(divMain, [a, b]); } //E-mail da unidade if( res.value.Tables[0].Rows[0].EDEMAILUNIDADE ){ a = buildElem("h6", "E-mail da unidade:"); b = buildElem("p", res.value.Tables[0].Rows[0].EDEMAILUNIDADE); buildElem(divMain, [a, b]); } //Horário de funcionamento if( res.value.Tables[0].Rows[0].DSHORARIOFUNCIONAMENTO ){ a = buildElem("h6", "Horário de funcionamento:"); b = buildElem("p", res.value.Tables[0].Rows[0].DSHORARIOFUNCIONAMENTO); buildElem(divMain, [a, b]); } } document.getElementById("detalhes_vis").parentNode.replaceChild(divMain, document.getElementById("detalhes_vis")); }); } </script>]]>
327 <![CDATA[<script type="text/javascript"> AjaxPro.noUtcTime = true; </script>]]>
336 <![CDATA[<script type="text/javascript"> var siterel = ""; </script>]]>
341 <![CDATA[<script type="text/javascript"> //<![CDATA[ if (sessionStorage.getItem('stylename') != null) { document.getElementById('layoutsite').setAttribute('href', sessionStorage.getItem('stylename')); } else { document.getElementById('layoutsite').setAttribute('href', 'css/geral.css'); } //]]> </script>]]>
376 <![CDATA[<script type="text/javascript"> //<![CDATA[ var isEmpty = true; function buscar() { if (isEmpty) document.location = '/bus_ava.aspx?search='; else document.location = '/bus_ava.aspx?search=' + document.getElementById('uc_painel_buscar').value; } $(function () { document.getElementById("uc_painel_btn_buscar").onclick = buscar; }); if (document.getElementById("uc_painel_buscar").addEventListener) { document.getElementById("uc_painel_buscar").addEventListener('keyup', function () { if (document.getElementById('uc_painel_buscar').value.trim() == "") isEmpty = true; else isEmpty = false; }); } else { document.getElementById("uc_painel_buscar").attachEvent('onkeyup', function () { if (document.getElementById('uc_painel_buscar').value.trim() == "") isEmpty = true; else isEmpty = false; }); } //]]> </script>]]>
444 <![CDATA[<script> //<![CDATA[ (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/sdk.js#xfbml=1&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); //]]> </script>]]>
486 <![CDATA[<script type="text/javascript"> GetTel(0, 0, 0); </script>]]>
517 <![CDATA[<script type="text/javascript"> //<![CDATA[ (function(){ var buscar = document.getElementById("uc_painel_buscar"); buscar.onfocus = function(){if(this.value=='palavra-chave')this.value='';}; buscar.onblur = function(){if(this.value=='')this.value='palavra-chave';}; })(); //]]> </script>]]>
526 <![CDATA[<script type="text/javascript"> //<![CDATA[ (function(){ var divMenu = document.getElementById("uc_menu_menu"); var nuNivelMax = 3; var nmClassMenu = ''; for(var j= 1; j <= nuNivelMax; j++) { nmClassMenu = 'mn_nivel_'+ (j < 10 ? '0' + j.toString() : j.toString()) + '_mais'; var menus = getElementsByClassName(nmClassMenu, 'li', divMenu); for (var i= 0; i< menus.length; i++) { if(menus[i].childNodes.length > 1 && menus[i].childNodes[0].tagName.toLowerCase() == 'a'){ menus[i].childNodes[0].onclick = function(){ var novaClasse = ''; if(this.parentNode.childNodes[1].style.display=='none'){ this.parentNode.childNodes[1].style.display='block'; novaClasse = this.parentNode.className.replace('mais','menos'); this.parentNode.className= novaClasse; }else{ this.parentNode.childNodes[1].style.display='none'; novaClasse = this.parentNode.className.replace('menos','mais'); this.parentNode.className= novaClasse; } return false; } } } } })(); //]]> </script>]]>
557 <![CDATA[<script type="text/javascript"> //<![CDATA[ (function(){ var hyp_email = document.getElementById("uc_navegacao_hyp_email"); if (hyp_email) hyp_email.onclick = function () { Popup('pop_env.aspx?url=http://portaltransparencia.goncalves.mg.gov.br/tel_lis.aspx&titulo=', 'pop_env', 332, 500, -1, -1, 'no', 'no', 'no', 'no'); }; var hyp_imprimir_telefones = document.getElementById("uc_navegacao_hyp_imprimir_telefones"); if (hyp_imprimir_telefones) hyp_imprimir_telefones.onclick = function () { Popup('pop_print_telefones.aspx', 'pop_print', 700, 450, -1, -1, 'no', 'yes', 'no', 'no'); }; })(); //]]> </script>]]>
580 <![CDATA[<script type="text/javascript"> //<![CDATA[ (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', 'UA-8187826-26', 'auto'); ga('create', 'UA-34477479-25', 'auto', {'name':'b'}); ga('send', 'pageview'); ga('b.send', 'pageview'); //]]> </script>]]>