options.html 2.7 KB

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