2
0

issue_221_quick_remove_source.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html>
  3. <head>
  4. <script type='text/javascript' src='loader.js'></script>
  5. <script type='text/javascript'>
  6. var gcalFeed = $.fullCalendar.gcalFeed("http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic");
  7. $(document).ready(function() {
  8. var cal = $('#calendar').fullCalendar({
  9. header: {
  10. left: 'prev,next today',
  11. center: 'title',
  12. right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
  13. },
  14. loading: function(bool) {
  15. if (bool) {
  16. $('#loading').show();
  17. }else{
  18. $('#loading').hide();
  19. }
  20. }
  21. });
  22. cal.fullCalendar('addEventSource', gcalFeed);
  23. cal.fullCalendar('removeEventSource', gcalFeed);
  24. // events should not be rendered when jsonp returns!
  25. });
  26. </script>
  27. <style>
  28. .red-event a {
  29. background: red;
  30. }
  31. .yellow-event a {
  32. background: yellow;
  33. }
  34. .black-text-event a {
  35. color: #000;
  36. }
  37. button {
  38. font-size: 11px;
  39. }
  40. </style>
  41. </head>
  42. <body style='font-size:12px'>
  43. <div id='loading' style='position:absolute;top:0;left:0;display:none'>loading...</div>
  44. <div id='calendar' style='width:900px;margin:20px auto 0;font-family:arial'></div>
  45. </body>
  46. </html>