🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Layoutday is a simple, lightweight jQuery Daily Event Calendar plugin that you can dynamically add as many events onto a daily schedule.

Calendar Schedule

Documentation

Jquery Layoutday plugin

Day events agenda Jquery plugin.

Installation

Inside directory src there are the plugin files.

Add jquery and plugin's javascript and css files to your html page

<head> ... <script src="https://code.jquery.com/jquery-2.1.4.min.js"></script> <script src="YOUR_PATH/jquery-calendar.js"></script> <link rel="stylesheet" type="text/css" href="YOUR_PATH/jquery-calendar.css"> ... </head>

replace YOUR_PATH with the correct path where you placed the files.

Usage

Create an html div tag on your page where you want the calendar to be displayed.

<body>   ...   <div id="mycalendar"></div>   ... </body>

Add javascript to your page

<script> $( document ).ready(function() {   // initialize the calendar plugin on the div   $('#mycalendar').layOutDay();    // add your events to the calendar   var myEvents = [     {start: 30, end: 150},     {start: 540, end: 600},     {start: 560, end: 620},     {start: 610, end: 670}   ];   $('#mycalendar').addEvents(myEvents); }); </script>

Syntax

$('your-calendar-selector').layOutDay({   'calendar_start': 0, // minimum time of the day, expressed in minutes past midnight (optional)   'calendar_end': 1440, // max time of the day, expressed in minutes past midnight (optional)   'events_selector': ".events"  // calendar events selector (optional) });
  var yourEvents = [     {start: 30, end: 150}, // start and end are the minutes from midnight     {start: 540, end: 600}, // start and end go from calendar_start to calendar_end     {start: 560, end: 620},     {start: 610, end: 670}   ];   $('your-calendar-selector').addEvents(myEvents)

Screenshot


You May Also Like