919
| <![CDATA[<script>
$(document).ready(function () {
$('#nav-icon4').click(function () {
$(this).toggleClass('open');
let fclass = $(this).attr("class");
if (fclass === "open") {
showMenu(false);
} else {
$(".d-actions-items").show();
$(".d-m-h").css("display", "none").addClass("d-hide");
$("#d-container").css("height", "100vh");
}
$("#d-container.d-diversos").height($("#d-menu").height());
$("#d-container").css('min-height', (parseInt($(".d-menu-helper").height())+150)+'px' );
$("#d-container.d-diversos").css('min-height', (parseInt($(".d-menu-helper").height())+100)+'px' );
});
$("body .uwy.userway_p1 .uai").css("right", "0");
sessionStorage.setItem("img-back", 0);
});
function slidShow(){
let img_atual = parseInt(sessionStorage.getItem("img-back"));
img_atual++;
if(img_atual >= $(".img-back").length){
img_atual = 0;
}
$(".img-back").addClass("d-hide");
$("#banner_fundo"+img_atual).removeClass("d-hide");
sessionStorage.setItem("img-back", img_atual);
}
function showContactModal() {
if ($("#d-modal-comment").css("display") == "none") {
$(".d-icon-comment").removeClass("btn-green").addClass("btn-grey");
$("#d-modal-comment").css("display", "flex");
}else{
$(".d-icon-comment").addClass("btn-green").removeClass("btn-grey");
$("#d-modal-comment").css("display", "none");
}
}
function showMenu(toogle = false) {
if (toogle) {
$('#nav-icon4').toggleClass('open');
}
$(".d-actions-items").hide();
$(".d-m-h").css("display", "flex").removeClass("d-hide");
$("#d-container").css("height", "auto");
}
function removeAcento(text)
{
text = text.toLowerCase();
text = text.replace(new RegExp('[ÁÀÂÃ]','gi'), 'a');
text = text.replace(new RegExp('[ÉÈÊ]','gi'), 'e');
text = text.replace(new RegExp('[ÍÌÎ]','gi'), 'i');
text = text.replace(new RegExp('[ÓÒÔÕ]','gi'), 'o');
text = text.replace(new RegExp('[ÚÙÛ]','gi'), 'u');
text = text.replace(new RegExp('[Ç]','gi'), 'c');
return text;
}
function setFilter() {
let filter = $("#filter").val();
//Oculta e mostra as linhas
$(".d-swap ul li .d-swap-itens li a").each(function () {
let source = ($(this).data("source"));
let target = $(this).parent("li");
if (removeAcento(source).toLowerCase().search(removeAcento(filter).toLowerCase()) == -1) {
target.css("display", "none");
} else {
target.css("display", "block");
}
});
//Oculta e mostra os h2
for (let index = 1; index <= $(".d-swap ul li .d-swap-itens").length; index++) {
let hide = true;
$(".d-swap ul li #dsi-" + index + " li").each(function () {
if ($(this).css("display") != "none") {
hide = false;
}
});
if (hide) {
$(".d-swap ul li #dsi-" + index).parent().css("display", "none");
} else {
$(".d-swap ul li #dsi-" + index).parent().css("display", "block");
}
}
//Oculta e mostra os h1
for (let index = 0; index < $(".d-swap").length; index++) {
let hide = true;
for (let sub = 1; sub <= $(".d-swap ul li .d-swap-itens").length; sub++) {
$("#ds-"+index+" ul li #dsi-" + sub + " li").each(function () {
if ($(this).css("display") != "none") {
hide = false;
}
});
}
if (hide) {
$("#ds-"+index+" h1").css("display", "none");
} else {
$("#ds-"+index+" h1").css("display", "block");
}
}
}
function showAllFilters() {
if ($("#d-all-filters").css("display") === "none") {
$("#d-all-filters").css("display", "flex");
} else {
$("#d-all-filters").css("display", "none");
}
}
$("#enviar").click(function(event){
const form = "#contact-form-top ";
event.preventDefault();
let errors = "";
if($(form+" #nome").val() == ""){
errors += '* O <b>Nome</b> não pode ficar em branco <br>';
}
if($(form+" #telefone1").val() == ""){
errors += '* O <b>Telefone 1</b> não pode ficar em branco <br>';
}
if($(form+" #email").val() == ""){
errors += '* O <b>E-mail</b> não pode ficar em branco <br>';
}
if($(form+" #assunto").val() == ""){
errors += '* O <b>Assunto</b> não pode ficar em branco <br>';
}
if($(form+" #mensagem").val() == ""){
errors += '* O <b>Mensagem</b> não pode ficar em branco <br>';
}
if(errors.length > 0){
Swal.fire({
icon: 'error',
title: 'Encontramos os seguinte(s) erro(s)',
html: errors,
});
}else{
$("#contact-form-top").submit();
}
});
</script>]]>
|
1376
| <![CDATA[<script>
document.addEventListener('DOMContentLoaded', function () {
var tobi = new Tobi();
});
function goTwitter(url){
window.open('https://twitter.com/intent/tweet?url='+url, '_blank');
}
function goFacebook(url){
window.open('https://www.facebook.com/sharer/sharer.php?u='+url, '_blank');
}
function goWhatsapp(url){
window.open('https://api.whatsapp.com/send?text='+url, '_blank');
}
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
if (n > slides.length) {slideIndex = 1}
if (n < 1) {slideIndex = slides.length}
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
}
</script>]]>
|
1567
| <![CDATA[<script>
function setExperienceResponse(el, ref){
clearExperienceResponse();
let action = ($(el)[0].className).replace('face ', '');
if(!$(el).hasClass(action+'-checked')){
$(el).addClass(action+'-checked');
$('.satisfacao-message').css('display','block');
$('#actionRef').val(ref);
}else{
$('.satisfacao-message').css('display','none');
$('#actionRef').val(0);
}
}
function clearExperienceResponse(){
$('.face').map(function(index, value){
let ref = $(value).data('ref');
$(value).removeClass().addClass('face').addClass(ref);
});
}
</script>]]>
|
1593
| <![CDATA[<script>
$(document).ready(function(){
$("#d-container.d-diversos").height($("#d-menu").height());
});
window.addEventListener('resize', function() {
$("#d-container.d-diversos").height($("#d-menu").height());
});
</script>]]>
|
1660
| <![CDATA[<script>
$( document ).ready(function() {
$('#vLibras').append("<div vw class='enabled'><div vw-access-button class='active'></div><div vw-plugin-wrapper><div class='vw-plugin-top-wrapper'></div></div></div>");
new window.VLibras.Widget('https://vlibras.gov.br/app');
});
</script>]]>
|
1669
| <![CDATA[<script>
$(document).ready(function(){
if(!sessionStorage.getItem("messager-footer")){
sessionStorage.setItem("messager-footer", "true");
}
if(sessionStorage.getItem("messager-footer") == "true"){
$("#messager-footer").removeClass("d-hide");
}
});
function disabledMessFooter(){
$("#messager-footer").addClass("d-hide");
sessionStorage.setItem("messager-footer", "false");
}
var id = new Object();
id = ["#navega h2/9/19", "#navega a/9/19", "#navega li/9/19", "#pagina_lei p/13/23", "#pagina_lei li/9/19", "#noticias h2/10/20", "#noticias strong/10/20", "#noticias h1/16/26", "#corpo_pagina .cabecalho_noticia .categoria span/18/28", "#corpo_pagina .cabecalho_noticia .titulo_principal span/27/37", "#corpo_pagina .cabecalho_noticia .data_atualizacao span/10/20", "#corpo_pagina .conteudo */19/29", "#corpo_pagina .conteudo p/11/21", "#corpo_pagina .conteudo h2/19/29", "#corpo_pagina .rodape .autor span/4/19", "#corpo_pagina .mais_noticias .bloco_noticia .descricao_noticia .titulo_notica/16/26", "#corpo_pagina .mais_noticias .bloco_noticia .descricao_noticia .categoria_notica/10/20", "#corpo_pagina .mais_noticias .bloco_noticia .descricao_noticia .data_notica/7/17", "#barra_navegacao_midias nav li h2/6/16", "#paginas h2/9/19", "#paginas .anterior a/8/18", "#paginas .proxima a/8/18", "#corpo_pagina .mais_noticias .titulo_mais_noticia h2/11/21", "#corpo_pagina .mais_noticias .bloco_noticia .descricao_noticia .categoria_notica h2/10/20", "#corpo_pagina .mais_noticias .bloco_noticia .descricao_noticia .titulo_notica h2/16/26", "#corpo_pagina .mais_noticias .bloco_noticia .descricao_noticia .data_notica h2/7/17", "#nenhum_registro/24/34"];
var swiper = new Swiper('#topo', {
// pagination: '.swiper-pagination',
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
paginationClickable: true,
// Disable preloading of all images
preloadImages: true,
// Enable lazy loading
lazyLoading: true,
centeredSlides: true,
direction: 'horizontal',
autoplay: 5000,
autoplayDisableOnInteraction: false
});
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.9";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>]]>
|
1714
| <![CDATA[<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PC0YMJZK4D');
</script>]]>
|
1722
| <![CDATA[<script>
var link = document.createElement('meta');
link.setAttribute('property', 'og:url');
link.content = document.location;
document.getElementsByTagName('head')[0].appendChild(link);
</script>]]>
|