59 lines
1.5 KiB
HTML
59 lines
1.5 KiB
HTML
<!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='../src/_loader.js?debug'></script>
|
|
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
|
|
<script type='text/javascript'>
|
|
|
|
$(document).ready(function() {
|
|
$('#calendar').fullCalendar({
|
|
weekends: false,
|
|
header: {
|
|
left: 'prev,next today',
|
|
center: 'title',
|
|
right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
|
|
},
|
|
//editable: true,
|
|
eventSources: [
|
|
{
|
|
url: "http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic",
|
|
editable: true,
|
|
className: 'holiday'
|
|
},
|
|
/*
|
|
$.fullCalendar.gcalFeed(
|
|
"http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic",
|
|
{
|
|
editable: true,
|
|
className: 'holiday'
|
|
}
|
|
),
|
|
*/
|
|
{
|
|
url: "https://www.google.com/calendar/feeds/ht3jlfaac5lfd6263ulfh4tql8%40group.calendar.google.com/public/basic",
|
|
currentTimezone: 'America/Edmonton', // 'America/Los_Angeles' 'America/Los Angeles'
|
|
editable: true
|
|
}
|
|
],
|
|
eventClick: function(event) {
|
|
console.log(event.start);
|
|
console.log(event.end);
|
|
return false;
|
|
}
|
|
});
|
|
});
|
|
|
|
</script>
|
|
<style>
|
|
|
|
.holiday * {
|
|
color: yellow !important;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body style='font-size:12px'>
|
|
<div id='calendar' style='width:900px;margin:20px auto 0;font-family:arial'></div>
|
|
</body>
|
|
</html>
|