bootstrap5.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8' />
  5. <link href='../../bundle/main.css' rel='stylesheet' />
  6. <script src='../../bundle/main.js'></script>
  7. <!--
  8. TODO: revive this before launch
  9. <link href='../../bootstrap5/main.css' rel='stylesheet' />
  10. <script src='../../bootstrap5/main.global.js'></script>
  11. THEN, remove bootstrap5 plugin from bundle
  12. -->
  13. <link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet">
  14. <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
  15. <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
  16. <script>
  17. document.addEventListener('DOMContentLoaded', function() {
  18. var calendarEl = document.getElementById('calendar');
  19. var calendar = new FullCalendar.Calendar(calendarEl, {
  20. customButtons: {
  21. myCustomButton: {
  22. icon: 'bell',
  23. click: function() {
  24. alert('clicked the custom button!');
  25. }
  26. }
  27. },
  28. headerToolbar: {
  29. left: 'prevYear,prev,today,next,nextYear',
  30. center: 'title',
  31. right: 'myCustomButton dayGridMonth,timeGridWeek,timeGridDay'
  32. },
  33. themeSystem: 'bootstrap5',
  34. // buttonIcons: {
  35. // close: 'x-octagon',
  36. // prev: 'arrow-left-circle-fill',
  37. // next: 'arrow-right-circle-fill',
  38. // prevYear: 'arrow-return-left',
  39. // nextYear: 'arrow-return-right'
  40. // },
  41. initialDate: '2014-08-12',
  42. editable: true,
  43. dayMaxEvents: true, // allow "more" link when too many events
  44. navLinks: true,
  45. events: [
  46. {
  47. title: 'All Day Event',
  48. start: '2014-08-01'
  49. },
  50. {
  51. title: 'Long Event',
  52. start: '2014-08-07',
  53. end: '2014-08-10'
  54. },
  55. {
  56. groupId: 999,
  57. title: 'Repeating Event',
  58. start: '2014-08-09T16:00:00'
  59. },
  60. {
  61. groupId: 999,
  62. title: 'Repeating Event',
  63. start: '2014-08-16T16:00:00'
  64. },
  65. {
  66. title: 'Conference',
  67. start: '2014-08-11',
  68. end: '2014-08-13'
  69. },
  70. {
  71. title: 'Meeting',
  72. start: '2014-08-12T10:30:00',
  73. end: '2014-08-12T12:30:00'
  74. },
  75. {
  76. title: 'Lunch',
  77. start: '2014-08-12T12:00:00'
  78. },
  79. {
  80. title: 'Meeting',
  81. start: '2014-08-12T14:30:00'
  82. },
  83. {
  84. title: 'Happy Hour',
  85. start: '2014-08-12T17:30:00'
  86. },
  87. {
  88. title: 'Dinner',
  89. start: '2014-08-12T20:00:00'
  90. },
  91. {
  92. title: 'Birthday Party',
  93. start: '2014-08-13T07:00:00'
  94. },
  95. {
  96. title: 'Click for Google',
  97. url: 'http://google.com/',
  98. start: '2014-08-28'
  99. }
  100. ]
  101. });
  102. calendar.render();
  103. });
  104. </script>
  105. <style>
  106. body {
  107. margin: 40px 10px;
  108. padding: 0;
  109. font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
  110. font-size: 14px;
  111. }
  112. #calendar {
  113. max-width: 1100px;
  114. margin: 0 auto;
  115. }
  116. </style>
  117. </head>
  118. <body>
  119. <div id='calendar'></div>
  120. </body>
  121. </html>