Skip to content

w3tl/simpleCalendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simpleCalendar is a jQuery & CSS3 data calendar

How to install:

  1. Download simpleCalendar

  2. Included jQuery library (example):

    <script src="http://code.jquery.com/jquery-latest.js"></script>
  3. Insert the following code before end of </head> tag:

    <!-- simpleCalendar CSS file -->
    <link rel="stylesheet" href="path/to/simpleCalendar.css">
    <!-- simpleCalendar js file -->
    <script type="text/javascript" src="path/to/simpleCalendar.js"></script>
  4. Insert the following code after the <body> tag:

    <div id="calendar" class="calendar-main"></div>

    where data-full - path to original image

  5. Now you need to call the plugin with your calendar div ID-attribute (#calendar).

    $(document).ready(function(){
    		$('#calendar').calendar();
    });

Additional plug-in call options:

Key Default Values Description
view days days, months, years Calendar view by default
Example: ```javascript $(document).ready(function(){ $('#calendar').calendar({view: 'months'}); }); ```

Done!

License

This project is licensed under the MIT license.