pages/fullcalendar-main/tests/manual/old/gcal.html

63 lines
1.7 KiB
HTML
Raw Normal View History

2024-03-06 14:33:17 +01:00
<!DOCTYPE html>
<html>
<head>
<link href='../../dist/fullcalendar.css' rel='stylesheet' />
<link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='../../node_modules/jquery/dist/jquery.js'></script>
<script src='../../node_modules/moment/moment.js'></script>
<script src='../../dist/fullcalendar.js'></script>
<script src='../../dist/plugins/google-calendar.js'></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
weekends: false,
headerToolbar: {
left: 'prev,next today',
center: 'title',
right: 'dayGridMonth,week,dayGridWeek,day,dayGridDay'
},
//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>