5
| <![CDATA[<script type="text/javascript"> (function(){ function blockCookies(disableCookies, disableLocal, disableSession){ if(disableCookies == 1){ if(!document.__defineGetter__){ Object.defineProperty(document, 'cookie',{ get: function(){ return ''; }, set: function(){ return true;} }); }else{ var oldSetter = document.__lookupSetter__('cookie'); if(oldSetter) { Object.defineProperty(document, 'cookie', { get: function(){ return ''; }, set: function(v){ if(v.match(/reDimCookieHint\=/)) { oldSetter.call(document, v); } return true; } }); } } var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; var pos = cookie.indexOf('='); var name = ''; if(pos > -1){ name = cookie.substr(0, pos); }else{ name = cookie; } if(name.match(/reDimCookieHint/)) { document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT'; } } } if(disableLocal == 1){ window.localStorage.clear(); window.localStorage.__proto__ = Object.create(window.Storage.prototype); window.localStorage.__proto__.setItem = function(){ return undefined; }; } if(disableSession == 1){ window.sessionStorage.clear(); window.sessionStorage.__proto__ = Object.create(window.Storage.prototype); window.sessionStorage.__proto__.setItem = function(){ return undefined; }; } } blockCookies(1,1,1); }()); </script>]]>
|
39
| <![CDATA[<script type="application/json" class="joomla-script-options new">{"csrf.token":"1c4f394823fe755b99097bb3411e78c1","system.paths":{"root":"","base":""},"joomla.jtext":{"JLIB_FORM_FIELD_INVALID":"Campo inv\u00e1lido: "}}</script>]]>
|
60
| <![CDATA[<script>
jQuery(function($) {
SqueezeBox.initialize({});
initSqueezeBox();
$(document).on('subform-row-add', initSqueezeBox);
function initSqueezeBox(event, container)
{
SqueezeBox.assign($(container || document).find('a.modal').get(), {
parse: 'rel'
});
}
});
window.jModalClose = function () {
SqueezeBox.close();
};
// Add extra modal close functionality for tinyMCE-based editors
document.onreadystatechange = function () {
if (document.readyState == 'interactive' && typeof tinyMCE != 'undefined' && tinyMCE)
{
if (typeof window.jModalClose_no_tinyMCE === 'undefined')
{
window.jModalClose_no_tinyMCE = typeof(jModalClose) == 'function' ? jModalClose : false;
jModalClose = function () {
if (window.jModalClose_no_tinyMCE) window.jModalClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
if (typeof window.SqueezeBoxClose_no_tinyMCE === 'undefined')
{
if (typeof(SqueezeBox) == 'undefined') SqueezeBox = {};
window.SqueezeBoxClose_no_tinyMCE = typeof(SqueezeBox.close) == 'function' ? SqueezeBox.close : false;
SqueezeBox.close = function () {
if (window.SqueezeBoxClose_no_tinyMCE) window.SqueezeBoxClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
}
};
jQuery(function($){ initPopovers(); $("body").on("subform-row-add", initPopovers); function initPopovers (event, container) { $(container || document).find(".hasPopover").popover({"html": true,"trigger": "hover focus","container": "body"});} });
jQuery(function ($) {
initChosen();
$("body").on("subform-row-add", initChosen);
function initChosen(event, container)
{
container = container || document;
$(container).find(".advancedSelect").chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":"Digite ou selecione algumas op\u00e7\u00f5es","placeholder_text_single":"Selecione uma op\u00e7\u00e3o","no_results_text":"Selecione alguma op\u00e7\u00e3o"});
}
});
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });
jQuery(document).ready(function() {
var value, searchword = jQuery('#mod-finder-searchword144');
// Get the current value.
value = searchword.val();
// If the current value equals the default value, clear it.
searchword.on('focus', function ()
{
var el = jQuery(this);
if (el.val() === 'Pesquisar...')
{
el.val('');
}
});
// If the current value is empty, set the previous value.
searchword.on('blur', function ()
{
var el = jQuery(this);
if (!el.val())
{
el.val(value);
}
});
jQuery('#mod-finder-searchform144').on('submit', function (e)
{
e.stopPropagation();
var advanced = jQuery('#mod-finder-advanced144');
// Disable select boxes with no value selected.
if (advanced.length)
{
advanced.find('select').each(function (index, el)
{
var el = jQuery(el);
if (!el.val())
{
el.attr('disabled', 'disabled');
}
});
}
});});
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-103552497-3');
new window.VLibras.Widget('https://vlibras.gov.br/app');
(function()
{
if(typeof jQuery == 'undefined')
return;
jQuery(function($)
{
if($.fn.squeezeBox)
{
$( 'a.modal' ).squeezeBox({ parse: 'rel' });
$( 'img.modal' ).each( function( i, el )
{
$(el).squeezeBox({
handler: 'image',
url: $( el ).attr( 'src' )
});
})
}
else if(typeof(SqueezeBox) !== 'undefined')
{
$( 'img.modal' ).each( function( i, el )
{
SqueezeBox.assign( el,
{
handler: 'image',
url: $( el ).attr( 'src' )
});
});
}
function jModalClose()
{
if(typeof(SqueezeBox) == 'object')
SqueezeBox.close();
else
ARK.squeezeBox.close();
}
});
})();
</script>]]>
|
216
| <![CDATA[<script>
function htmlDecode(input) {
var doc = new DOMParser().parseFromString(input, "text/html");
return doc.documentElement.textContent;
}
function getAutoridade(cargoId, dataDiaInicial, DataDiaFinal) {
var ajax = new XMLHttpRequest();
var urlAPIAgendaAutoridades = window.location.protocol + '//' + window.location.host + '/modules/mod_agendadirigentes/api/dirigentes?cargoId=' + cargoId + '&startTime=' + dataDiaInicial + '&endTime=' + DataDiaFinal;
ajax.open('GET', urlAPIAgendaAutoridades, true);
ajax.send();
ajax.onreadystatechange = function() {
var dirigenteHtml = 'Cargo Vago';
if (ajax.readyState == 4 && ajax.status == 200) {
var dataArray = JSON.parse(ajax.responseText);
if (dataArray && dataArray[0] && dataArray[0].rows[0]) {
var dirigenteHtml = '';
var nome = '';
var dirigentes = dataArray[0].rows;
// Percorre os dirigentes para encontrar o "interino".
for (var contador = 0; contador < dirigentes.length; contador++) {
var dirigente = dirigentes[contador];
// Os cargos que estão atribuidos no LIXO não devem ser contabilizados.
var state = dirigente.state;
if (state <= 0) {
continue;
}
var nome = dirigente.nome;
var exercicioInicio = dirigente.exercicioInicio;
var exercicioFim = dirigente.exercicioFim;
var status = dirigente.state;
var descricaoStatus = '';
var descricaoInterino = '';
var dataArrayInicio = exercicioInicio.split('-');
var dataArrayFim = exercicioFim.split('-');
var exercicioInicio = dataArrayInicio[2] + '/' + dataArrayInicio[1] + '/' + dataArrayInicio[0]
var exercicioFim = dataArrayFim[2] + '/' + dataArrayFim[1] + '/' + dataArrayFim[0]
if (status != 1) {
switch (status) {
case '-2':
descricaoStatus = ' situação: Lixo';
break;
case '0':
descricaoStatus = ' situação: Não publicado';
break;
case '1':
descricaoStatus = ' situação: Publicado';
break;
case '2':
descricaoStatus = ' situação: Arquivado';
break;
}
}
if (dirigente.interino == '1') {
descricaoInterino = ' Interino ';
}
// if (dirigente.interino == '1') {
// break;
// }
dirigenteHtml = dirigenteHtml + '<span style="font-size:90%">' + nome + '</span>';
dirigenteHtml = dirigenteHtml + '<span style="font-size:70%"> a partir de: ' + exercicioInicio + '</span>';
// Verifica se existe término no exercício.
if (exercicioFim != '00/00/0000') {
dirigenteHtml = dirigenteHtml + '<span style="font-size:70%"> até: ' + exercicioFim + '</span>';
}
dirigenteHtml = dirigenteHtml + '<span style="font-size:70%"> ' + descricaoInterino + '</span>';
dirigenteHtml = dirigenteHtml + '<span style="font-size:70%"> ' + descricaoStatus + '</span>';
dirigenteHtml = dirigenteHtml + '<br>';
}
}
}
$('#authorityNname').html(dirigenteHtml);
}
}
function viewAutoridade(calendar) {
var date = calendar.getDate();
var view = calendar.view;
var dataInicial = view.activeStart;
var dataFinal = view.activeEnd;
// Data Inicial
var fullDate = dataInicial.toISOString();
var arrayDataInicial = fullDate.split('T');
// Data Final
var fullDate = dataFinal.toISOString();
var arrayDataFinal = fullDate.split('T');
var fullDate = date.toISOString();
var arrayDate = fullDate.split('T');
var dataArray = arrayDate[0].split('-');
var cargoId = document.getElementById('cargoId').value;
// console.log(fullDate, view.title, view.activeStart, view.activeEnd, view.currentStart, view.currentEnd);
// console.log(cargoId, arrayDataInicial[0], arrayDataFinal[0]);
getAutoridade(cargoId, arrayDataInicial[0], arrayDataFinal[0]);
}
document.addEventListener('DOMContentLoaded', function(event) {
// console.log('event: ', event);
// document.getElementById('divCarregando').style.display = 'block'; // show
//document.getElementById('myElement').style.display = 'none'; // hide
$("#divCarregando").show();
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
// plugins: [ 'interaction', 'dayGrid', 'timeGrid' ],
initialDate: '2022-03-12',
timeZone: 'America/Sao_Paulo',
locale: 'pt-br',
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,dayGridWeek,dayGridDay'
},
weekNumbers: false,
navLinks: true, // can click day/week names to navigate views
dayMaxEvents: true, // allow "more" link when too many events
businessHours: true,
buttonText: {
today: "Hoje",
month: "Mês",
year: "Ano",
week: "Semana",
day: "Dia"
},
allDayText: "dia inteiro",
height: "auto",
eventClick: function(info) {
var objDescription = htmlDecode(info.event.extendedProps.description);
$('#modalTitle').html(info.event.title);
$('#bodyLocal').html(info.event.extendedProps.local);
$('#bodyIntervalo').html(info.event.extendedProps.intervalo);
// $('#bodyAssunto').html(objDescription);
$('#bodyParticipantes').html(info.event.extendedProps.participantes);
$('#calendarModal').modal('show');
},
events: {
url: window.location.protocol + '//' + window.location.host + '/modules/mod_agendadirigentes/api/eventos',
extraParams: {
cargoId: '1'
},
failure: function() {
$('#divCarregando').fadeOut('slow');
alert('Não foi possivel pesquisar os compromissos.');
},
success: function() {
$('#divCarregando').fadeOut('slow');
}
},
eventTimeFormat: { // like '14:30'
hour: '2-digit',
minute: '2-digit',
// second: '2-digit',
meridiem: false
},
loading: function(isLoading) {
if (isLoading) {
$("#divCarregando").show();
}
else {
$('#divCarregando').fadeOut('slow');
}
}
});
calendar.render();
viewAutoridade(calendar);
// calendarEl.addEventListener("click", calendarClick, false);
document.getElementById('calendar').addEventListener('click', function() {
viewAutoridade(calendar);
});
});
</script>]]>
|
1329
| <![CDATA[<script type="text/javascript"> document.addEventListener("DOMContentLoaded", function(event) { if (!navigator.cookieEnabled){ document.getElementById('redim-cookiehint-bottom').remove(); } }); function cookiehintfadeOut(el) { el.style.opacity = 1; (function fade() { if ((el.style.opacity -= .1) < 0) { el.style.display = "none"; } else { requestAnimationFrame(fade); } })(); } function cookiehintsubmit(obj) { document.cookie = 'reDimCookieHint=1; expires=Thu, 23 Mar 2023 23:59:59 GMT;57; path=/'; cookiehintfadeOut(document.getElementById('redim-cookiehint-bottom')); return true; } function cookiehintsubmitno(obj) { document.cookie = 'reDimCookieHint=-1; expires=0; path=/'; cookiehintfadeOut(document.getElementById('redim-cookiehint-bottom')); return true; } </script>]]>
|