| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <!DOCTYPE html>
- <html>
- <head>
- <link href='../../dist/fullcalendar.css' rel='stylesheet' />
- <link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' />
- <script src='../../node_modules/jquery/dist/jquery.js'></script>
- <script src='../../node_modules/moment/moment.js'></script>
- <script src='../../dist/fullcalendar.js'></script>
- <script>
- $(document).ready(function() {
-
- var date = new Date();
- var d = date.getDate();
- var m = date.getMonth();
- var y = date.getFullYear();
-
- $('#calendar').fullCalendar({
- header: {
- left: 'prev,next today',
- center: 'title',
- right: 'month,week,dayGridWeek,day,dayGridDay'
- },
- year: 2010,
- month: 10,
- date: 14,
- editable: true,
- //dir: 'rtl',
- //hiddenDays: [ 3 ],
- /*
- // check to make sure there is no empty space where event should be
- eventRender: function(event) {
- if (event.title == 'event4') {
- return false;
- }
- },
- */
- /*
- // KNOWN BUG: there shoulnd't be an empty space
- eventRender: function(event) {
- if (event.title == 'timed event 1') {
- return false;
- }
- },
- */
- events: [
- {
- title: 'event1',
- start: '2010-11-15',
- end: '2010-11-19'
- },
- {
- title: 'event2 with a really long title that wraps',
- start: '2010-11-15'
- },
- {
- title: 'event3',
- start: '2010-11-17'
- },
- {
- title: 'event4',
- start: '2010-11-18',
- end: '2010-11-19'
- },
- {
- title: 'event5',
- start: '2010-11-18'
- },
- {
- title: 'event6 with a long title dude',
- start: '2010-11-25'
- },
- {
- title: 'event7',
- start: '2010-11-26'
- },
- {
- title: 'timed event 1',
- start: '2010-11-16T08:30:00',
- end: '2010-11-16T16:00:00',
- allDay: false
- },
- {
- title: 'timed event 2',
- start: '2010-11-16T09:30:00',
- end: '2010-11-16T11:30:00',
- allDay: false
- },
- {
- title: 'Long Event', // this allday event should be above...
- start: '2010-11-22',
- end: '2010-11-22'
- },
- {
- title: 'Birthday Party', // ...this timed event
- start: '2010-11-22T19:00:00',
- end: '2010-11-22T22:30:00',
- allDay: false
- },
- {
- title: 'An event', // this should be below the allday event
- start: '2010-11-22T00:00:00',
- allDay: false
- }
- ]
- });
-
- });
- </script>
- <style>
- body {
- margin-top: 40px;
- text-align: center;
- font-size: 13px;
- font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
- }
- #calendar {
- width: 900px;
- margin: 0 auto;
- }
- </style>
- </head>
- <body>
- <div id='calendar'></div>
- </body>
- </html>
|