282
| <![CDATA[<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#agenda').fullCalendar({
eventClick: function(event) {
jQuery('#event-modal-dia > span').html('').html(event.dia);
jQuery('#event-modal-title > span').html('').html(event.title);
jQuery('#event-modal-dia-ini > span').html('').html(event.dia_start);
jQuery('#event-modal-start > span').html('').html(event.inicio);
jQuery('#event-modal-dia-end > span').html('').html(event.dia_end);
jQuery('#event-modal-end > span').html('').html(event.fim);
jQuery('#event-modal-local > span').html('').html(event.local);
jQuery('#event-modal-desc > span').html('').html(event.description);
jQuery('#event-modal').modal();
},
themeSystem: 'bootstrap4',
header: {
left: 'prev,next, today',
center: 'title',
right: 'month, agendaDay'
},
navLinks: true, // can click day/week names to navigate views
editable: true,
eventLimit: false,
showNonCurrentDates: false,
fixedWeekCount: false,
defaultView: 'month',
events: function(start, end, timezone, callback) {
jQuery.ajax({
url: 'http://ibama.gov.br/index.php?option=com_agendaautoridades&task=agendaautoridades.getAgendaExchangeLocal&cargoid=17',
dataType: 'json',
data: {
start: start.format()
},
success: function(doc) {
var events = JSON.parse(doc.data);
if(events != null){
callback(events);
}
}
});
}
});
});
function voltar() {
window.history.back();
}
</script>]]>
|