2009-09-17 08:30:10 +02:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
2010-09-19 07:54:35 +02:00
|
|
|
<script type='text/javascript' src='../src/_loader.js?debug'></script>
|
|
|
|
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
|
2009-09-17 08:30:10 +02:00
|
|
|
<script type='text/javascript'>
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#calendar').fullCalendar({
|
2010-09-19 07:54:35 +02:00
|
|
|
weekends: false,
|
2009-10-12 08:35:33 +02:00
|
|
|
header: {
|
2009-10-19 07:33:14 +02:00
|
|
|
left: 'prev,next today',
|
|
|
|
center: 'title',
|
2009-10-12 08:35:33 +02:00
|
|
|
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
|
|
|
|
},
|
2009-09-17 08:30:10 +02:00
|
|
|
editable: true,
|
|
|
|
eventSources: [
|
|
|
|
$.fullCalendar.gcalFeed(
|
|
|
|
"http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic",
|
|
|
|
{
|
2009-09-21 12:11:08 +02:00
|
|
|
editable: true,
|
|
|
|
className: ['holiday']
|
2009-09-17 08:30:10 +02:00
|
|
|
}
|
|
|
|
),
|
2009-11-01 00:51:30 +01:00
|
|
|
$.fullCalendar.gcalFeed(
|
2009-12-21 10:32:03 +01:00
|
|
|
"http://www.google.com/calendar/feeds/b62ul6i1vvfh9vqabsal835028%40group.calendar.google.com/public/basic", // most recent event in Nov 2009
|
2009-09-17 08:30:10 +02:00
|
|
|
{
|
2009-11-01 00:51:30 +01:00
|
|
|
editable: true,
|
2009-12-21 10:32:03 +01:00
|
|
|
currentTimezone: 'America/Edmonton' // 'America/Los_Angeles' 'America/Los Angeles'
|
2009-09-17 08:30:10 +02:00
|
|
|
}
|
2009-11-01 00:51:30 +01:00
|
|
|
)
|
|
|
|
],
|
|
|
|
eventClick: function(event) {
|
|
|
|
console.log(event.start);
|
|
|
|
console.log(event.end);
|
|
|
|
return false;
|
|
|
|
}
|
2009-09-17 08:30:10 +02:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.holiday,
|
2009-10-19 07:33:14 +02:00
|
|
|
.fc-agenda .holiday .fc-event-time,
|
2009-09-17 08:30:10 +02:00
|
|
|
.holiday a {
|
|
|
|
background: green;
|
|
|
|
border-color: green;
|
2009-10-19 07:33:14 +02:00
|
|
|
color: yellow;
|
2009-09-17 08:30:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body style='font-size:12px'>
|
|
|
|
<div id='calendar' style='width:900px;margin:20px auto 0;font-family:arial'></div>
|
|
|
|
</body>
|
2009-11-01 00:51:30 +01:00
|
|
|
</html>
|