list-views.html 2.5 KB

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