Skip to content

fullcrimp/cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple calendar js plugin

Simplest possible plugin - no restrictions, no popups, minimum scripts. All styles in css file.

example

Jquery plugin

Example:

$('.elClass').cal({

    sundayPosition: 0, // 6 is default
    
    onDateClick: function(date){
        console.log(date);
    },
    onMonthChange: function(month, year){
        console.log(month, year);

    }
});

Angular directive

@TODO

Vanila js module

No dependencies. IE9+. Example:

cal.init('.test1, .test2, .test3', {

    sundayPosition: 0, // 6 is default

    onDateClick: function(date) {
        console.log(date);
    },
    onMonthChange: function(month, year) {
        console.log(month, year);
    }
});

...

cal.destroy('.test1');

About

Simplest possible calendar plugin

Resources

Stars

Watchers

Forks

Packages

No packages published