friendica/view/theme/slackr/events_reminder.tpl

40 lines
1,013 B
Smarty
Raw Normal View History

2012-05-23 05:06:52 +00: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){
2013-01-31 15:40:03 +00:00
$.colorbox({html:data});
2012-05-23 05:06:52 +00:00
}
);
}
$(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 07:42:38 +00:00
timeFormat: 'HH(:mm)',
2012-05-23 05:06:52 +00:00
defaultView: 'basicWeek',
height: 50,
eventClick: function(calEvent, jsEvent, view) {
showEvent(calEvent.id);
}
});
});
</script>
2012-06-08 01:08:15 +00:00
<div id="events-reminder" class="$classtoday"></div>
2012-05-23 05:06:52 +00:00
<br>