User:Bill Flanagan/calendar

From OpenWetWare
Jump to: navigation, search

<html> <script type='text/javascript' src='/ext/FullCalendar/jquery/jquery.js'></script> <script type='text/javascript' src='/ext/FullCalendar/jquery/ui.core.js'></script> <script type='text/javascript' src='/ext/FullCalendar/jquery/ui.draggable.js'></script> <script type='text/javascript' src='/ext/FullCalendar/fullcalendar/fullcalendar.js'></script> <script type='text/javascript'> $(document).ready(function() { $('#calendar').fullCalendar({ draggable: true, events: "/ext/FullCalendar/getDates.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(); } }); }); </script> </head> <div id='loading' style='display:none'>loading...</div> <div id='calendar'></div> </html>