Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.75 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.75 KB

mobile calender

GitHub stars npm version GitHub issues GitHub license npm

A mobile calender plugin.

DEMO>>

demo-images

Be dependent on jQuery(Zepto) and Iscroll library.

API

How to use

Download mobile-calendar folder and include it in your HTML document :

<link href="./mobile-calendar/index.css" rel="stylesheet" type="text/css" />

<script src="./mobile-calendar/index.js"></script>
$(document).date();

//or
$(document).date({
    theme:"date",
    fromat: 'yyyy/mm/dd'
});

Of course, in your HTML you should add <div id="datePlugin"></div>. Or you can refer to my demo: ./test/index.html

Parameters

  • theme:default data , only show date;datetime show date and time.
  • fromat:Style . default yyyy/mm/dd and yyyy/mm/dd hh:ii. Example:
    • yyyy-mm-dd and yyyy-mm-dd hh:ii
    • yyyy年mm月dd日 and yyyy年mm月dd日 hh时ii分

Authors

Hancoson

MIT