Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

clndr-custom.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. "use strict";
  2. $(document).ready(function() {
  3. var a = moment().format("YYYY-MM"),
  4. b = moment().add("month", 1).format("YYYY-MM"),
  5. c = [{
  6. date: a + "-10",
  7. title: "Robot war",
  8. location: "Center of Science"
  9. }, {
  10. date: a + "-19",
  11. title: "Cat Frisbee",
  12. location: "Jefferson Park"
  13. }, {
  14. date: a + "-23",
  15. title: "Elephent fight",
  16. location: "Natural Park"
  17. }, {
  18. date: b + "-07",
  19. title: "Small Cat Photo Session",
  20. location: "Center for Cat Photography"
  21. }];
  22. $("#clndr-default").clndr({
  23. template: $("#clndr-template").html(),
  24. events: c
  25. });
  26. $("#clndr-adjacent").clndr({
  27. template: $("#clndr-template").html(),
  28. events: c,
  29. showAdjacentMonths: !0,
  30. adjacentDaysChangeMonth: !0
  31. });
  32. var d = [{
  33. title: "Event for day 1",
  34. startDate: moment().format("YYYY-MM-") + "12",
  35. endDate: moment().format("YYYY-MM-") + "17"
  36. }, {
  37. title: "Event for day 2",
  38. startDate: moment().format("YYYY-MM-") + "24",
  39. endDate: moment().format("YYYY-MM-") + "27"
  40. }];
  41. $("#clndr-multiday").clndr({
  42. template: $("#clndr-template").html(),
  43. events: d,
  44. multiDayEvents: {
  45. endDate: "endDate",
  46. startDate: "startDate"
  47. }
  48. }), $("#clndr-constraints").clndr({
  49. template: $("#clndr-template").html(),
  50. constraints: {
  51. startDate: moment().format("YYYY-MM-") + "04",
  52. endDate: moment().format("YYYY-MM-") + "24"
  53. }
  54. }), $("#clndr-six-rows").clndr({
  55. template: $("#clndr-template").html(),
  56. events: c,
  57. forceSixRows: !0
  58. }), $("#clndr-selected-date").clndr({
  59. template: $("#clndr-template").html(),
  60. events: c,
  61. trackSelectedDate: !0
  62. })
  63. });