liquidwidth.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
  5. <link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
  6. <script src='../build/deps.js'></script>
  7. <script src='../build/out/fullcalendar/fullcalendar.js'></script>
  8. <script>
  9. $(document).ready(function() {
  10. var date = new Date();
  11. var d = date.getDate();
  12. var m = date.getMonth();
  13. var y = date.getFullYear();
  14. $('#calendar').fullCalendar({
  15. //defaultView: 'agendaWeek',
  16. //weekMode: 'variable',
  17. minTime: '5:30am',
  18. maxTime: '5:30pm',
  19. // TODO: there is a bug switching into agendaWeek from month with a 1280x1024 (with firebug showing)
  20. header: {
  21. left: 'prev,next today',
  22. center: 'prev title next',
  23. right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
  24. },
  25. editable: true,
  26. events: [
  27. {
  28. title: 'All Day Event',
  29. start: new Date(y, m, 1)
  30. },
  31. {
  32. title: 'Long Event',
  33. start: new Date(y, m, d-5),
  34. end: new Date(y, m, d-2)
  35. },
  36. {
  37. id: 999,
  38. title: 'Repeating Event',
  39. start: new Date(y, m, d-3, 16, 0),
  40. allDay: false
  41. },
  42. {
  43. id: 999,
  44. title: 'Repeating Event',
  45. start: new Date(y, m, d+4, 16, 0),
  46. allDay: false
  47. },
  48. {
  49. title: 'Meeting',
  50. start: new Date(y, m, d, 10, 30),
  51. allDay: false
  52. },
  53. {
  54. title: 'Lunch',
  55. start: new Date(y, m, d, 12, 5),
  56. end: new Date(y, m, d, 14, 43),
  57. allDay: false
  58. },
  59. {
  60. title: 'Birthday Party',
  61. start: new Date(y, m, d+1, 19, 0),
  62. end: new Date(y, m, d+1, 22, 30),
  63. allDay: false
  64. },
  65. {
  66. title: 'Click for Google',
  67. start: new Date(y, m, 28),
  68. end: new Date(y, m, 29),
  69. url: 'http://google.com/'
  70. }
  71. ]
  72. });
  73. });
  74. </script>
  75. <style>
  76. html {
  77. overflow: auto;
  78. }
  79. body {
  80. margin-top: 40px;
  81. text-align: center;
  82. font-size: 13px;
  83. font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  84. }
  85. #calendar {
  86. width: 80%;
  87. margin: 0 auto;
  88. }
  89. </style>
  90. </head>
  91. <body>
  92. <div id='calendar'></div>
  93. </body>
  94. </html>