1/* 2Name: Auto Services 3Written by: Okler Themes - (http://www.okler.net) 4Theme Version: 12.1.0 5*/ 6 7(($ => { 8 /* 9 * Datepicker 10 */ 11 12 // Fix datepicker issue when using body with margin (notice top bar) 13 const datepicker = $.fn.datepicker; 14 $.fn.datepicker = function(...args) { 15 const result = datepicker.apply(this, args); 16 17 this.on('show', function (e) { 18 const $target = $(this); 19 const $picker = $target.data('datepicker').picker; 20 let top; 21 22 if ($picker.hasClass('datepicker-orient-top')) { 23 top = $target.offset().top - $picker.outerHeight() - parseInt($picker.css('marginTop')); 24 } else { 25 top = $target.offset().top + $target.outerHeight() + parseInt($picker.css('marginTop')); 26 } 27 28 $picker.offset({top}); 29 }); 30 31 return result; 32 } 33 34 // Initialize Datepickers on the page 35 $('.custom-datepicker').each(function(){ 36 $(this).datepicker(); 37 }); 38 39 /* 40 * Timepicker 41 */ 42 $('.custom-timepicker').each(function(){ 43 $(this).timepicker({ 44 disableMousewheel: true, 45 icons: { 46 up: 'fas fa-chevron-up', 47 down: 'fas fa-chevron-down' 48 } 49 }); 50 }); 51})).apply( this, [ 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.