Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <apex:page showHeader="true" sidebar="true">
  2. <apex:stylesheet value="{!URLFOR($Resource.FullCalendar, '/fullcalendar-3.1.0/fullcalendar.css')}"/>
  3. <apex:includeScript value="{!URLFOR($Resource.FullCalendar,'/fullcalendar-3.1.0/lib/jquery.min.js')}"/>
  4. <apex:includeScript value="{!URLFOR($Resource.FullCalendar,'/fullcalendar-3.1.0/lib/moment.min.js')}"/>
  5. <apex:includeScript value="{!URLFOR($Resource.FullCalendar,'/fullcalendar-3.1.0/fullcalendar.js')}"/>
  6.  
  7. <script>
  8. $(document).ready(function() {
  9. // page is now ready, initialize the calendar...
  10. $('#calendar').fullCalendar({ header: {
  11. left: 'prev,next today',
  12. center: 'title',
  13. right: 'month,agendaWeek,agendaDay'
  14. },
  15. editable: false,
  16. events:
  17. [{
  18. title:'Event Number 1',
  19. start:new moment('2017-01-24 13:00:00').add(1, 'hours').format('LLL'),
  20. end:new moment('2017-01-24 14:45:00').format('LLL'),
  21. backgroundColor:'transparent',
  22. textColor:'black',
  23. allDay:false
  24. },{
  25. title:'Event Number 2',
  26. start:new moment('2017-01-26').format('YYYY-MM-DD'),
  27. end:new moment('2017-01-26').format('YYYY-MM-DD'),
  28. backgroundColor:'transparent',
  29. textColor:'red',
  30. allDay:true
  31. }]
  32. });});
  33. </script>
  34. <div id='calendar'></div>
  35. </apex:page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement