options.html 2.5 KB

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