Skip to content

yangar/jquery.businessHours

 
 

Repository files navigation

Business Hours plugin for jQuery

business hours screenshot

Demo

Requirements

Bower

bower install -S jquery.business-hours

Usage:

/* initial data */
var operationTime = [
    {"isActive":false,"timeFrom":null,"timeTill":null},
    {"isActive":false,"timeFrom":null,"timeTill":null},
    {"isActive":false,"timeFrom":null,"timeTill":null},
    {"isActive":true,"timeFrom":"7:15","timeTill":"18:00"},
    {"isActive":true,"timeFrom":"9:00","timeTill":"18:00"},
    {"isActive":false,"timeFrom":null,"timeTill":null},
    {"isActive":false,"timeFrom":null,"timeTill":null}
    ];

$(selector).businessHours({
    operationTime: operationTime,           // list of JSON objects
    postInit:function() {                   // optional
        // post-init handler
    },
    checkedColorClass: "workingBusinssDay", // optional
    uncheckedColorClass: "dayOff",          // optional
    dayTmpl: " ... template content ..."    // optional
});

Sponsored by: MVP engine

About

jQuery plugin allows you to easy show & manage business hours

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 57.5%
  • JavaScript 37.0%
  • CSS 5.5%