2009-04-26 06:43:27 +02:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<style type='text/css'>
|
|
|
|
|
|
|
|
body {
|
2009-05-11 04:58:02 +02:00
|
|
|
margin-top: 40px;
|
2009-04-26 06:43:27 +02:00
|
|
|
text-align: center;
|
|
|
|
font-size: 14px;
|
|
|
|
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
#calendar {
|
2009-05-11 04:58:02 +02:00
|
|
|
width: 900px;
|
2009-04-26 06:43:27 +02:00
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
2009-04-26 23:38:38 +02:00
|
|
|
<link rel='stylesheet' type='text/css' href='../fullcalendar.css' />
|
2009-04-26 06:43:27 +02:00
|
|
|
<script type='text/javascript' src='../jquery/jquery.js'></script>
|
|
|
|
<script type='text/javascript' src='../jquery/ui.core.js'></script>
|
|
|
|
<script type='text/javascript' src='../jquery/ui.draggable.js'></script>
|
2009-04-26 23:38:38 +02:00
|
|
|
<script type='text/javascript' src='../fullcalendar.js'></script>
|
2009-04-26 06:43:27 +02:00
|
|
|
<script type='text/javascript'>
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
2009-05-18 07:36:12 +02:00
|
|
|
$('input').click(function() {
|
|
|
|
|
|
|
|
/*$('#calendar').fullCalendar("addEvent", {
|
|
|
|
id: 999,
|
|
|
|
title: "Adam Shaw",
|
|
|
|
start: "2009-05-18"
|
|
|
|
});*/
|
|
|
|
|
2009-05-25 19:26:13 +02:00
|
|
|
//$('#calendar').fullCalendar("removeEvent", 3);
|
2009-05-18 07:36:12 +02:00
|
|
|
|
2009-05-25 19:26:13 +02:00
|
|
|
var events = $('#calendar').fullCalendar('getEventsById', 2);
|
2009-05-18 07:36:12 +02:00
|
|
|
var ev1 = events[0];
|
|
|
|
ev1.title = "yo";
|
|
|
|
ev1.start = '2009-05-14';
|
|
|
|
ev1.end = '2009-05-16';
|
2009-05-25 19:26:13 +02:00
|
|
|
$('#calendar').fullCalendar('updateEvent', ev1);
|
2009-05-18 07:36:12 +02:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2009-04-26 06:43:27 +02:00
|
|
|
var d = new Date();
|
|
|
|
var y = d.getFullYear();
|
|
|
|
var m = d.getMonth();
|
|
|
|
|
|
|
|
$('#calendar').fullCalendar({
|
|
|
|
draggable: true,
|
|
|
|
events: [
|
|
|
|
{
|
|
|
|
id: 1,
|
|
|
|
title: "Long Event",
|
2009-05-08 21:34:50 +02:00
|
|
|
start: new Date(y, m, 6, 14, 0),
|
2009-04-26 06:43:27 +02:00
|
|
|
end: new Date(y, m, 11)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
title: "Repeating Event",
|
|
|
|
start: new Date(y, m, 2)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 2,
|
|
|
|
title: "Repeating Event",
|
|
|
|
start: new Date(y, m, 9)
|
|
|
|
},
|
2009-05-11 04:58:02 +02:00
|
|
|
{
|
2009-04-26 06:43:27 +02:00
|
|
|
id: 3,
|
|
|
|
title: "Meeting",
|
|
|
|
start: new Date(y, m, 20, 9, 0)
|
2009-05-11 04:58:02 +02:00
|
|
|
},
|
2009-04-26 06:43:27 +02:00
|
|
|
{
|
|
|
|
id: 4,
|
|
|
|
title: "Click for Facebook",
|
2009-05-10 21:48:37 +02:00
|
|
|
start: new Date(y, m, 27, 16),
|
|
|
|
end: new Date(y, m, 29),
|
|
|
|
url: "http://facebook.com/"
|
2009-04-26 06:43:27 +02:00
|
|
|
}
|
2009-05-25 19:26:13 +02:00
|
|
|
]
|
2009-04-26 06:43:27 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2009-05-18 07:36:12 +02:00
|
|
|
<input type='button' />
|
2009-04-26 06:43:27 +02:00
|
|
|
<div id='calendar'></div>
|
|
|
|
</body>
|
|
|
|
</html>
|