calendar Demo
For one of the company, it was asked to code calendar live, took 4hrs to complete.
Basic calendar requirement
- show/hide calendar button
- Navigation prev/next
- Days display & selection event with hightlight
- Display of month with year MM YYYY
- Display of week day
- Colors is not important
// Library part // Calendar
- expose method like Calendar.instanciateCalendar('domId') or var calendarObj = new Calendar(); calendarObj.init(domSource, 'Calendar');