Skip to content

ErwanJes/SimpleCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleCalendar

Simple Calendar for jQuery

I needed an calendar easy to modify and to update. Unfortunately none on the current market could do what I wanted to. So i created my own. It is still under development, so do not hesitate to contact me if a problem appears or if you need to arrange it.

How it is work

A day is a DOM object "li". All events are "ul". It may be possible to use other DOM objects, but i can't guarantee it will works.

Install

You simply have to had this in your javascript :

$("#myCalendar").simplecalendar();

Options

By default, it is in French.

Possible options :

  • monthNames monthNames: ['January','February','March','April','May','June','Juillet','August','September','October','November','December']
  • dayNames ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']
  • numberOfDayShown 3 // number of day shown
  • next loadNextEvent // function called when the user go to a next date (right arrow)
  • prev loadPrevEvent // function called when the user go to a previous date (left arrow)
  • function loadNextEvent(date)
    {
    	// load next event for date
    }
    

    To used it, add it in the constructor like this :

    $("#myCalendar").simplecalendar({monthNames})
    

    I'll try to post a tutorial to explain it in detail.

    Demo

    There is a demo include with this project.

    License

    Under MIT-LICENSE (see MIT-LICENSE.txt)

    About

    Simple Calendar for jQuery

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published