39
| <![CDATA[<script>
var tam = 15;
function mudaFonte(tipo, elemento) {
if (tipo == "mais") {
if (tam < 24)
tam += 1;
} else {
if (tam > 10)
tam -= 1;
}
document.getElementById("Noticia").style.fontSize = tam + "px";
document.getElementById("Descricao").style.fontSize = tam + "px";
}
function printDiv(id, pg, url) {
var oPrint, oJan;
oPrint = window.document.getElementById(id).innerHTML;
oJan = window.open(pg);
oJan.document.write(oPrint);
oJan.document.write(url);
oJan.window.print();
oJan.document.close();
oJan.focus();
}
// Função contraste INICIO
(function() {
var Contrast = {
storage: 'contrastState',
cssClass: 'contrast',
currentState: null,
check: checkContrast,
getState: getContrastState,
setState: setContrastState,
toogle: toogleContrast,
updateView: updateViewContrast
};
window.toggleContrast = function() {
Contrast.toogle();
};
Contrast.check();
function checkContrast() {
this.updateView();
}
function getContrastState() {
return localStorage.getItem(this.storage) === 'true';
}
function setContrastState(state) {
localStorage.setItem(this.storage, '' + state);
this.currentState = state;
this.updateView();
}
function updateViewContrast() {
var body = document.body;
if (this.currentState === null)
this.currentState = this.getState();
if (this.currentState)
body.classList.add(this.cssClass);
else
body.classList.remove(this.cssClass);
}
function toogleContrast() {
this.setState(!this.currentState);
}
})();
// Função contraste FIM
</script>]]>
|
774
| <![CDATA[<script type="text/javascript">
google.charts.load('current', {
'packages': ['corechart']
});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Data', 'Proventos', 'Descontos', 'Líquido'],
['JAN/2022', 3735800.16, 933905.78, 2801894.38],
['FEV/2022', 4314086.20, 984239.32, 3329846.88],
['MAR/2022', 6022356.89, 1471548.89, 4550808],
['ABR/2022', 4935662.76, 1154692.30, 3780970.46],
['MAIO/2022', 4969339.48, 1158008.28, 3811331.2],
['JUN/2022', 5770399.93, 1307154.92, 4463245.01],
['JUL/2022', 6179013.01, 1152830.15, 5026182.86],
['AGO/2022', 5094993.32, 1220889.93, 3874103.39],
['SET/2022', 5108235.98, 1233007.16, 3875228.82],
['OUT/2022', 5138129.57, 1246492.26, 3891637.31],
['NOV/2022', 5109653.95, 1250145.17, 3859508.78],
['DEZ/2022', 8754124.98, 3575509.33, 5178615.65],
]);
var formatter = new google.visualization.NumberFormat({
decimalSymbol: ',',
groupingSymbol: '.'
});
formatter.format(data, 1);
var options = {
title: '',
height: 400,
chartArea: {
width: '85%'
},
animation: {
"startup": true,
duration: 2000,
easing: 'out'
},
legend: {
position: 'top'
},
series: {
0: {
color: '#16a085'
},
1: {
color: '#8e44ad'
},
2: {
color: '#f39c12'
},
},
lineWidth: 5,
hAxis: {
title: 'Demonstrativo no exercício: 2022'
},
vAxis: {
minValue: 0
}
};
var chart = new google.visualization.LineChart(document.getElementById('chart_div2'));
chart.draw(data, options);
}
</script>]]>
|