Skip to content

houseofkodai/cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

cal

  • Simplest self-contained JavaScript Calendar Module

  • no dependencies, should work well with everything else ;-)

usage

  1. Include cal.js in your HTML:
<script src="cal.js" type="text/javascript"></script>
  1. call cal with the id of the input element
cal.set("day");

example

  1. download/save cal.js
  2. cut & paste the following code and save to cal.html
  3. open cal.html in a browser and click on the input ;-)
<html>
<head>
 <title>cal.js usage sample</title>
 <script src="cal.js" type="text/javascript"></script>
</head>

<body>
 <p>day: <input id="day" /></p>
 <p>another day: <input id="anotherday" value="17/7/1971" /></p>

 <script>
cal.set("day");
cal.set("anotherday");
 </script>
</body>
</html>

About

Simplest self-contained JavaScript Calendar Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published