34
| <![CDATA[<script type="text/javascript">
window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/www.ssp.df.gov.br\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.4.1"}};
/*! This file is auto-generated */
!function(e,a,t){var r,n,o,i,p=a.createElement("canvas"),s=p.getContext&&p.getContext("2d");function c(e,t){var a=String.fromCharCode;s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,e),0,0);var r=p.toDataURL();return s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,t),0,0),r===p.toDataURL()}function l(e){if(!s||!s.fillText)return!1;switch(s.textBaseline="top",s.font="600 32px Arial",e){case"flag":return!c([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])&&(!c([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!c([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]));case"emoji":return!c([55357,56424,55356,57342,8205,55358,56605,8205,55357,56424,55356,57340],[55357,56424,55356,57342,8203,55358,56605,8203,55357,56424,55356,57340])}return!1}function d(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(i=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},o=0;o<i.length;o++)t.supports[i[o]]=l(i[o]),t.supports.everything=t.supports.everything&&t.supports[i[o]],"flag"!==i[o]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[i[o]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(r=t.source||{}).concatemoji?d(r.concatemoji):r.wpemoji&&r.twemoji&&(d(r.twemoji),d(r.wpemoji)))}(window,document,window._wpemojiSettings);
</script>]]>
|
375
| <![CDATA[<script type="text/javascript">
function str_pad(input,pad_length,pad_string,pad_type){var half='',pad_to_go;var str_pad_repeater=function(s,len){var collect='',i;while(collect.length<len){collect+=s;}
collect=collect.substr(0,len);return collect;};input+='';pad_string=pad_string!==undefined?pad_string:' ';if(pad_type!='STR_PAD_LEFT'&&pad_type!='STR_PAD_RIGHT'&&pad_type!='STR_PAD_BOTH'){pad_type='STR_PAD_RIGHT';}
if((pad_to_go=pad_length-input.length)>0){if(pad_type=='STR_PAD_LEFT'){input=str_pad_repeater(pad_string,pad_to_go)+input;}else if(pad_type=='STR_PAD_RIGHT'){input=input+str_pad_repeater(pad_string,pad_to_go);}else if(pad_type=='STR_PAD_BOTH'){half=str_pad_repeater(pad_string,Math.ceil(pad_to_go/2));input=half+input+half;input=input.substr(0,pad_length);}}
return input;}
var lstCompromissos = {},
lstParticipantes = {},
url = 'https://www.agendamento.buriti.df.gov.br/calendario/publico/',
dtInicial = new Date().toISOString().substr(0, 10),
cores = {'month': '#12a7c0', 'agendaWeek': '#eb6709', 'agendaDay': '#044069', 'listMonth': '#02b69f'},
calendarEl = document.getElementById('calendar'),
calendar = jQuery('#calendar'),
lstGabinetes = [ {"name": "Anderson Torres", "cargo": "Secretário de Estado de Segurança Pública do Distrito Federal – SSP/DF", "img": "http://agendamento.buriti.df.gov.br/documentos/arquivos/secretario_para_foto_agenda_20190813160218.jpg", "hash": "YUuAiSj-OS6e3YP-NQGenW4-BGpelqR-MhUFzVS"}];
/**
* INIT:
*
* @returns {void}
*/
jQuery(document).ready(function() {
var wdHeight = jQuery(window).height();
renderCalendar(typeof lstGabinetes[1] != 'undefined' ? lstGabinetes[1]['hash'] : lstGabinetes[0]['hash']);
resizeCalendario(wdHeight);
jQuery(".fc-right, .fc-left").addClass('hidden-xs');
if (lstGabinetes.length > 1) {
for (var i = 0; i < 3; i++) {
jQuery(".icones-de-categoria").append(_layoutImagem(lstGabinetes[i], i, i == 1 ? true : false));
}
} else {
jQuery(".icones-de-categoria").append(_layoutImagem(lstGabinetes[0], 0, true));
jQuery(".setaEsquerda, .setaDireita").remove();
}
});
/**
* Renderiza o calendário na div específica
*
* @returns {void}
*/
function renderCalendar(hash)
{
jQuery(".area-agenda").removeClass('agendaVirtual');
jQuery(".area-carregando").show();
jQuery.post(url, {'hash': hash}, function(r) {
try{
lstCompromissos = r.data.lstCompromissos;
lstParticipantes = r.data.lstParticipantes;
if ($(".fc-toolbar").length == 0) {
calendarEl = document.getElementById('calendar');
calendar = new FullCalendar.Calendar(calendarEl, {
plugins: ['interaction', 'dayGrid', 'list', 'timeGrid'],
defaultView: 'dayGridMonth',
header: {
left: '',
center: '',
right: ''
},
businessHours: {
start: '07:00', // a start time (8am in this example)
end: '22:00' // an end time (6pm in this example)
},
defaultDate: dtInicial,
minTime: "06:00:00",
maxTime: "23:00:00",
editable: false,
locale: 'pt-br',
navLinks: true,
slotDuration: '00:15:00',
height: '1500',
eventLimit: false,
eventLimitText: "",
events: lstCompromissos,
dateClick: function(event) {
mudarLayoutCalendario("btnCalendar-timeGridDay", 'timeGridDay', event.view.activeStart.toISOString().substr(0, 10));
},
eventClick: function(ev) {
var html = '',
participantes = '';
if (typeof lstParticipantes[ev.id] != 'undefined') {
for (var i in lstParticipantes[ev.id]) {
participantes += ' ; ; ; ;- '+lstParticipantes[ev.id][i]['name'] +"\n<br />"
}
}
html += '<div class="btnFecharMsg">X</div>'+
'<strong>Data:</strong> '+ ev.event.start.toISOString().substr(0, 10).split('-').reverse().join('/') +" ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;"+
'<strong>Horário:</strong> '+ ev.event.start.toString().substr(16, 5) +"<hr />\n"+
'<strong>Evento:</strong> '+ ev.event.title +"<br />\n"+
'<hr /><strong>Pauta:</strong> '+ ev.event._def.extendedProps.pauta +
(participantes != '' ? "<hr />\n<strong>Lista de Participantes:</strong> <br />\n"+participantes : '');
jQuery(".msgCalendarEvent").css({'top': (ev.jsEvent.pageY-ev.jsEvent.offsetY+19)+'px', 'left': (ev.jsEvent.pageX-(350/3)-ev.jsEvent.offsetX)+'px', 'display': 'block'}).html(html);
},
eventRender: function (event) {
$(event.el).find('.fc-list-item-title').append('<br/><div class="small"><strong>Pauta:</strong> ' + event.event._def.extendedProps.pauta + '</div>');
}
});
calendar.render();
} else {
calendar.addEventSource(lstCompromissos);
}
setTimeout(function() {
jQuery("#btnCalendar-title").html(calendar.view.title);
jQuery(".area-agenda h2").html(jQuery(".imgGabinete.zoom").next().text());
jQuery(".area-agenda").addClass("agendaVirtual");
jQuery(".area-carregando").hide();
removerScroll();
}, 100);
} catch(e) {console.log(e);}//Atualiza a tela em caso de problema
} , 'json');
}
/**
*
*
* @param {type} calendarView
* @returns {undefined} */
function resizeCalendar(calendarView) {
calendarView.setHeight(650);
}
/**
* Função que irá redimensionar o calendário para ocupar a tela do celular do usuário
*
* @param int wdHeight
* @returns {undefined}
*/
function resizeCalendario(wdHeight)
{
if (wdHeight+450 >= 0) {
jQuery(".fc-scroller").height(wdHeight+450);
}
}
/**
* Modifica o layout do calendário
*
* @param {string} btnClicked
* @param {string} action
* @param {date} changeDate
* @return {void}
*/
function mudarLayoutCalendario(btnClicked, action, changeDate)
{
calendar.changeView(action);
if (changeDate != null) {
calendar.gotoDate(changeDate);
}
jQuery("#btnCalendar-title").html( calendar.view.title );
jQuery(".filtrosAgenda img.ativa").removeClass('ativa');
jQuery("#"+btnClicked).children('img').addClass('ativa');
jQuery(".escolhaMes").css("background-color", cores[action]);
if (jQuery(".menu-mobile").is(":visible")) {
jQuery(".filtrosAgenda").toggle();
}
}
/**
* Função que será chamada para alterar as informações visíveis do calendário.
*
* @return {undefined}
*/
jQuery(document).on("click", "#btnCalendar-prev, #btnCalendar-next, #btnCalendar-dayGridMonth, #btnCalendar-timeGridWeek, #btnCalendar-timeGridDay, #btnCalendar-listMonth", function() {
var idBtn = jQuery(this).attr('id'),
action = idBtn.substr(12),
leftActions = ['prev', 'next'];
if (jQuery.inArray(action, leftActions) == -1 ) {
mudarLayoutCalendario(idBtn, action, null)
} else {
if (action == 'prev') {
calendar.prev();
} else if (action == 'next') {
calendar.next();
}
jQuery("#btnCalendar-title").html( calendar.view.title );
}
});
jQuery(document).on("click", ".btnFecharMsg", function() {
jQuery(".msgCalendarEvent").hide();
});
/**
*
* @param {type} btnClick
* @return {undefined}
*/
function mudarGabinete(btnClick)
{
var gabAtivo = parseInt(jQuery(".imgGabinete.zoom").parent().attr('data-id')),
keyProximoGab = btnClick+gabAtivo < 0 ? lstGabinetes.length+btnClick+gabAtivo : (btnClick+gabAtivo > lstGabinetes.length-1 ? Math.abs(btnClick+gabAtivo)-(lstGabinetes.length) : btnClick+gabAtivo),
proximoGab = lstGabinetes[keyProximoGab];
if (btnClick == -2) {
jQuery(".imgGabinete:first-of-type:nth(0)").addClass('zoom').next().removeClass('margin-top-negativa');
jQuery(".imgGabinete:first-of-type:nth(1)").removeClass('zoom').next().addClass('margin-top-negativa');
jQuery(".imgGabinete:first-of-type:nth(2)").parent().remove();
jQuery(".icones-de-categoria").prepend(_layoutImagem(proximoGab, keyProximoGab, false));
} else {
jQuery(".imgGabinete:first-of-type:nth(2)").addClass('zoom').next().removeClass('margin-top-negativa');
jQuery(".imgGabinete:first-of-type:nth(1)").removeClass('zoom').next().addClass('margin-top-negativa');
jQuery(".imgGabinete:first-of-type:nth(0)").parent().remove();
jQuery(".icones-de-categoria").append(_layoutImagem(proximoGab, keyProximoGab, false));
}
calendar.removeAllEventSources();
renderCalendar(lstGabinetes[jQuery(".imgGabinete.zoom").parent().attr('data-id')]['hash']);
}
/**
*
* @param {int} proximoGab
* @param {int} key
* @param {bool} ativo
* @return {String}
*/
function _layoutImagem(proximoGab, key, ativo)
{
var html = '<div class="imagem-do-gabinete" data-id="'+ key +'">'+
'<img src="'+ proximoGab['img'] +'" alt="Gabinete" class="ImgCategoria imgGabinete '+ (ativo ? 'zoom' : '') +'">'+
'<p class="nome-autoridade '+ (ativo ? '' : 'margin-top-negativa') +'">'+ proximoGab['name'] +'</p>'+
'<p class="cargo-autoridade">'+ proximoGab['cargo'] +'</p>'+
'</div>';
return html;
}
/**
* Função que remove a barra de rolagem para visualização de semana e diário.
*
* @return {void}
*/
function removerScroll()
{
if (calendar.view.type == 'timeGridWeek' || calendar.view.type == 'timeGridDay' ) {
jQuery(".fc-scroller").css({'height': '1770px'});
}
}
jQuery(document).on("click", ".setaEsquerda, .setaDireita", function() {
var btnClick = parseInt(jQuery(this).hasClass('setaEsquerda') ? -2 : 2);
mudarGabinete(btnClick);
}).on("click", ".imagem-do-gabinete:nth(0)", function() {
mudarGabinete(-2);
}).on("click", ".imagem-do-gabinete:nth(2)", function() {
mudarGabinete(2);
});
</script>]]>
|
726
| <![CDATA[<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-108256079-27', 'auto');
ga('send', 'pageview');
</script>]]>
|
736
| <![CDATA[<script type="text/javascript">
try {function adGdfSI(){var a=localStorage.getItem("adGdf");if(null==a){var d=_random(32);
localStorage.setItem("adGdf",d)}return a||d}var adGdfKey="4c9DiGP-8expRtl-CY5M4To-x9e6wxU",
adGdfUsr=adGdfSI();iniciarPropaganda(adGdfKey),document.getElementById("adGdf-ImgRetangular").
onclick=function(){var a=this.getAttribute("data-id");informarAcao(dataAdGdf[0]['co_propaganda'],"click");};} catch (e) {}
</script>]]>
|