fullcalendar/tests/gcal.html

57 lines
1.3 KiB
HTML
Raw Normal View History

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>
<script type='text/javascript' src='loader.js'></script>
<script type='text/javascript'>
$(document).ready(function() {
$('#calendar').fullCalendar({
2009-11-01 00:51:30 +01:00
//weekends: false,
header: {
left: 'prev,next today',
center: 'title',
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(
"http://www.google.com/calendar/feeds/b62ul6i1vvfh9vqabsal835028%40group.calendar.google.com/public/basic",
2009-09-17 08:30:10 +02:00
{
2009-11-01 00:51:30 +01:00
editable: true,
currentTimezone: '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,
.fc-agenda .holiday .fc-event-time,
2009-09-17 08:30:10 +02:00
.holiday a {
background: green;
border-color: green;
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>