demo.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. $(document).ready( function(){
  2. var cTime = new Date(), month = cTime.getMonth()+1, year = cTime.getFullYear();
  3. theMonths = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  4. theDays = ["S", "M", "T", "W", "T", "F", "S"];
  5. events = [
  6. [
  7. "4/"+month+"/"+year,
  8. 'Meet a friend',
  9. '#',
  10. '#177bbb',
  11. 'Contents here'
  12. ],
  13. [
  14. "7/"+month+"/"+year,
  15. 'Kick off meeting!',
  16. '#',
  17. '#1bbacc',
  18. 'Have a kick off meeting with .inc company'
  19. ],
  20. [
  21. "17/"+month+"/"+year,
  22. 'Milestone release',
  23. '#',
  24. '#fcc633',
  25. 'Contents here'
  26. ],
  27. [
  28. "19/"+month+"/"+year,
  29. 'A link',
  30. 'http://www.google.com',
  31. '#e33244'
  32. ]
  33. ];
  34. $('#calendar').calendar({
  35. months: theMonths,
  36. days: theDays,
  37. events: events,
  38. popover_options:{
  39. placement: 'top',
  40. html: true
  41. }
  42. });
  43. });