0
0

basic-views.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. header: {
  14. left: 'prev,next today',
  15. center: 'title',
  16. right: 'month,basicWeek,basicDay'
  17. },
  18. defaultDate: '2020-05-12',
  19. navLinks: true, // can click day/week names to navigate views
  20. editable: true,
  21. eventLimit: true, // allow "more" link when too many events
  22. events: [
  23. {
  24. title: 'All Day Event',
  25. start: '2020-05-01'
  26. },
  27. {
  28. title: 'Long Event',
  29. start: '2020-05-07',
  30. end: '2020-05-10'
  31. },
  32. {
  33. id: 999,
  34. title: 'Repeating Event',
  35. start: '2020-05-09T16:00:00'
  36. },
  37. {
  38. id: 999,
  39. title: 'Repeating Event',
  40. start: '2020-05-16T16:00:00'
  41. },
  42. {
  43. title: 'Conference',
  44. start: '2020-05-11',
  45. end: '2020-05-13'
  46. },
  47. {
  48. title: 'Meeting',
  49. start: '2020-05-12T10:30:00',
  50. end: '2020-05-12T12:30:00'
  51. },
  52. {
  53. title: 'Lunch',
  54. start: '2020-05-12T12:00:00'
  55. },
  56. {
  57. title: 'Meeting',
  58. start: '2020-05-12T14:30:00'
  59. },
  60. {
  61. title: 'Happy Hour',
  62. start: '2020-05-12T17:30:00'
  63. },
  64. {
  65. title: 'Dinner',
  66. start: '2020-05-12T20:00:00'
  67. },
  68. {
  69. title: 'Birthday Party',
  70. start: '2020-05-13T07:00:00'
  71. },
  72. {
  73. title: 'Click for Google',
  74. url: 'http://google.com/',
  75. start: '2020-05-28'
  76. }
  77. ]
  78. });
  79. });
  80. </script>
  81. <style>
  82. body {
  83. margin: 40px 10px;
  84. padding: 0;
  85. font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  86. font-size: 14px;
  87. }
  88. #calendar {
  89. max-width: 900px;
  90. margin: 0 auto;
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <div id='calendar'></div>
  96. </body>
  97. </html>