Nenhuma descrição

month-view.html 2.2KB

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