15
| <![CDATA[<script type="text/javascript">
const __URL__ = "/servicos/";
var pesquisaCampo = '0';
var emitirPesquisa = false;
var contrasteAtivo = true; </script>]]>
|
51
| <![CDATA[<script type="text/javascript">
var contraste = 'desativar';
const url = __URL__ + "zbox/contraste/index/";
$("#pluginContrasteIsAtivo").click(function(){
let dataPost = {
contraste: contraste,
};
let xhr = $.ajax({
url: url,
method: "POST",
data: dataPost,
dataType: "json"
});
xhr.complete(function () {
location.reload();
});
});
</script>]]>
|
173
| <![CDATA[<script>
$(document).ready(function(){
function toogleMenuMobile() {
$("#menu-mobile").toggleClass('open');
}
$("#open-menu").click(function(){
toogleMenuMobile();
});
$("#pesquisar-mobile").click(function(){
window.location.href = '/servicos/index/listagem/contraste/ativar' + "/pesquisa/" + $("#input-mobile").val();
});
$("#publico-alvo-menu").click(function(){
toogleMenuLista('#publico-alvo-lista');
});
$("#categorias-menu").click(function(){
toogleMenuLista('#categorias-lista');
});
$("#emergencia-menu").click(function(){
toogleMenuLista('#emergencia-lista');
});
$("#municipal-menu").click(function(){
toogleMenuLista('#municipal-lista');
});
function toogleMenuLista(codigo) {
$(codigo).toggleClass('open');
}
});
</script>]]>
|
334
| <![CDATA[<script>
let scrollpos = window.scrollY
const header = document.querySelector("header")
const main = document.querySelector("main")
const header_height = header.offsetHeight - 30
const add_class_on_scroll = () => header.classList.add("fixo")
const remove_class_on_scroll = () => header.classList.remove("fixo")
const remove_class_cs_scroll = () => header.classList.remove("cs-pm")
const add_class_cs_scroll = () => header.classList.add("cs-pm")
const remove_class_margem_scroll = () => main.classList.remove("margemMenu")
const add_class_margem_scroll = () => main.classList.add("margemMenu")
window.addEventListener('scroll', function() {
scrollpos = window.scrollY;
if (scrollpos >= header_height) { add_class_on_scroll(); remove_class_cs_scroll(); add_class_margem_scroll() }
else { remove_class_on_scroll() ; add_class_cs_scroll(); remove_class_margem_scroll() }
})
</script>]]>
|
358
| <![CDATA[<script type="text/javascript">
//<![CDATA[
PUBLIC_CDN_URL = 'https://cdn.fecam.net.br' //]]>
</script>]]>
|