Skip to content

Instantly share code, notes, and snippets.

@scottsappen
Created July 1, 2013 14:49
Show Gist options
  • Save scottsappen/5901492 to your computer and use it in GitHub Desktop.
Save scottsappen/5901492 to your computer and use it in GitHub Desktop.
Show a week at a glance with full calendar. http://ssbits.wordpress.com/category/javascript-snippets/calendar/
1. Just change the defaultView attribute for the calendar you are rendering
$("#cal_viewcalendarweekataglance").fullCalendar({
theme: true,
events: "SomeWebPage.aspx",
cache: true,
height: 160,
defaultView: 'basicWeek',
eventRender: function (event, element) {
element.find('span.fc-event-title').html(element.find('span.fc-event-title').text());
},
eventMouseover: function (event, element, view) {
$(this).css('border', '3px dashed #c70000');
},
eventMouseout: function (event, element, view) {
$(this).css('border', '0px');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment