Simplest possible plugin - no restrictions, no popups, minimum scripts. All styles in css file.
Example:
$('.elClass').cal({
sundayPosition: 0, // 6 is default
onDateClick: function(date){
console.log(date);
},
onMonthChange: function(month, year){
console.log(month, year);
}
});
@TODO
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');