Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  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 - ranges example</title>
  7. <meta name="author" content="Maxime Thirouin">
  8. <link rel="stylesheet" href="../css/pikaday.css">
  9. <link rel="stylesheet" href="../css/site.css">
  10. </head>
  11. <body>
  12. <a href="https://github.com/Pikaday/Pikaday"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
  13.  
  14. <h1>Pikaday</h1>
  15.  
  16. <p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p>
  17.  
  18. <label for="datepicker">Date:</label>
  19. <br />
  20. 2 months <input type="text" id="datepicker-2months">
  21. <br />
  22. 3 months, main aligned to right <input type="text" id="datepicker-3months-right">
  23.  
  24. <h2>What is this?</h2>
  25.  
  26. <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/Pikaday/Pikaday/issues">GitHub issue tracker</a>, thanks!</p>
  27.  
  28. <p class="small">Copyright © 2013 <a href="https://dbushell.com/">David Bushell</a> | BSD &amp; MIT license | Example by <a href="https://github.com/MoOx">MoOx</a></p>
  29.  
  30.  
  31. <script src="../pikaday.js"></script>
  32. <script>
  33. var picker2months = new Pikaday(
  34. {
  35. numberOfMonths: 2,
  36. field: document.getElementById('datepicker-2months'),
  37. firstDay: 1,
  38. minDate: new Date(2000, 0, 1),
  39. maxDate: new Date(2020, 12, 31),
  40. yearRange: [2000, 2020]
  41. });
  42. var picker3monthsRight = new Pikaday(
  43. {
  44. numberOfMonths: 3,
  45. mainCalendar: 'right',
  46. field: document.getElementById('datepicker-3months-right'),
  47. firstDay: 1,
  48. minDate: new Date(2000, 0, 1),
  49. maxDate: new Date(2020, 12, 31),
  50. yearRange: [2000, 2020]
  51. });
  52. </script>
  53. </body>
  54. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement