fullcalendar/examples/json.html

57 lines
1.4 KiB
HTML
Raw Normal View History

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;
}
2009-04-26 23:38:38 +02:00
#loading {
position: absolute;
top: 5px;
right: 5px;
}
2009-04-26 06:43:27 +02:00
#calendar {
width: 900px;
margin: 0 auto;
}
</style>
2009-05-31 06:49:51 +02:00
<link rel='stylesheet' type='text/css' href='../fullcalendar/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-05-31 06:49:51 +02:00
<script type='text/javascript' src='../fullcalendar/fullcalendar.js'></script>
2009-04-26 06:43:27 +02:00
<script type='text/javascript'>
$(document).ready(function() {
$('#calendar').fullCalendar({
draggable: true,
2009-04-26 23:38:38 +02:00
events: "json_events.php",
eventDrop: function(event, delta) {
alert(event.title + ' was moved ' + delta + ' days\n' +
'(should probably update your database)');
},
loading: function(bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
}
2009-04-26 06:43:27 +02:00
});
});
</script>
</head>
<body>
2009-04-26 23:38:38 +02:00
<div id='loading' style='display:none'>loading...</div>
2009-04-26 06:43:27 +02:00
<div id='calendar'></div>
<p>json_events.php needs to be running in the same directory.</p>
</body>
</html>