options.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html>
  3. <head>
  4. <link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
  5. <link rel='stylesheet' type='text/css' href='jgrowl/jgrowl.css' />
  6. <style type='text/css'>
  7. .full-calendar-month .rep td { background: green }
  8. .full-calendar-month .cool td { color: yellow }
  9. .full-calendar-month .long td { background: red }
  10. </style>
  11. <script type='text/javascript' src='../jquery/jquery.js'></script>
  12. <script type='text/javascript' src='../jquery/ui.core.js'></script>
  13. <script type='text/javascript' src='../jquery/ui.draggable.js'></script>
  14. <script type='text/javascript' src='../fullcalendar/fullcalendar.js'></script>
  15. <script type='text/javascript' src='jgrowl/jgrowl.js'></script>
  16. <script type='text/javascript'>
  17. $(document).ready(function() {
  18. $('#calendar').fullCalendar({
  19. year: 2009,
  20. month: 3,
  21. draggable: true,
  22. fixedWeeks: true,
  23. abbrevDayHeadings: false,
  24. //title: false,
  25. titleFormat: 'm/Y', //'n/Y', //'M y',
  26. //buttons: false,
  27. //buttons: { today:false },
  28. //buttons: { today:false, prevMonth:"prev", nextMonth:"next" },
  29. //buttons: { today:true, prevMonth:false, nextMonth:"next" },
  30. //buttons: { prevYear:true, nextYear:true },
  31. //buttons: { today:true, prevYear:"py", prevMonth:true, nextMonth:true, nextYear:"ny" },
  32. showTime: true,
  33. timeFormat: 'ha', //'H:i', //'GA', //'gX',
  34. eventDragOpacity: .5,
  35. eventRevertDuration: 2000,
  36. // test for CalEvent.source
  37. eventDrop: function(event) {
  38. $.jGrowl(event.source);
  39. },
  40. events: [
  41. {
  42. id: 1,
  43. title: "Long Event",
  44. start: new Date(2009, 3, 6, 14, 0),
  45. end: new Date(2009, 3, 11),
  46. showTime: false, // showTime
  47. className: 'long',
  48. draggable: false // draggable
  49. },
  50. {
  51. id: 2,
  52. title: "Repeating Event",
  53. start: new Date(2009, 3, 2),
  54. className: 'rep cool'
  55. },
  56. {
  57. id: 2,
  58. title: "Repeating Event",
  59. start: new Date(2009, 3, 9),
  60. className: ['rep', 'cool']
  61. },
  62. {
  63. id: 3,
  64. title: "Meeting",
  65. date: new Date(2009, 3, 20, 9, 30) // date alias
  66. },
  67. {
  68. id: 4,
  69. title: "Click for Facebook",
  70. start: new Date(2009, 3, 27, 16),
  71. end: new Date(2009, 3, 29),
  72. url: "http://facebook.com/"
  73. }
  74. ]
  75. });
  76. });
  77. </script>
  78. </head>
  79. <body style='font-size:14px;font-family:Arial'>
  80. <div id='calendar' style='width:75%'></div>
  81. </body>
  82. </html>