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>]]>
|
752
| <![CDATA[<script type="text/javascript">
google.charts.load("current", {
packages: ['corechart', 'bar']
});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
["Element", "Quantidade", {
role: "style"
}],
['DIÁRIA', 316, '#15B063'],
['NOMEAÇÃO', 118, '#F1491C'],
['CONCESSÃO', 67, '#A349A4'],
['EXONERAÇÃO', 39, '#0DA5AA'],
['DESIGNAÇÃO', 20, '#C52259'],
['AFASTAMENTO', 7, '#FF7F00'],
['OUTRAS', 7, '#2C93DE'],
['OUTRAS', 40, '#939393'],
]);
var view = new google.visualization.DataView(data);
// Com decimais //decimalSymbol: ',', groupingSymbol: '.'
var formatter = new google.visualization.NumberFormat({
pattern: '#',
groupingSymbol: '.'
});
formatter.format(data, 1);
view.setColumns([0, 1,
{
calc: "stringify",
sourceColumn: 1,
type: "string",
role: "annotation"
},
2
]);
var options = {
title: "Quantidade por tipo",
height: 400,
chartArea: {
width: '85%'
},
animation: {
"startup": true,
duration: 2000,
easing: 'out'
},
legend: {
position: "none",
},
viewWindow: {
min: [7, 30, 0],
max: [17, 30, 0]
},
hAxis: {
title: 'Quantidade por tipo',
minValue: 0
},
textStyle: {
bold: true,
fontSize: 12,
color: '#FFFFFF'
},
};
var chart = new google.visualization.ColumnChart(document.getElementById("chart_div"));
chart.draw(data, options);
}
</script>]]>
|