options.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. },
  55. timeFormat: "h(:mm)[T]{ - h(:mm)T}",
  56. //timeFormat: { agendaWeek: "'YO'" },
  57. minTime: 5,
  58. maxTime: '10:45pm',
  59. //dayClick: function(date) {
  60. // console.log(date);
  61. //},
  62. isRTL: true,
  63. events: [
  64. {
  65. title: 'All Day Event',
  66. start: new Date(y, m, 1)
  67. },
  68. {
  69. title: 'Long Event',
  70. start: new Date(y, m, d-5),
  71. end: new Date(y, m, d-2)
  72. },
  73. {
  74. id: 999,
  75. title: 'Repeating Event',
  76. start: new Date(y, m, d-3, 16, 0),
  77. allDay: false
  78. },
  79. {
  80. id: 999,
  81. title: 'Repeating Event',
  82. start: new Date(y, m, d+4, 16, 0),
  83. allDay: false
  84. },
  85. {
  86. title: 'Meeting',
  87. start: new Date(y, m, d, 10, 30),
  88. allDay: false
  89. },
  90. {
  91. id: 777,
  92. title: 'Lunch',
  93. start: new Date(y, m, d, 12, 0),
  94. end: new Date(y, m, d, 14, 0),
  95. allDay: false
  96. },
  97. {
  98. title: 'Birthday Party',
  99. start: new Date(y, m, d+1, 19, 0),
  100. end: new Date(y, m, d+1, 22, 30),
  101. allDay: false
  102. },
  103. {
  104. title: 'Click for Google',
  105. start: new Date(y, m, 28),
  106. end: new Date(y, m, 29),
  107. url: 'http://google.com/'
  108. }
  109. ]
  110. });
  111. });
  112. </script>
  113. </head>
  114. <body style='font-size:12px'>
  115. <div id='calendar' style='width:70%;margin:20px auto 0;font-family:arial'></div>
  116. </body>
  117. </html>