There are many great datepickers available on GitHub, however, I didn't find one that really suited my needs.
Here's why:
- I hate dependencies like jQuery
- I want the code to be as lightweight and portable as possible.
- I want programmable features that HTML5
<input type="date"/>
doesn't offer
Of course, no one datepicker will serve all projects since your needs may be different. So I'll be adding more to this API in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue.
Since the goal of this project is to use only vanilla JavaScript and Moment.js, we have only one dependency:
If you do not plan to contribute your changes and just want to play around or implement this project:
- Clone the repo
git clone https://https://github.com/ctrachte/Datepicker.js
- open
Datepicker.html
in your browser of choice
This class can (will eventually) be implemented on any datepicker html object.
Contributions are greatly appreciated towards the final goal of a perfect datepicker!
- Fork the Project (top right there should be a button)
- Look through the issues, and choose one that is not in progress on the project board
- Comment on the issue and I will assign it to you.
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Please track your progress on the project board
- Open a Pull Request
Code will be reviewed before being merged. If your code does not quite work or needs revision it may not be merged to the master.
Distributed under the MIT License.
Caleb Trachte - contact info will not be posted here, if you know me, message me
Project Link: https://github.com/ctrachte/Datepicker.js/projects/1