Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html><head>
  3. <meta charset='utf-8' />
  4. <link rel="stylesheet" href="fullcalendar-4.0.0-alpha.4/fullcalendar.css">
  5. <script src="fullcalendar-4.0.0-alpha.4/fullcalendar.js"></script>
  6. <script src="fullcalendar-4.0.0-alpha.4/locales/pl.js"></script>
  7.  
  8. <script>
  9.  
  10. document.addEventListener('DOMContentLoaded', function() { // page is now ready...
  11. var calendarEl = document.getElementById('calendar'); // grab element reference
  12.  
  13. var calendar = new FullCalendar.Calendar(calendarEl, {
  14. // put your options and callbacks here
  15. header: {
  16. left: 'prev,next today',
  17. center: 'title',
  18. right: 'month,agendaWeek,agendaDay,listMonth'
  19. },
  20. defaultView: 'month',
  21. title: 'rodzinka',
  22. locale:'pl',
  23. navLinks: true
  24. });
  25.  
  26.  
  27. calendar.addEvent({title: "sss", start: "2019-03-08 13:15", end: "2019-03-08 17:23", color: '#ffb3ff', textColor: '#fff', editable: true});
  28. calendar.render();
  29.  
  30.  
  31.  
  32. });
  33.  
  34. </script>
  35. </head><body>
  36. <div id="calendar"></div>
  37. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement