themes.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8' />
  5. <link href='https://use.fontawesome.com/releases/v5.0.6/css/all.css' rel='stylesheet'>
  6. <link href='../fullcalendar.min.css' rel='stylesheet' />
  7. <link href='../fullcalendar.print.min.css' rel='stylesheet' media='print' />
  8. <script src='../lib/moment.min.js'></script>
  9. <script src='../lib/jquery.min.js'></script>
  10. <script src='../fullcalendar.min.js'></script>
  11. <script src='js/theme-chooser.js'></script>
  12. <script>
  13. $(document).ready(function() {
  14. initThemeChooser({
  15. init: function(themeSystem) {
  16. $('#calendar').fullCalendar({
  17. themeSystem: themeSystem,
  18. header: {
  19. left: 'prev,next today',
  20. center: 'title',
  21. right: 'month,agendaWeek,agendaDay,listMonth'
  22. },
  23. defaultDate: '2020-05-12',
  24. weekNumbers: true,
  25. navLinks: true, // can click day/week names to navigate views
  26. editable: true,
  27. eventLimit: true, // allow "more" link when too many events
  28. events: [
  29. {
  30. title: 'All Day Event',
  31. start: '2020-05-01'
  32. },
  33. {
  34. title: 'Long Event',
  35. start: '2020-05-07',
  36. end: '2020-05-10'
  37. },
  38. {
  39. id: 999,
  40. title: 'Repeating Event',
  41. start: '2020-05-09T16:00:00'
  42. },
  43. {
  44. id: 999,
  45. title: 'Repeating Event',
  46. start: '2020-05-16T16:00:00'
  47. },
  48. {
  49. title: 'Conference',
  50. start: '2020-05-11',
  51. end: '2020-05-13'
  52. },
  53. {
  54. title: 'Meeting',
  55. start: '2020-05-12T10:30:00',
  56. end: '2020-05-12T12:30:00'
  57. },
  58. {
  59. title: 'Lunch',
  60. start: '2020-05-12T12:00:00'
  61. },
  62. {
  63. title: 'Meeting',
  64. start: '2020-05-12T14:30:00'
  65. },
  66. {
  67. title: 'Happy Hour',
  68. start: '2020-05-12T17:30:00'
  69. },
  70. {
  71. title: 'Dinner',
  72. start: '2020-05-12T20:00:00'
  73. },
  74. {
  75. title: 'Birthday Party',
  76. start: '2020-05-13T07:00:00'
  77. },
  78. {
  79. title: 'Click for Google',
  80. url: 'http://google.com/',
  81. start: '2020-05-28'
  82. }
  83. ]
  84. });
  85. },
  86. change: function(themeSystem) {
  87. $('#calendar').fullCalendar('option', 'themeSystem', themeSystem);
  88. }
  89. });
  90. });
  91. </script>
  92. <style>
  93. body {
  94. margin: 0;
  95. padding: 0;
  96. font-size: 14px;
  97. }
  98. #top,
  99. #calendar.fc-unthemed {
  100. font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  101. }
  102. #top {
  103. background: #eee;
  104. border-bottom: 1px solid #ddd;
  105. padding: 0 10px;
  106. line-height: 40px;
  107. font-size: 12px;
  108. color: #000;
  109. }
  110. #top .selector {
  111. display: inline-block;
  112. margin-right: 10px;
  113. }
  114. #top select {
  115. font: inherit; /* mock what Boostrap does, don't compete */
  116. }
  117. .left { float: left }
  118. .right { float: right }
  119. .clear { clear: both }
  120. #calendar {
  121. max-width: 900px;
  122. margin: 40px auto;
  123. padding: 0 10px;
  124. }
  125. </style>
  126. </head>
  127. <body>
  128. <div id='top'>
  129. <div class='left'>
  130. <div id='theme-system-selector' class='selector'>
  131. Theme System:
  132. <select>
  133. <option value='bootstrap4' selected>Bootstrap 4</option>
  134. <option value='bootstrap3'>Bootstrap 3</option>
  135. <option value='jquery-ui'>jQuery UI</option>
  136. <option value='standard'>unthemed</option>
  137. </select>
  138. </div>
  139. <div data-theme-system="bootstrap3" class='selector' style='display:none'>
  140. Theme Name:
  141. <select>
  142. <option value='' selected>Default</option>
  143. <option value='cosmo'>Cosmo</option>
  144. <option value='cyborg'>Cyborg</option>
  145. <option value='darkly'>Darkly</option>
  146. <option value='flatly'>Flatly</option>
  147. <option value='journal'>Journal</option>
  148. <option value='lumen'>Lumen</option>
  149. <option value='paper'>Paper</option>
  150. <option value='readable'>Readable</option>
  151. <option value='sandstone'>Sandstone</option>
  152. <option value='simplex'>Simplex</option>
  153. <option value='slate'>Slate</option>
  154. <option value='solar'>Solar</option>
  155. <option value='spacelab'>Spacelab</option>
  156. <option value='superhero'>Superhero</option>
  157. <option value='united'>United</option>
  158. <option value='yeti'>Yeti</option>
  159. </select>
  160. </div>
  161. <div data-theme-system="bootstrap4" class='selector' style='display:none'>
  162. Theme Name:
  163. <select>
  164. <option value='' selected>Default</option>
  165. <option value='cerulean'>Cerulean</option>
  166. <option value='cosmo'>Cosmo</option>
  167. <option value='cyborg'>Cyborg</option>
  168. <option value='darkly'>Darkly</option>
  169. <option value='flatly'>Flatly</option>
  170. <option value='journal'>Journal</option>
  171. <option value='litera'>Litera</option>
  172. <option value='lumen'>Lumen</option>
  173. <option value='lux'>Lux</option>
  174. <option value='materia'>Materia</option>
  175. <option value='minty'>Minty</option>
  176. <option value='pulse'>Pulse</option>
  177. <option value='sandstone'>Sandstone</option>
  178. <option value='simplex'>Simplex</option>
  179. <option value='sketchy'>Sketchy</option>
  180. <option value='slate'>Slate</option>
  181. <option value='solar'>Solar</option>
  182. <option value='spacelab'>Spacelab</option>
  183. <option value='superhero'>Superhero</option>
  184. <option value='united'>United</option>
  185. <option value='yeti'>Yeti</option>
  186. </select>
  187. </div>
  188. <div data-theme-system="jquery-ui" class='selector' style='display:none'>
  189. Theme Name:
  190. <select>
  191. <option value='black-tie'>Black Tie</option>
  192. <option value='blitzer'>Blitzer</option>
  193. <option value='cupertino' selected>Cupertino</option>
  194. <option value='dark-hive'>Dark Hive</option>
  195. <option value='dot-luv'>Dot Luv</option>
  196. <option value='eggplant'>Eggplant</option>
  197. <option value='excite-bike'>Excite Bike</option>
  198. <option value='flick'>Flick</option>
  199. <option value='hot-sneaks'>Hot Sneaks</option>
  200. <option value='humanity'>Humanity</option>
  201. <option value='le-frog'>Le Frog</option>
  202. <option value='mint-choc'>Mint Choc</option>
  203. <option value='overcast'>Overcast</option>
  204. <option value='pepper-grinder'>Pepper Grinder</option>
  205. <option value='redmond'>Redmond</option>
  206. <option value='smoothness'>Smoothness</option>
  207. <option value='south-street'>South Street</option>
  208. <option value='start'>Start</option>
  209. <option value='sunny'>Sunny</option>
  210. <option value='swanky-purse'>Swanky Purse</option>
  211. <option value='trontastic'>Trontastic</option>
  212. <option value='ui-darkness'>UI Darkness</option>
  213. <option value='ui-lightness'>UI Lightness</option>
  214. <option value='vader'>Vader</option>
  215. </select>
  216. </div>
  217. <span id='loading' style='display:none'>loading theme...</span>
  218. </div>
  219. <div class='right'>
  220. <span class='credits' data-credit-id='bootstrap-standard' style='display:none'>
  221. <a href='https://getbootstrap.com/docs/3.3/' target='_blank'>Theme by Bootstrap</a>
  222. </span>
  223. <span class='credits' data-credit-id='bootstrap-custom' style='display:none'>
  224. <a href='https://bootswatch.com/' target='_blank'>Theme by Bootswatch</a>
  225. </span>
  226. <span class='credits' data-credit-id='jquery-ui' style='display:none'>
  227. <a href='http://jqueryui.com/themeroller/' target='_blank'>Theme by jQuery UI</a>
  228. </span>
  229. </div>
  230. <div class='clear'></div>
  231. </div>
  232. <div id='calendar'></div>
  233. </body>
  234. </html>