Facebook
From Agnes Riley, 2 Weeks ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 217
  1. "data:text/html,
  2. <html>
  3.   <head>
  4.   [removed][removed]
  5.   [removed][removed]
  6. <link href=\"https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/css/datepicker.min.css\" rel=\"stylesheet\">
  7.   [removed][removed]
  8.  
  9. <style>
  10. *{
  11.   font-family: Arial, Helvetica, sans-serif;
  12. }
  13. </style>
  14.   </head>
  15.   <body>
  16. <h2>Choose date and time</h2>
  17. &lt;input type=\"text\" class=\"datepicker-standard\" /&gt;
  18.  
  19.  
  20. [removed]
  21. var pickerOptions = {
  22.   autoClose: false,
  23.   language: 'en',
  24.   inline: true,
  25.   selectedDates: [new Date()],
  26.   timepicker: true,
  27.   hoursStep: 1,
  28.   minutesStep: 15,
  29.   minHours: 7,
  30.   maxHours: 18,
  31.   onSelect: function(formattedDate, date, inst) {
  32.  
  33.  
  34.  
  35.   }
  36. };
  37.  
  38. function setDatePicker(elem, options) {
  39.   // Assign missing data to calendar
  40.   if (elem.data(\"picker-min-date\") !== undefined) {
  41.     options.minDate = new Date(elem.data(\"picker-min-date\"));
  42.   }
  43.  
  44.  
  45.   // Assign to datepicker.
  46.   elem.datepicker(options).data('datepicker').selectDate(new Date());
  47. }
  48.  
  49. // Initialization
  50. $(function() {
  51.   var picker = $('.datepicker-standard'),
  52.     pickerTime = $('.datepicker-time');
  53.  
  54.   if (picker.length) {
  55.     //picker.datepicker(pickerOptions);
  56.     setDatePicker(picker, pickerOptions);
  57.   }
  58.  
  59.  
  60. });
  61.  
  62. [removed]
  63.  
  64.  
  65.   &lt;/body&gt;
  66. &lt;/html&gt;"