issue_221_quick_remove_source.html 1.3 KB

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