index.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
  6. <title>Pikaday</title>
  7. <meta name="author" content="David Bushell">
  8. <link rel="stylesheet" href="css/pikaday.css">
  9. <link rel="stylesheet" href="css/site.css">
  10. </head>
  11. <body>
  12. <h1>Pikaday</h1>
  13. <p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p>
  14. <p><a href="https://github.com/dbushell/Pikaday"><strong>Pikaday source on GitHub</strong></a></p>
  15. <label for="datepicker">Date:</label>
  16. <br>
  17. <input type="text" id="datepicker">
  18. <h2>What is this?</h2>
  19. <p>Since version 1.0 Pikaday is a stable and battle tested date-picker. Feel free to use it however you like but please report any bugs or feature requests to the <a href="https://github.com/dbushell/Pikaday/issues">GitHub issue tracker</a>, thanks!</p>
  20. <p class="small">Copyright © 2014 <a href="http://dbushell.com/">David Bushell</a> | BSD &amp; MIT license</p>
  21. <script src="pikaday.js"></script>
  22. <script>
  23. var picker = new Pikaday(
  24. {
  25. field: document.getElementById('datepicker'),
  26. firstDay: 1,
  27. minDate: new Date(2000, 0, 1),
  28. maxDate: new Date(2020, 12, 31),
  29. yearRange: [2000,2020]
  30. });
  31. </script>
  32. </body>
  33. </html>