82
| <![CDATA[<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5ND2WBQ"
height="0" width="0" style="display:none;visibility:hidden"></iframe>]]>
|
87
| <![CDATA[<div class="barra-do-governo" style="position: relative;z-index: 10000000;">
<style>
div.barra-body {
margin: 0;
padding: 0;
height: 44px;
}
</style>
<div class="barra-body">
<div id="barra-brasil" style="background:#7F7F7F; height: 20px; padding:0 0 0 10px;display:block;">
<ul id="menu-barra-temp" style="list-style:none;">
<li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED">
<a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a>
</li>
</ul>
</div>
<!-- Barra Brasil-->
<script defer="defer" src="https://www.ibge.gov.br/includes/barraBrasil.js" type="text/javascript"></script>
</div>
</div>]]>
|
98
| <![CDATA[<div id="barra-brasil" style="background:#7F7F7F; height: 20px; padding:0 0 0 10px;display:block;">
<ul id="menu-barra-temp" style="list-style:none;">
<li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED">
<a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a>
</li>
</ul>
</div>]]>
|
99
| <![CDATA[<ul id="menu-barra-temp" style="list-style:none;">
<li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED">
<a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a>
</li>
</ul>]]>
|
100
| <![CDATA[<li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED">
<a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a>
</li>]]>
|
101
| <![CDATA[<a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a>]]>
|
154
| <![CDATA[<label style="font-size: 0;" for="mod-search-searchword">Buscar</label>]]>
|
209
| <![CDATA[<label style="font-size: 0;" for="mod-search-searchword">Buscar</label>]]>
|
282
| <![CDATA[<div class="indicador-container pure-u-1-2 pure-u-md-1-4" style="order: 2">
<img class="indicador-icon" aria-hidden="true" src="/templates/novo_portal_base/imagens/tag-highlight.png" alt="">
<h3 class="indicador-title">Inflação</h3>
<h4 class="indicador-desc">IPCA <small>Mensal</small></h4>
<p class="indicador-value">0,23 %</p>
<p class="indicador-date">ago 2023</p>
<div class="indicador-sparkline"></div>
</div>]]>
|
291
| <![CDATA[<div class="indicador-container pure-u-1-2 pure-u-md-1-4" style="order: 2">
<img class="indicador-icon" aria-hidden="true" src="/templates/novo_portal_base/imagens/tag-highlight.png" alt="">
<h3 class="indicador-title">Inflação</h3>
<h4 class="indicador-desc">INPC</h4>
<p class="indicador-value">0,20 %</p>
<p class="indicador-date">ago 2023</p>
<div class="indicador-sparkline"></div>
</div>]]>
|
300
| <![CDATA[<div class="indicador-container pure-u-1-2 pure-u-md-1-4" style="order: 3">
<img class="indicador-icon" aria-hidden="true" src="/templates/novo_portal_base/imagens/money-highlight.png" alt="">
<h3 class="indicador-title">Variação do PIB</h3>
<h4 class="indicador-desc">SCNT <small>Acumulado 4 trimestres</small></h4>
<p class="indicador-value">3,2 %</p>
<p class="indicador-date">2º tri 2023</p>
<div class="indicador-sparkline"></div>
</div>]]>
|
309
| <![CDATA[<div class="indicador-container pure-u-1-2 pure-u-md-1-4" style="order: 4">
<img class="indicador-icon" aria-hidden="true" src="/templates/novo_portal_base/imagens/unemployment-highlight.png" alt="">
<h3 class="indicador-title">Desemprego</h3>
<h4 class="indicador-desc">PNAD Contínua</h4>
<p class="indicador-value">8,0 %</p>
<p class="indicador-date">2º tri 2023</p>
<div class="indicador-sparkline"></div>
</div>]]>
|
2288
| <![CDATA[<div id="printLoad" class="load-chart" style="display:none"><div class="spinner"></div></div>]]>
|
2951
| <![CDATA[<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><path class="st0" d="M388,235.3c-25.7,0.1-50.8-8-71.8-22.9v104.5c0,52.5-42.6,95-95.1,95c-52.5,0-95-42.6-95-95.1s42.6-95,95.1-95 c4.4,0,8.7,0.3,13,0.9v52.6c-23-7.2-47.5,5.5-54.7,28.5c-7.2,23,5.5,47.5,28.5,54.7s47.5-5.5,54.7-28.5c1.3-4.2,2-8.7,2-13.1V112.6 h51.4c0,4.3,0.3,8.7,1.1,13l0,0c3.6,19.3,15,36.3,31.5,46.9c11.6,7.7,25.2,11.8,39.2,11.8V235.3z"/></svg>]]>
|
3060
| <![CDATA[<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><path class="st0" d="M388,235.3c-25.7,0.1-50.8-8-71.8-22.9v104.5c0,52.5-42.6,95-95.1,95c-52.5,0-95-42.6-95-95.1s42.6-95,95.1-95 c4.4,0,8.7,0.3,13,0.9v52.6c-23-7.2-47.5,5.5-54.7,28.5c-7.2,23,5.5,47.5,28.5,54.7s47.5-5.5,54.7-28.5c1.3-4.2,2-8.7,2-13.1V112.6 h51.4c0,4.3,0.3,8.7,1.1,13l0,0c3.6,19.3,15,36.3,31.5,46.9c11.6,7.7,25.2,11.8,39.2,11.8V235.3z"/></svg>]]>
|
3102
| <![CDATA[<path style="stroke: #071d41;stroke-width:9;stroke-linecap:round;" d="m 22,23 v 13"></path>]]>
|
3102
| <![CDATA[<path style="stroke:#fff;stroke-width:4;stroke-linejoin:round;" d="m 4,43 3,-6 4,3 z"></path>]]>
|
88
| <![CDATA[<style>
div.barra-body {
margin: 0;
padding: 0;
height: 44px;
}
</style>]]>
|
3102
| <![CDATA[<style type="text/css">.a {font: normal bold 11px Open Sans, sans-serif;}</style>]]>
|
148
| <![CDATA[<a id="nav-toggle" onclick='$(".envolve_menu--principal").toggle(); $(this).toggleClass("active");jQuery("html").toggleClass("noscroll");'>☰</a>]]>
|
154
| <![CDATA[<button class="button btn btn-primary header__busca--btn" aria-label="Buscar" onclick="this.form.searchword.focus();"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><path class="cls-1" d="M16.3,14.32l-3.84-3.84a5.79,5.79,0,0,0,.88-3.06,5.92,5.92,0,1,0-5.92,5.92,5.79,5.79,0,0,0,3.06-.88l3.84,3.84a.71.71,0,0,0,1,0l1-1A.71.71,0,0,0,16.3,14.32Zm-8.88-3a3.95,3.95,0,1,1,3.95-3.95A4,4,0,0,1,7.42,11.37Z" transform="translate(-1.5 -1.5)"/></svg></button>]]>
|
198
| <![CDATA[<a id="nav-toggle" onclick='$(".envolve_menu--principal").toggle(); $(this).toggleClass("active");jQuery("html").toggleClass("noscroll");'>☰</a>]]>
|
209
| <![CDATA[<button class="button btn btn-primary header__busca--btn" aria-label="Buscar" onclick="this.form.searchword.focus();"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15 15"><path class="cls-1" d="M16.3,14.32l-3.84-3.84a5.79,5.79,0,0,0,.88-3.06,5.92,5.92,0,1,0-5.92,5.92,5.79,5.79,0,0,0,3.06-.88l3.84,3.84a.71.71,0,0,0,1,0l1-1A.71.71,0,0,0,16.3,14.32Zm-8.88-3a3.95,3.95,0,1,1,3.95-3.95A4,4,0,0,1,7.42,11.37Z" transform="translate(-1.5 -1.5)"/></svg></button>]]>
|
327
| <![CDATA[<button disabled="disabled" class="imprimir" onclick="printTable('indicadores-economicos');" title="imprimir">
<img src="/templates/novo_portal_base/imagens/imprimir.png" alt="imprimir" />
</button>]]>
|
1063
| <![CDATA[<button disabled="disabled" class="imprimir" onclick="printTable('indicadores-sociais');" title="imprimir">
<img src="/templates/novo_portal_base/imagens/imprimir.png" alt="imprimir" />
</button>]]>
|
1424
| <![CDATA[<button disabled="disabled" class="imprimir" onclick="printTable('indicadores-agropecuarios');" title="imprimir">
<img src="/templates/novo_portal_base/imagens/imprimir.png" alt="imprimir" />
</button>]]>
|
2806
| <![CDATA[<button class="botao" onclick="goToStep(this, 3);">Sim</button>]]>
|
2807
| <![CDATA[<button class="botao" onclick="goToStep(this, 2);">Não</button>]]>
|
2812
| <![CDATA[<button class="botao" onclick="goToStep(this, 3);">Enviar</button>]]>
|
13
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-285486-1');
gtag('config', 'UA-285486-76', {'groups':'ibgelabs'});
</script>]]>
|
25
| <![CDATA[<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5ND2WBQ');</script>]]>
|
75
| <![CDATA[<script type="application/json" class="joomla-script-options new">{"csrf.token":"f937a9748d2677288dcbd3eee2c4fef5","system.paths":{"root":"","base":""}}</script>]]>
|
2295
| <![CDATA[<script type="text/javascript">
var idioma = "pt-BR";
function parseiaPibAnual(data){
var dados = data[0].resultados[0].series[0].serie;
var periodos = Object.keys(dados);
var ultimoPeriodo = periodos[periodos['length']-1];
var anosSomados = {};
var ultimoAno = 1900; //valor dummy
var ultimoTrimestre = '';
var contaTrimestresAno = 1;
for(d in dados){
var ano = parseInt(d.substr(0,4));
/*
agregando anos
*/
if(anosSomados[ano] == undefined){
//cria indice
anosSomados[ano] = 0;
}
anosSomados[ano] += parseFloat(dados[d]);
if(ultimoAno == ano){
++contaTrimestresAno;
}else{
if(contaTrimestresAno < 4){
//se trocou de ano e nao tiver 4 trimestres daquele ano
delete anosSomados[ultimoAno];
}else{
anosSomados[ultimoAno] = (anosSomados[ultimoAno]/1000000);//.toLocaleString($language, { maximumFractionDigits:1,minimumSignificantDigits:2 });
//console.log( anosSomados[ultimoAno]);
}
ultimoAno = ano;
contaTrimestresAno = 1;
}
}
if(contaTrimestresAno < 4){
//se nao tiver 4 trimestres daquele ano
delete anosSomados[ultimoAno];
}
return anosSomados;
}
function abreIndicador(){
// console.log("#indicador-"+hash);
var hash = document.location.hash.substr(1);
if(hash){
if($("#indicador-"+hash).length > 0){
$('html,body').animate({scrollTop: $("#indicador-"+hash).offset().top}, 500);
$("#indicador-"+hash).next().find(".panel").show();
$("#indicador-"+hash).addClass("active");
loadIndicadorData(hash, false);
}
}
}
function gravaEventoAbertura(item){
window.dataLayer.push({
'event': 'detalheIndicador',
'rotulo':window.location.href,
'indicadorSelecionado':item
});
}
function gravaEventoImpressao(item){
window.dataLayer.push({
'event': 'imprimeIndicador',
'rotulo':window.location.href,
'indicadorSelecionado':item
});
}
window.indicadores = {};
function loadIndicadorData(item,isPrint) {
var asincro = $.Deferred();
if(typeof(isPrint) == undefined){
isPrint = false;
}
indicadores[item] = {};
indicadores[item].element = $("#indicador-" + item);
if(indicadores[item].element.hasClass('active') && !isPrint){
//está abrindo
gravaEventoAbertura(item);
}
if(indicadores[item].element.attr("data-loaded") == "true")
return false;
var sidra = indicadores[item].element.attr("data-sidra");
var divulgacao = indicadores[item].element.attr("data-divulgacao");
var tabela = indicadores[item].element.attr("data-tabela");
var categoria = indicadores[item].element.attr("data-categoria");
if (sidra != undefined) {
if(isPrint) {//window.todosGraficos is not undefined
//verifica se é indicador do cidades ou sidra
var dadosGrafico;
if (window.todosGraficos[tabela].length == undefined) {
dadosGrafico = window.todosGraficos[tabela].resultados;
} else {
for (var i = 0; i < window.todosGraficos[tabela].length; i++) {
if(window.todosGraficos[tabela][i].idCategoria == categoria){
dadosGrafico = window.todosGraficos[tabela][i].resultados;
}
}
if (dadosGrafico == undefined) {
dadosGrafico = window.todosGraficos[tabela][0].resultados;
}
}
$.when(drawChart(item, dadosGrafico,isPrint)).then(function(){
asincro.resolve();
});
} else {
$.ajax({
dataType:'json',
url:sidra
}).done(function(data){
if(data[0].res){
//se veio da api de indicadores
//ex: pib per capita
data = data[0].res[0].res;
// titulo = data[0].variavel;
}else{
unidade = data[0].unidade;
// titulo = data[0].variavel;
if(data[0].id == '585'){//PIB
data = parseiaPibAnual(data);
unidade = 'Trilhões de Reais';
}else if(data[0].id == '6784'){//PIB
}else{
data = data[0].resultados[0].series[0].serie;
}
}
$.when(drawChart(item, data,false)).then(function(){
asincro.resolve();
});
});
}
}
if (divulgacao != undefined) {
// var date = new Date();
// date = date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate();
//$.getJSON( "https://servicodados.ibge.gov.br/api/v3/calendario/" + divulgacao + "?qtd=1&de=" + date + "&order=asc", function( data ) {
if(window.calendario[divulgacao]){
var data = window.calendario[divulgacao].data_divulgacao.split(" ")[0];
if(idioma == "en-GB"){
dataQuebrada = data.split("/");
data = dataQuebrada[1] + "/" + dataQuebrada[0] + "/" + dataQuebrada[2];
}
indicadores[item].element.next().find(".data-divulgacao").append($("<p>", {"class": "metadado-topico", "text": "Próxima Divulgação:"}));
indicadores[item].element.next().find(".data-divulgacao").append($("<p>", {"text": data}));
}
//});
}
indicadores[item].element.attr("data-loaded", "true");
return asincro;
}
function limpaTabelasVazias(){
$(".indicadores-agropecuarios").find('.dozemeses').each(function(){$(this).css('color','transparent')});
$(".indicadores-agropecuarios").find('.ano').each(function(){$(this).css('color','transparent')});
$(".indicadores-sociais").find('.dozemeses').each(function(){$(this).css('color','transparent')});
$(".indicadores-sociais").find('.ano').each(function(){$(this).css('color','transparent')});
$(".indicadores-agropecuarios").find('.dozemeses').each(function(){$(this).html(' ;')});
$(".indicadores-agropecuarios").find('.ano').each(function(){$(this).html(' ;')});
$(".indicadores-sociais").find('.dozemeses').each(function(){$(this).html(' ;')});
$(".indicadores-sociais").find('.ano').each(function(){$(this).html(' ;')});
}
function appendPrintButtons(){
$('.indicadores-tabela').each(function(i,e){
var g = e.getAttribute('data-group');
$(e).parents(".indicadores-table-container").find('.imprimir').prop("disabled", false);
})
}
$(document).ready(function(){
changeColspan();
});
$(window).on("load",function(){
abreIndicador();
limpaTabelasVazias();
if(Worker){
var calendarIndex = [];
window.calendario = [];
var date = new Date();
date = date.getFullYear() + "-" + (date.getMonth()+1) + "-" + date.getDate();
var calendarIndex = "9256|9258|9260|9282|9270|9300|9088|9294|9227|9229|9173|17270|9109|9107|9216|9117";
var w = new Worker("/templates/novo_portal_base/js/worker.js");
w.postMessage({'controller':'indicadores','url':'https://servicodados.ibge.gov.br/api/v1/portal/indicadores?periodo=-12'});
w.postMessage({'controller':'calendario','url':'https://servicodados.ibge.gov.br/api/v3/calendario/'+calendarIndex+'?qtd=1&de='+date+'&order=asc'});
w.addEventListener("message",function(event){
if(event.data.controller == 'indicadores'){
window.todosGraficos = JSON.parse(event.data.data);
}else if(event.data.controller == 'calendario'){
var calendario = JSON.parse(event.data.data);
//console.log(JSON.parse(event.data.data));
for(var i = 0; i < calendario.items.length; i++){
window.calendario[calendario.items[i].produto_id] = calendario.items[i];
}
}
appendPrintButtons();
});
}
});
$(window).on("resize",function(){
changeColspan();
});
function changeColspan(){
//muda o colspan pra tabela renderizar corretamente
if(!$('.desktop-tablet-only').first().is(":visible")) {
$('.table-accordion-panel td').attr('colspan', 2);
} else {
$('.table-accordion-panel td').attr('colspan', 5);
}
}
function printTable(section) {
gravaEventoImpressao(section);
$("#printLoad").show();
$("body").addClass("print");
$(".indicadores-tabela").not("." + section).addClass("not-printable");
var items = $(".indicadores-tabela." + section).find(".table-accordion:not(.active)");
var length = items.length;
if(length > 0 ) //ainda falta abrir algum
{
items.each(function(i, e){
$(e).next().find(".panel").show();
$(e).addClass("active");
$.when(loadIndicadorData($(e).attr("id").split("indicador-")[1],true)).then(function(){
if(i === (length-1)){//se for ultimo item
window.print();
$("body").removeClass("print");
}
});
});
}else{//todos os indicadores já estão abertos
window.print();
$("body").removeClass("print");
}
}
function drawChart(item, data,isPrint) {
var asincro = $.Deferred();
var unidade,titulo;
var periodicidade = (indicadores[item].element.next().find(".data-periodicidade").attr('data-periodicidade-grafico')).toLowerCase();
var titulo = indicadores[item].element.attr('data-grafico-titulo');
var fonte = indicadores[item].element.attr('data-fonte');
var textoExport = indicadores[item].element.find(".nonsprite").text();
var unidade = (indicadores[item].element.next().find(".indicador-metadado").attr('data-unidade'));
var chartData = [];
var decimais = "00";
var erros = ['99999999999999', '99999999999998', '99999999999997', '99999999999996', '99999999999995', '99999999999992', '99999999999991'];
for (var dado in data) {
var currentData = {"periodo": "", "valor": 0};
currentData.periodo = getPeriodo(dado, periodicidade, "pt-BR");
var valorAtual = data[dado];
if( erros.indexOf(data[dado]) == -1 && valorAtual != "..." ) {
//limitando valor maximo de decimais para 3
decimais = valorAtual.toString().split(".").length > 1 ? (valorAtual.toString().split(".")[1].length > 3 ? "000" : ("000").substr(0, valorAtual.toString().split(".")[1].length)) : "";
currentData.valor = parseFloat(valorAtual);
}
chartData.push(currentData);
}
if(chartData.length != 0) {
var container = indicadores[item].element.next().find(".indicador-grafico .container-grafico")[0];
var width = container.width;
if(!isPrint){
am4core.useTheme(am4themes_animated);
}
if(idioma == "pt-BR"){
var separadores = {
"_decimalSeparator": ",",
"_thousandSeparator": ".",
};
} else {
var separadores = {
"_decimalSeparator": ".",
"_thousandSeparator": ",",
};
}
var labelImprimir = idioma == "pt-BR" ? "Imprimir" : "Print";
// Create chart
indicadores[item].chart = am4core.createFromConfig({
"data": chartData,
"language": {
"locale": separadores
},
"logo":{
"align":"right"
},
"titles": [{
"text": titulo,
"originalText": titulo,
"fontSize": 13,
"marginBottom": 30,
"align": "left",
"fontWeight": "700",
"wrap": true,
"paddingRight": 50,
"exportable":true
}],
"numberFormatter": {
"numberFormat": "#,###."+decimais
},
"xAxes": [{
"type": "CategoryAxis",
"dataFields": {
"category": "periodo"
},
"renderer": {
"minGridDistance": 10,
"grid": {
"disabled": true
},
"ticks": {
"disabled": false,
"strokeOpacity": .3
},
"labels": {
"paddingTop": 10,
"paddingRight": 5,
"fontSize": 11,
"horizontalCenter": "right",
"rotation": -45
}
},
"cursorTooltipEnabled": false
}],
"yAxes": [{
"type": "ValueAxis",
"renderer": {
"grid": {
"stroke": "#000000"
}
},
"fontSize": 11,
"cursorTooltipEnabled": false
}],
"series": [{
"type": "LineSeries",
"dataFields": {
"valueY": "valor",
"categoryX": "periodo"
},
"bullets": [{
"children": [{
"type": "Circle",
"width": 6,
"height": 6,
"horizontalCenter": "middle",
"verticalCenter": "middle",
"fill": "#000000",
"strokeWidth": 0
}]
}],
"stroke": "#000000",
"strokeWidth": "2",
"tooltipText": "{categoryX}:\n [bold]{valueY}[/] "+unidade,
"tooltip": {
"pointerOrientation": "vertical",
"getFillFromObject": false,
"background": {
"cornerRadius": 3,
"strokeWidth": 1,
"stroke": "#000000",
"fillOpacity": 0.9,
"fill": "#f8f8f8"
},
"label": {
"paddingLeft": 7,
"paddingRight": 7,
"textAlign": "left",
"textValign": "middle",
"fontSize": 11,
"fill": "#000000"
}
},
}],
"responsive": {
"enabled": true,
"useDefault": false
},
"events":{
"ready":function(ev){
asincro.resolve();//terminou de carregar
}
},
"exporting":{
"filePrefix":slugify(textoExport),
"menu":{
"align":"right",
"verticalAlign":"top",
"items":[{
"label":"...",
"menu":[
{"type":"csv","label":"CSV"},
{"type":"print","label":labelImprimir}
]
}]
},
//altera titulo para exportacao
"events":{
"exportstarted": function(ev) {
var ch = ev.target.sprite;
ch.children.values[0].titles.values[0].text = textoExport+" | "+titulo;
},
"exportfinished": function(ev) {
var ch = ev.target.sprite;
ch.children.values[0].titles.values[0].text = ch.children.values[0].titles.values[0].originalText;
}
},
}
}, container, am4charts.XYChart);
//Fonte amcharts
window.label = indicadores[item].chart.createChild(am4core.Label);
label.text = fonte;
label.fontSize = 10;
label.align = "left";
label.fill = "#9e9e9e";
label.marginTop = 5;
label.marginBottom = 0;
label.wrap = true;
label.paddingRight = 50;
//Logo amcharts
indicadores[item].chart.logo.align = "right";
indicadores[item].chart.logo.dy = -15;
indicadores[item].chart.logo.scale = .8;
indicadores[item].chart.logo.align = 'right';
indicadores[item].chart.cursor = new am4charts.XYCursor();
} else {
indicadores[item].element.removeClass("has-chart");
}
return asincro;
}
window.onafterprint = function(){
$(".indicadores-tabela").removeClass("not-printable");
$(".table-accordion.active").next().find(".panel").hide();
$(".table-accordion.active").removeClass("active");
$("#printLoad").fadeOut();
}
</script>]]>
|
2819
| <![CDATA[<script>
function goToStep(button, step) {
var _this = jQuery(button);
var thisStep = _this.parent().attr("data-step");
var nextStep = step;
jQuery('.container__foiutil__step[data-step=' + nextStep + ']').show();
jQuery('.container__foiutil__step[data-step=' + thisStep + ']').hide();
if(nextStep == 3){
if(thisStep == 1)
sendResultFoiUtil(false);
else
sendResultFoiUtil(true);
}
}
function sendResultFoiUtil(hasComment) {
var container = jQuery("#container-foiutil");
var obj = {};
obj.id_aplicacao = parseInt(container.attr("data-aplicacao"));
obj.id_modelo = parseInt(container.attr("data-modelo"));
obj.url = location.href;
obj.ip = "192.168.152.80";
obj.browser = " 0 - unix";
obj.mobile = "0";
obj.respostas = [];
if(hasComment) {
obj.respostas.push({num_questao: "1",
resposta: "0",
observacao: ""
});
obj.respostas.push({num_questao: "2",
resposta: "",
observacao: jQuery('.container__foiutil__step[data-step=2]').find("textarea").val()
});
} else {
obj.respostas.push({num_questao: "1",
resposta: "1",
observacao: ""
});
obj.respostas.push({num_questao: "2",
resposta: "",
observacao: ""
});
}
//Envia resultados
jQuery.ajax({
url: '/index.php?option=com_questionario&format=json',
type: 'POST',
headers: {
'Content-Type':'application/json'
},
data: JSON.stringify(obj),
dataType: "json",
success: function(data) {
}
});
}
</script>]]>
|
3122
| <![CDATA[<script>
jQuery('.accordion-mobile span').click(function(evt) {
if (jQuery(window).width() < 1024) {
jQuery(this).next().toggle("slide");
jQuery(this).toggleClass("active");
}
});
var baseSticky = 95;
jQuery(document).ready(function(){
var scroll = jQuery(window).scrollTop();
changeHeaderScroll(scroll);
});
jQuery(window).scroll(function() {
var scroll = jQuery(window).scrollTop();
changeHeaderScroll(scroll);
});
function changeHeaderScroll(scroll) {
if (scroll >= baseSticky) {
jQuery("body").addClass("sticky");
} else {
jQuery("body").removeClass("sticky");
}
}
</script>]]>
|
3154
| <![CDATA[<script>
var unique_getCod_var = '';
function unique_getCodMiniURLQR_main(){
var local_url = window.location.toString();
if (local_url.indexOf("barragov")<0)
{
var full_url = 'https://cod.ibge.gov.br/min?js=unique_getCod_var=&u=' + encodeURIComponent(local_url);
//unique_getCodMiniURLQR_ajax(full_url,unique_getCodMiniURLQR_AfterFunc);
}
}
function unique_getCodMiniURLQR_ajax(url,afterfunction) {
//Onde: url = URL a ser carregada | e afterfunction = fnção a ser executada apos o carregamento da url, opcional
var headID = document.getElementsByTagName("head")[0];
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = url;
newScript.id = 'tempdatascript' + Math.floor(Math.random()*9999999);
headID.appendChild(newScript);
if(navigator.appName == 'Microsoft Internet Explorer'){
newScript.onreadystatechange= function(){ if (this.readyState == 'complete' || this.readyState == 'loaded')afterfunction();}
}else{
newScript.onload = afterfunction;
}
}
function unique_getCodMiniURLQR_AfterFunc(){
//Matenha esta funcao vazia
}
unique_getCodMiniURLQR_main();
</script>]]>
|
3195
| <![CDATA[<script>
var erro_servico = [];
</script>]]>
|