default.html 2.0 KB

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