liquidwidth.html 2.0 KB

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