1(function($) { 2 'use strict'; 3 4 var checkInDateEl = $('input[name="check_in_date"]'), 5 checkOutDateEl = $('input[name="check_out_date"]'); 6 7 var defaultPickerOptions = { 8 container: '.js-pickadate-container', 9 format: 'd mmm yyyy', 10 formatSubmit: 'dd-mm-yyyy', 11 hiddenName: true 12 }; 13 14 // Set additional check-in datepicker options 15 var checkInDatePickerOptions = { 16 min: true, 17 onSet: function(timestamp) { 18 // Update check-out datepicker to be a day after the new check-in date 19 checkOutDateEl.pickadate('picker').set('select', timestamp.select + 86400000 ); 20 } 21 }; 22 23 // Set additional check-out datepicker options 24 var checkOutDatePickerOptions = { 25 min: 1 26 }; 27 28 // Initialise check-in datepicker 29 checkInDateEl.pickadate( $.extend({}, defaultPickerOptions, checkInDatePickerOptions) ); 30 31 // Initialise check-out datepicker 32 checkOutDateEl.pickadate( $.extend({}, defaultPickerOptions, checkOutDatePickerOptions) ); 33 34})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.