plain.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. header: {
  13. left: 'prev,next today',
  14. center: 'title',
  15. right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
  16. },
  17. editable: true,
  18. events: [
  19. {
  20. title: 'All Day Event',
  21. start: new Date(y, m, 1)
  22. },
  23. {
  24. title: 'Long Event',
  25. start: new Date(y, m, d-5),
  26. end: new Date(y, m, d-2)
  27. },
  28. {
  29. id: 999,
  30. title: 'Repeating Event',
  31. start: new Date(y, m, d-3, 16, 0),
  32. allDay: false
  33. },
  34. {
  35. id: 999,
  36. title: 'Repeating Event',
  37. start: new Date(y, m, d+4, 16, 0),
  38. allDay: false
  39. },
  40. {
  41. title: 'Meeting',
  42. start: new Date(y, m, d, 10, 30),
  43. allDay: false
  44. },
  45. {
  46. title: 'Lunch',
  47. start: new Date(y, m, d, 12, 5),
  48. end: new Date(y, m, d, 14, 43),
  49. allDay: false
  50. },
  51. {
  52. title: 'Birthday Party',
  53. start: new Date(y, m, d+1, 19, 0),
  54. end: new Date(y, m, d+1, 22, 30),
  55. allDay: false
  56. },
  57. {
  58. title: 'Click for Google',
  59. start: new Date(y, m, 28),
  60. end: new Date(y, m, 29),
  61. url: 'http://google.com/'
  62. }
  63. ]
  64. });
  65. });
  66. </script>
  67. <style type='text/css'>
  68. body {
  69. margin-top: 40px;
  70. text-align: center;
  71. font-size: 13px;
  72. font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  73. }
  74. #calendar {
  75. width: 900px;
  76. margin: 0 auto;
  77. }
  78. </style>
  79. </head>
  80. <body>
  81. <div id='calendar'></div>
  82. </body>
  83. </html>