issue_554.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link href='../../dist/fullcalendar.css' rel='stylesheet' />
  5. <link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' />
  6. <script src='../../node_modules/jquery/dist/jquery.js'></script>
  7. <script src='../../node_modules/moment/moment.js'></script>
  8. <script src='../../dist/fullcalendar.js'></script>
  9. <script src='../../dist/plugins/google-calendar.js'></script>
  10. <script>
  11. $(document).ready(function() {
  12. var date = new Date();
  13. var d = date.getDate();
  14. var m = date.getMonth();
  15. var y = date.getFullYear();
  16. $('#calendar').fullCalendar({
  17. year: 2010,
  18. month: 9,
  19. date: 31,
  20. headerToolbar: {
  21. left: 'prev,next today',
  22. center: 'title',
  23. right: 'month,day'
  24. },
  25. events: FullCalendar.gcalFeed('http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic')
  26. });
  27. });
  28. </script>
  29. <style>
  30. body {
  31. margin-top: 40px;
  32. text-align: center;
  33. font-size: 13px;
  34. font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  35. }
  36. #calendar {
  37. width: 900px;
  38. margin: 0 auto;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. <button onclick="$('#calendar').fullCalendar('gotoDate',2010,10,11);$('#calendar').fullCalendar('changeView','day')">gotoDate + changeView</button>
  44. <div id='calendar'></div>
  45. </body>
  46. </html>