1 <link rel='stylesheet' type='text/css' href='{{$baseurl}}/library/fullcalendar/fullcalendar.css' />
2 <script language="javascript" type="text/javascript"
3 src="{{$baseurl}}/library/fullcalendar/fullcalendar.min.js"></script>
5 // start calendar from yesterday
6 var yesterday= new Date()
7 yesterday.setDate(yesterday.getDate()-1)
9 function showEvent(eventid) {
11 '{{$baseurl}}/events/?id='+eventid,
13 $.colorbox({html:data});
17 $(document).ready(function() {
18 $('#events-reminder').fullCalendar({
19 firstDay: yesterday.getDay(),
20 year: yesterday.getFullYear(),
21 month: yesterday.getMonth(),
22 date: yesterday.getDate(),
23 events: '{{$baseurl}}/events/json/',
30 defaultView: 'basicWeek',
32 eventClick: function(calEvent, jsEvent, view) {
33 showEvent(calEvent.id);
38 <div id="events-reminder"></div>