941
| <![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>]]>
|
1311
| <![CDATA[<script>
$(document).ready(function(){
showSituacao();
showTipoPessoa();
showResidente();
showOrgaosList();
});
function showSituacao(){
const chart = new ApexCharts(document.querySelector("#statusSolicitacoes"), {
series: [1,26,1],
chart: {
width: 380,
type: 'donut',
},
labels: ["Atendido","Em Tramitação","Finalizado"],
colors: ['#008FFB','#009688','#FE8719','#00E396','#BB2E45','#27DAF2', '#FEB019', '#775DD0', '#072D32', '#118A9A'],
responsive: [{
breakpoint: 768,
options: {
chart: {
width: 600
},
legend: {
position: 'bottom'
}
}
},
{
breakpoint: 570,
options: {
chart: {
width: 450
},
legend: {
position: 'bottom'
}
}
}
]
});
chart.render();
}
function showTipoPessoa(){
const chart = new ApexCharts(document.querySelector("#tipoPessoa"), {
series: [19,9],
chart: {
width: 380,
type: 'donut',
},
plotOptions: {
pie: {
startAngle: -90,
endAngle: 90,
offsetY: 40,
offsetX: 10
}
},
grid: {
padding: {
bottom: -80
}
},
colors: ['#008FFB', '#0C3452'],
labels: ["Fisica","Juridica"],
responsive: [{
breakpoint: 768,
options: {
chart: {
width: 600
},
legend: {
position: 'bottom'
}
}
},
{
breakpoint: 570,
options: {
chart: {
width: 400
},
legend: {
position: 'bottom'
},
plotOptions: {
pie: {
startAngle: -90,
endAngle: 90,
offsetY: 80,
}
},
}
}
]
});
chart.render();
}
function showResidente(){
const chart = new ApexCharts(document.querySelector("#localSolicitacoes"), {
series: [0, 28],
chart: {
width: 380,
type: 'pie',
},
labels: ['Residente', 'Não residente'],
colors: ['#15b6a7', '#ec651d'],
responsive: [{
breakpoint: 768,
options: {
chart: {
width: 600
},
legend: {
position: 'bottom'
}
}
},
{
breakpoint: 570,
options: {
chart: {
width: 450
},
legend: {
position: 'bottom'
}
}
}
]
});
chart.render();
}
function showOrgaosList(){
let describe = ["CONTROLATORIA INTERNA","GABINETE DO PREFEITO","SECRETARIA DE ADMINISTRAÇÃO, FINANÇAS E PLANEJAMENTO","SECRETARIA DE AGRICULTURA E MEIO AMBIENTE","SECRETARIA DE ASSISTÊNCIA SOCIAL","SECRETARIA DE COMUNICAÇÃO SOCIAL","SECRETARIA DE EDUCAÇÃO, CULTURA, ESPORTES E LAZER","SECRETARIA DE SAÚDE","SECRETARIA DO GOVERNO"];
let categories = [];
for(let item of describe){
categories.push(item);
}
const orgaosList = new ApexCharts(document.querySelector("#orgaosList"), {
series: [{
name: 'Total',
data: [1,3,16,0,0,0,2,3,3]
}],
chart: {
height: 400,
type: 'bar',
},
plotOptions: {
bar: {
dataLabels: {
position: 'bottom', // top, center, bottom
},
borderRadius: 8,
plotOptions: {
bar: {
borderRadius: 10,
dataLabels: {
position: 'top'
}
}
},
columnWidth: '50%',
}
},
stroke: {
width: 2
},
grid: {
row: {
colors: ['#fff', '#f2f2f2']
}
},
xaxis: {
labels: {
rotate: -40
},
categories,
tickPlacement: 'on'
},
yaxis: {
max:22,
axisBorder: {
show: true
},
axisTicks: {
show: true,
},
labels: {
show: true,
formatter: function (val) {
return val;
}
}
},
fill: {
type: 'gradient',
gradient: {
shade: 'light',
type: "horizontal",
shadeIntensity: 0.25,
gradientToColors: undefined,
inverseColors: true,
opacityFrom: 0.85,
opacityTo: 0.85,
stops: [50, 0, 100]
},
}
});
orgaosList.render();
}
</script>]]>
|
1823
| <![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", ".form/11/20", ".form h4/11/21", ".cabecalho_e_sic .topo .estrutura_inicial .banner_e_sic h1/20/30", ".cabecalho_e_sic .topo .estrutura_inicial .banner_e_sic h2/15/25", ".cabecalho_e_sic .topo .estrutura_inicial .links a/10/20", ".estrutura_inicial #e_sic .texto_aprensentacao h1/11/21", ".estrutura_inicial #e_sic .texto_aprensentacao /11/21", ".estrutura_inicial #e_sic .banner_right .mine span/11/21", ".barra_contato ul li .title/10/20", ".estrutura_inicial .sobre_lei /11/21", ".estrutura_inicial .outras_informacoes .titulo_pricipal h2/15/25", ".estrutura_inicial .outras_informacoes .lista ul li a/9/19", ".barra_contato ul li .title/13/23", ".barra_contato ul li .sub-titulo/9/19", "#new_e-sic .e-sic .estrutura_inicial .titulo_principal/15/25", "#new_e-sic .e-sic ul li label/9/19", "#new_e-sic .e-sic ul li div/9/19", "#new_e-sic .e-sic ul li/9/19", "#new_e-sic .e-sic .tx_14_vermelho/7/17", "#new_e-sic .e-sic .btn_success/17/27", "#new_e-sic .estrutura_inicial #e_sic #noticias_div .titulo_sombra/11/21", "#new_e-sic .estrutura_inicial #e_sic #noticias_ler /11/21", "#new_e-sic #e_sic .painel ul li a span/15/25", "#new_e-sic .e-sic #painel_table .tg .tg-7whf/9/19", ".tg .tg-d5um/9/19", "#new_e-sic .e-sic .defaul_btn/17/27"];
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>]]>
|