385
| <![CDATA[<script type="text/javascript">
$(function() {
$('.auto-caption img').captionjs({ 'force_dimensions':false, 'is_responsive':false, 'inherit_styles':true });
});
</script>]]>
|
526
| <![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>]]>
|
556
| <![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>]]>
|
640
| <![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>]]>
|
661
| <![CDATA[<script>
// ============================================================
// Função Frame do Youtube
// ============================================================
</script>]]>
|
789
| <![CDATA[<script>
function cookies(functions) {
const clientName = 'wwwcmcc';
const container = document.querySelector('.cookies-container');
const save = document.querySelector('.cookies-save');
if (!container || !save) return null;
const localPref = JSON.parse(window.localStorage.getItem('cookies-pref' + clientName));
if (localPref) activateFunctions(localPref);
function getFormPref() {
return [...document.querySelectorAll('[data-function]')]
.filter((el) => el.checked)
.map((el) => el.getAttribute('data-function'));
}
function activateFunctions(pref) {
pref.forEach((f) => functions[f]());
container.style.display = 'none';
window.localStorage.setItem('cookies-pref' + clientName, JSON.stringify(pref));
}
function handleSave() {
const pref = getFormPref();
activateFunctions(pref);
}
save.addEventListener('click', handleSave);
}
function analytics() {
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '');
console.log('Função anali..');
}
function simplecookie() {
console.log('Política de Privacidade Autorizada');
}
cookies({
simplecookie, });
</script>]]>
|
850
| <![CDATA[<script>
new window.VLibras.Widget('https://vlibras.gov.br/app');
</script>]]>
|