0
0

week-numbers.html 2.3 KB

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