96
| <![CDATA[<script>google.load("visualization", "1.1", {packages:["corechart","bar"]});</script>]]>
|
469
| <![CDATA[<script type="text/javascript">
$(function(){
$('.menu100-submenu,.menu100-submenu2,.menu100-submenu3').hover(function(){
$(this).children('ul').stop(true,true).fadeIn();
$(this).children('a').addClass('active');
}, function(){
$(this).children('ul').hide();
$(this).children('a').removeClass('active');
});
});
</script>]]>
|
904
| <![CDATA[<script type="text/javascript">
$(function(){
// bootstrap-datepicker ---------------------
if( $('.bootstrap_datepicker').length ) {
$('.bootstrap_datepicker').datepicker({format: 'dd/mm/yyyy'});
}
$('#imprimir').click(function(){
window.print();
});
});
</script>]]>
|
1033
| <![CDATA[<script>
function clickBusca() {
var input = document.querySelector('#Buscar input');
input.classList.toggle('show');
setTimeout(function() {
input.focus();
}, 500);
}
$("#Buscar").submit(function(e) {
e.preventDefault();
let valor = $(this).children('input').val()
if (valor) {
location.href = "http://www.cmcc.es.gov.br/busca/?q=" + valor;
} else {
clickBusca();
}
});
$('.dropdown-submenu a.submenu-institucional').on("click", function(e) { // Faz os submenu do submenu funcionar no mobile
e.preventDefault();
$(this).next('ul').toggle('open');
e.stopPropagation();
});
</script>]]>
|
1063
| <![CDATA[<script>
// ACESSIBILIDADE
function fonte(e) {
var elements = $('p, h1, h2, h3, h4, h5, h6, a, button, input, i, svg');
elements.each((index, item) => {
let element = $(item);
let font = $(element).css('font-size');
let newFont = e == 'a' ? parseInt(font) + 1 : parseInt(font) - 1;
element.css('font-size', newFont);
})
}
$(document).ready(function() {
var html = document.getElementsByTagName('html')[0];
html.style.cssText = '--Primary0: #006200; --Primary2: #008001';
$(window).scroll(function() {
var scrollTop = $(window).scrollTop();
if (scrollTop > 100) {
$('#acessibilidade').addClass("navbar-fixed-top");
} else {
$('#acessibilidade').removeClass("navbar-fixed-top");
}
});
(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 (!body) return;
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);
}
})();
});
</script>]]>
|
1147
| <![CDATA[<script type="text/javascript">
$(document).ready(function() {
$("a[rel^='prettyPhoto']").prettyPhoto({
theme: 'light_rounded',
social_tools: ''
});
$('#slide').carousel({
interval: 12000
});
if ($('#banner').length > 0) {
$('#banner').carousel({
interval: 8000
});
}
});
</script>]]>
|
1168
| <![CDATA[<script>
// ============================================================
// Função Frame do Youtube
// ============================================================
</script>]]>
|
1184
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
gtag('config', 'UA-107271852-1');
</script>]]>
|