default.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8' />
  5. <link href='../fullcalendar.min.css' rel='stylesheet' />
  6. <link href='../fullcalendar.print.min.css' rel='stylesheet' media='print' />
  7. <script src='../lib/moment.min.js'></script>
  8. <script src='../lib/jquery.min.js'></script>
  9. <script src='../fullcalendar.min.js'></script>
  10. <script>
  11. $(document).ready(function() {
  12. $('#calendar').fullCalendar({
  13. defaultDate: '2020-05-12',
  14. editable: true,
  15. eventLimit: true, // allow "more" link when too many events
  16. events: [
  17. {
  18. title: 'All Day Event',
  19. start: '2020-05-01'
  20. },
  21. {
  22. title: 'Long Event',
  23. start: '2020-05-07',
  24. end: '2020-05-10'
  25. },
  26. {
  27. id: 999,
  28. title: 'Repeating Event',
  29. start: '2020-05-09T16:00:00'
  30. },
  31. {
  32. id: 999,
  33. title: 'Repeating Event',
  34. start: '2020-05-16T16:00:00'
  35. },
  36. {
  37. title: 'Conference',
  38. start: '2020-05-11',
  39. end: '2020-05-13'
  40. },
  41. {
  42. title: 'Meeting',
  43. start: '2020-05-12T10:30:00',
  44. end: '2020-05-12T12:30:00'
  45. },
  46. {
  47. title: 'Lunch',
  48. start: '2020-05-12T12:00:00'
  49. },
  50. {
  51. title: 'Meeting',
  52. start: '2020-05-12T14:30:00'
  53. },
  54. {
  55. title: 'Happy Hour',
  56. start: '2020-05-12T17:30:00'
  57. },
  58. {
  59. title: 'Dinner',
  60. start: '2020-05-12T20:00:00'
  61. },
  62. {
  63. title: 'Birthday Party',
  64. start: '2020-05-13T07:00:00'
  65. },
  66. {
  67. title: 'Click for Google',
  68. url: 'http://google.com/',
  69. start: '2020-05-28'
  70. }
  71. ]
  72. });
  73. });
  74. </script>
  75. <style>
  76. body {
  77. margin: 40px 10px;
  78. padding: 0;
  79. font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  80. font-size: 14px;
  81. }
  82. #calendar {
  83. max-width: 900px;
  84. margin: 0 auto;
  85. }
  86. </style>
  87. </head>
  88. <body>
  89. <div id='calendar'></div>
  90. </body>
  91. </html>