friendica/view/theme/slackr/events_reminder.tpl

40 lines
1006 B
Smarty
Raw Normal View History

2012-05-23 01:06:52 -04:00
<link rel='stylesheet' type='text/css' href='$baseurl/library/fullcalendar/fullcalendar.css' />
<script language="javascript" type="text/javascript"
src="$baseurl/library/fullcalendar/fullcalendar.min.js"></script>
<script>
// start calendar from yesterday
var yesterday= new Date()
yesterday.setDate(yesterday.getDate()-1)
function showEvent(eventid) {
$.get(
'$baseurl/events/?id='+eventid,
function(data){
$.fancybox(data);
}
);
}
$(document).ready(function() {
$('#events-reminder').fullCalendar({
firstDay: yesterday.getDay(),
year: yesterday.getFullYear(),
month: yesterday.getMonth(),
date: yesterday.getDate(),
events: '$baseurl/events/json/',
header: {
left: '',
center: '',
right: ''
},
2012-05-25 03:42:38 -04:00
timeFormat: 'HH(:mm)',
2012-05-23 01:06:52 -04:00
defaultView: 'basicWeek',
height: 50,
eventClick: function(calEvent, jsEvent, view) {
showEvent(calEvent.id);
}
});
});
</script>
2012-06-07 21:08:15 -04:00
<div id="events-reminder" class="$classtoday"></div>
2012-05-23 01:06:52 -04:00
<br>