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

Scheduler.js is a jQuery plugin to dynamically render a daily schedule where your users are able to view and select time slots in each day.

Schedule

Documentation

jQuery-scheduler

What?

This is a simple jQuery plugin that allows for creation of events/appointments/reservations with clicking and dragging of the mouse. It provides a day view calendar with timeslots for multiple reservation items. Implementing is quick, and requires little development on the user's part. It is still in development with a lot of stuff to add, so this is only for demonstration purposes.

Why?

This plugin was started because of the lack of simple day schedulers available. There is an abundance of full month calendar views, but nothing for a single day. I was working on a project for school that would create a reservation system for our 3d printers, but couldn't find anything to display reservations. This project is what I wish I had found 6 months a go.

Demo

See it in action!

Demo

Getting Started

Install

  • Clone the repository: git clone https://github.com/johnsolo15/jquery-scheduler.git
  • Download the zip file

Include files:

<link rel="stylesheet" href="/path/to/jquery.scheduler.css"></link> <script src="/path/to/jquery.js"></script> <script src="/path/to/date.format.min.js"></script> <script src="/path/to/jquery.scheduler.js"></script> 

Use

On the file you want to include the plugin, create a div with the id id="scheduler":

<div id="scheduler"></div>

Initialize it below with the $.fn.scheduler method:

$("#scheduler").scheduler();

Putting it all together:

<html> <head>     <link rel="stylesheet" href="jquery.scheduler.css"></link>     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>     <script src="date.format.min.js"></script>     <script src="jquery.scheduler.js"></script> </head>  <body>     <div id="scheduler"></div> </body>    <script>     $("#scheduler").scheduler(); </script> </html>

Options

Coming soon...

Acknowledgements

Big thanks to jacwright for writing the date.format library I used to help deal with that pesky javascript date object.


You May Also Like