Minimal Event Calendar Plugin With jQuery - mini-event-calendar.js
File Size: | 86.6 KB |
---|---|
Views Total: | 12997 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

A minimal, easy-to-use jQuery plugin used to embed a compact monthly calendar with custom events into your web page.
How to use it:
1. Insert jQuery JavaScript library and the Mini Event Calendar plugin's files into the page.
<link rel="stylesheet" href="src/mini-event-calendar.min.css"> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"> </script> <script src="src/mini-event-calendar.min.js"></script>
2. Create a placeholder element for the event calendar.
<div id="calendar"></div>
3. Generate a basic calendar (without events) in the container element.
$("#calendar").MEC();
4. Add your own events to the calendar.
var myEvents = [{ title: "Event Title 1", date: 1519806678259, // unix timestamp link: "jqueryscript.net" // event link },{ title: "Event Title 2", date: 1519851600000, link: "jqueryscript.net" }, // more events here ]; $("#calendar").MEC({ calendar_link: "jqueryscript.net", // calendar link events: myEvents });
Changelog:
2018-07-26
- Minor UI tweaks
This awesome jQuery plugin is developed by jesstrux. For more Advanced Usages, please check the demo page or visit the official website.