Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

gcal-timeline.js

A jQuery plugin to display a public google calender in a timeline.

Default Options

{
	calendarId:'en.usa#holiday@group.v.calendar.google.com',
	apiKey:'Public_API_Key',
	dateFormat: 'MonthDay',
	errorMsg:'No events in calendar',
	timeZone:'America/New_York',
	futureEvents:false,
	maxEvents: 50
}

Example

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.gcal-timeline.min.js"></script>

<script type="text/javascript">
  $(function() {
    $('#timeline').gCalTimeline({apiKey:'your_public_api_key', calendarId:'your.public.calendar@group.v.calendar.google.com'});
  });
</script>
<div id="timeline"></div>

screenshot

screen shot 2014-10-19 at 12 11 52 am

License: MIT http://www.opensource.org/licenses/mit-license.php