2009-09-08 05:01:28 +02:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
2009-09-08 09:50:23 +02:00
|
|
|
<script type='text/javascript' src='loader.js'></script>
|
2009-09-08 05:01:28 +02:00
|
|
|
<script type='text/javascript'>
|
|
|
|
|
|
|
|
var d = new Date();
|
|
|
|
var y = d.getFullYear();
|
|
|
|
var m = d.getMonth();
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#calendar').fullCalendar({
|
|
|
|
windowResize: function() {
|
|
|
|
//alert('resize');
|
|
|
|
},
|
|
|
|
theme: false,
|
|
|
|
isRTL: false,
|
|
|
|
weekStart: 1,
|
|
|
|
weekMode: 'fixed',
|
|
|
|
//defaultView: 'dayBasic',
|
|
|
|
viewDisplay: function(date, view) {
|
|
|
|
//console.log(date + ', ' + view.name);
|
|
|
|
},
|
|
|
|
dayClick: function(date, view) {
|
|
|
|
//console.log(date + ', ' + view.name);
|
|
|
|
},
|
|
|
|
eventRender: function(event, element) {
|
|
|
|
//console.log(event.title + ' RENDER');
|
|
|
|
},
|
|
|
|
eventMouseover: function(event) {
|
|
|
|
//console.log('OVER ' + event.title);
|
|
|
|
},
|
|
|
|
eventMouseout: function(event) {
|
|
|
|
//console.log('OUT ' + event.title);
|
|
|
|
},
|
|
|
|
eventClick: function(event) {
|
|
|
|
//console.log('CLICK ' + event.title + ' /// ' + this.className);
|
|
|
|
//return false;
|
|
|
|
},
|
|
|
|
eventDragStart: function(event) {
|
2009-09-08 09:50:23 +02:00
|
|
|
console.log('DRAG START ' + event.title);
|
2009-09-08 05:01:28 +02:00
|
|
|
},
|
|
|
|
eventDragStop: function(event) {
|
2009-09-08 09:50:23 +02:00
|
|
|
console.log('DRAG STOP ' + event.title);
|
2009-09-08 05:01:28 +02:00
|
|
|
},
|
|
|
|
eventDrop: function(event, dayDelta, minuteDelta) {
|
2009-09-08 09:50:23 +02:00
|
|
|
console.log(dayDelta + ' ' + minuteDelta + ' --- ' + event.title);
|
2009-09-08 05:01:28 +02:00
|
|
|
},
|
|
|
|
eventResizeStart: function(event) {
|
|
|
|
//console.log('resize START');
|
|
|
|
},
|
|
|
|
eventResizeStop: function(event) {
|
|
|
|
//console.log('resize STOP');
|
|
|
|
},
|
|
|
|
eventResize: function(event, dayDelta, minuteDelta) {
|
|
|
|
//console.log(dayDelta + ' ' + minuteDelta + ' --- ' + event.title);
|
|
|
|
},
|
|
|
|
editable: true,
|
|
|
|
eventSources: [
|
|
|
|
$.fullCalendar.gcalFeed('http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic')
|
|
|
|
],
|
|
|
|
events: [
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
title: "Long Event",
|
|
|
|
start: new Date(y, m, 6),
|
|
|
|
end: new Date(y, m, 10)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
title: "Repeating",
|
|
|
|
start: new Date(y, m, 2)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
title: "Repeating",
|
|
|
|
start: new Date(y, m, 9)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 3,
|
|
|
|
title: "Meeting",
|
|
|
|
start: new Date(y, m, 20, 9, 0),
|
|
|
|
hasTime: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 4,
|
|
|
|
title: "Click for Facebook",
|
|
|
|
start: new Date(y, m, 27),
|
|
|
|
end: new Date(y, m, 28),
|
|
|
|
url: "http://facebook.com/"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 5,
|
|
|
|
title: "timed event1",
|
|
|
|
start: new Date (y, m, 31, 17, 30),
|
|
|
|
hasTime: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 6,
|
|
|
|
title: "timed event1",
|
|
|
|
start: new Date (y, m+1, 2, 14, 15),
|
|
|
|
hasTime: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 7,
|
|
|
|
title: "timed event1",
|
|
|
|
start: new Date (y, m+1, 4, 15, 00),
|
|
|
|
end: new Date(y, m+1, 4, 17, 00),
|
|
|
|
hasTime: true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body style='font-size:12px'>
|
|
|
|
<div id='calendar' style='width:900px;margin:20px auto 0;font-family:arial'></div>
|
|
|
|
</body>
|