JAVASCRIPT   8

picker.start.js

Guest on 24th May 2021 03:43:39 AM

  1. jQuery(document).ready(function () {
  2. (function($) {
  3. /*jshint
  4.  debug: true,
  5.  devel: true,
  6.  browser: true,
  7.  asi: true,
  8.  unused: false
  9.  */
  10.  
  11.  
  12.  
  13. /*
  14.  * Initialize all the others
  15.  */
  16.  
  17. $( '.js__datepicker' ).pickadate({
  18.  
  19.     // Work-around for some mobile browsers clipping off the picker.
  20.     onOpen: function() { $('pre').css('overflow', 'hidden') },
  21.     onClose: function() { $('pre').css('overflow', '') },
  22.     monthsShort: [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec' ],
  23.     showMonthsShort: true,
  24.     format: 'mm.dd.yyyy',
  25.     formatSubmit: 'yyyy/mm/dd',
  26.     min: true
  27. });
  28. $( '.js__timepicker' ).pickatime()
  29.  
  30.  
  31. })(jQuery);
  32. });

Raw Paste


Login or Register to edit or fork this paste. It's free.