38
| <![CDATA[<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function() {
var calendarEl = document.getElementById('calendar');
var dat;
var type = '';
var tmp_class;
var calendar = new FullCalendar.Calendar(calendarEl, {
locale: 'pt-br',
plugins: ['interaction', 'dayGrid', 'timeGrid', 'list', 'bootstrap'],
themeSystem: 'bootstrap',
header: {
left: 'prevYear,prev,next,nextYear today',
center: 'title',
// right: 'dayGridMonth,timeGridWeek,timeGridDay'
right: null
},
editable: false,
eventsLimit: true,
views: {
dayGrid: {
eventLimit: 4 // adjust to 6 only for timeGridWeek/timeGridDay
}
},
selectable: false,
events: 'http://www.tacaratu.pe.gov.br/api/agend/getall',
eventClick: function(info) {
$.ajax({
url: 'api/agend/detail/' + info.event.id,
method: 'GET',
success: function(res) {
$('#title-modal').html(res.titulo);
$('#dsc-modal').html(res.descricao);
}
});
$('#detail-holidays-modal').modal('show');
},
});
calendar.render();
$('#btn-deletar').click(function(e){
e.preventDefault();
$.ajax({
url: $(this).attr('href'),
method: 'GET',
success: function() {
calendar.refetchEvents();
}
});
$('#detail-holidays-modal').modal('hide');
});
});
</script>]]>
|
291
| <![CDATA[<script>
$(function() {
$('.btn-group-fab').on('click', '.btn', function() {
window.open('http://www.tacaratu.pe.gov.br/app/chatbot/chat', '_blank', 'location=yes,height=670,width=570,scrollbars=yes,status=yes');
});
$('has-tooltip').tooltip();
});
</script>]]>
|