theme.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 - Theme example</title>
  7. <meta name="author" content="Stuart McFarlane">
  8. <link rel="stylesheet" href="../css/pikaday.css">
  9. <link rel="stylesheet" href="../css/theme.css">
  10. <link rel="stylesheet" href="../css/site.css">
  11. </head>
  12. <body>
  13. <a href="https://github.com/dbushell/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>
  14. <h1>Pikaday - Theme example</h1>
  15. <p class="large">A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS.</p>
  16. <label for="datepicker">Date:</label>
  17. <br>
  18. No theme <input type="text" id="datepicker">
  19. <br>
  20. Custom theme <input type="text" id="datepicker-theme">
  21. <h2>What is this?</h2>
  22. <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>
  23. <p class="small">Copyright © 2014 <a href="http://dbushell.com/">David Bushell</a> | BSD &amp; MIT license | Example by <a href="https://github.com/rikkert">Ramiro Rikkert</a></p>
  24. <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js"></script>
  25. <script src="../pikaday.js"></script>
  26. <script>
  27. // You can use different themes with the `theme` option
  28. var pickerDefault = new Pikaday(
  29. {
  30. field: document.getElementById('datepicker'),
  31. });
  32. var pickerTheme = new Pikaday(
  33. {
  34. field: document.getElementById('datepicker-theme'),
  35. theme: 'dark-theme'
  36. });
  37. </script>
  38. </body>
  39. </html>