options.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. <script type='text/javascript' src='loader.js'></script>
  5. <script type='text/javascript'>
  6. var date = new Date();
  7. var d = date.getDate();
  8. var m = date.getMonth();
  9. var y = date.getFullYear();
  10. $(document).ready(function() {
  11. $('#calendar').fullCalendar({
  12. //year: 2010,
  13. //month: 0,
  14. //date: 1,
  15. /*
  16. //previous bug, should NOT be march
  17. year: 2009,
  18. month: 1,
  19. date: 15,
  20. */
  21. //defaultView: 'basicDay',
  22. //aspectRatio: 2,
  23. //weekends: false,
  24. height: 500,
  25. header: {
  26. left: 'title',
  27. center: 'month,agendaWeek,basicWeek,agendaDay,basicDay',
  28. right: 'today prevYear,prev,next,nextYear'
  29. },
  30. editable: true,
  31. //disableDragging: true,
  32. //disableResizing: true,
  33. dragOpacity: .5,
  34. //dragOpacity: { agendaWeek: .1 },
  35. dragRevertDuration: 100,
  36. //weekMode: 'variable',
  37. //allDaySlot: false,
  38. allDayText: 'ALLDAY',
  39. firstHour: 10,
  40. slotMinutes: 15,
  41. defaultEventMinutes: 30,
  42. //axisFormat: "Hmm",
  43. //allDayDefault: false,
  44. /*
  45. titleFormat: {
  46. month: "'hey!'"
  47. },
  48. */
  49. columnFormat: {
  50. month: "dddd"
  51. },
  52. timeFormat: "h(:mm)[T]{ - h(:mm)T}",
  53. //timeFormat: { agendaWeek: "'YO'" },
  54. events: [
  55. {
  56. title: 'All Day Event',
  57. start: new Date(y, m, 1)
  58. },
  59. {
  60. title: 'Long Event',
  61. start: new Date(y, m, d-5),
  62. end: new Date(y, m, d-2)
  63. },
  64. {
  65. id: 999,
  66. title: 'Repeating Event',
  67. start: new Date(y, m, d-3, 16, 0),
  68. allDay: false
  69. },
  70. {
  71. id: 999,
  72. title: 'Repeating Event',
  73. start: new Date(y, m, d+4, 16, 0),
  74. allDay: false
  75. },
  76. {
  77. title: 'Meeting',
  78. start: new Date(y, m, d, 10, 30),
  79. allDay: false
  80. },
  81. {
  82. id: 777,
  83. title: 'Lunch',
  84. start: new Date(y, m, d, 12, 0),
  85. end: new Date(y, m, d, 14, 0),
  86. allDay: false
  87. },
  88. {
  89. title: 'Birthday Party',
  90. start: new Date(y, m, d+1, 19, 0),
  91. end: new Date(y, m, d+1, 22, 30),
  92. allDay: false
  93. },
  94. {
  95. title: 'Click for Google',
  96. start: new Date(y, m, 28),
  97. end: new Date(y, m, 29),
  98. url: 'http://google.com/'
  99. }
  100. ]
  101. });
  102. });
  103. </script>
  104. </head>
  105. <body style='font-size:12px'>
  106. <div id='calendar' style='width:900px;margin:20px auto 0;font-family:arial'></div>
  107. </body>
  108. </html>