项目作者: marcustansoon

项目描述 :
HTML/CSS Event Calendar UI Widget
高级语言: JavaScript
项目地址: git://github.com/marcustansoon/CSS-Event-Calendar-Widget.git
创建时间: 2020-07-24T07:03:42Z
项目社区:https://github.com/marcustansoon/CSS-Event-Calendar-Widget

开源协议:

下载


CSS-Event-Calendar-Widget

HTML/CSS Event Calendar UI Widget (Modified & Improved version)" class="reference-link">#00f7ff HTML/CSS Event Calendar UI Widget (Modified & Improved version)

Sample Usage" class="reference-link">#00ff5e Sample Usage

  1. <!-- Mobile friendly -->
  2. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  3. <!-- Import custom font family, calendar stylesheet -->
  4. <link href="https://fonts.googleapis.com/css?family=Nunito:300,400,600,700" rel="stylesheet">
  5. <link rel="stylesheet" href="https://raw.githack.com/marcustansoon/CSS-Event-Calendar-Widget/master/src/css/styles.css">
  6. <!-- Import calendar JS, moment JS -->
  7. <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js"></script>
  8. <script src="https://raw.githack.com/marcustansoon/CSS-Event-Calendar-Widget/master/src/js/eventCalendarWidget.min.js"></script>
  9. <div id="calendar"></div>
  1. <script>
  2. // Init data
  3. var data = [{
  4. eventName: "Medical check-up",
  5. calendar: "Deep",
  6. color: "blue", //'blue','orange','green','yellow','red','coral','purple','lime','black' OR 'aqua'
  7. location: "General Hospital",
  8. eventFrom: "2020-07-27 16:30:00",
  9. eventTo: "2020-07-31 17:00:00",
  10. href: "www.google.com",
  11. },
  12. {
  13. eventName: "Gaming time",
  14. calendar: "Hobby",
  15. color: "lime",
  16. location: "Cyber World",
  17. eventFrom: "2020-06-26 16:30:00",
  18. eventTo: "2020-06-26 17:00:00",
  19. href: "www.yahoo.com",
  20. },
  21. {
  22. eventName: "Workout",
  23. calendar: "gym",
  24. color: "coral",
  25. location: "Angelus Fitness",
  26. eventFrom: "2020-06-04 08:30:00",
  27. eventTo: "2020-06-05 10:30:00",
  28. }
  29. ];
  30. // Instantiate calendar
  31. let calendar = new Calendar("#calendar", data);
  32. </script>

calendar-demo.html




I lay no claim as originator of any content or property featured here. All rights reserved to it’s rightful owner/owner’s. No copyright infringement intended.

Credits to :" class="reference-link">#c5f015 Credits to :

@peanav


@christopherprins