Training Part 1;

This commit is contained in:
2024-01-27 19:09:56 +01:00
parent 6627021355
commit 5d05167492
40 changed files with 26497 additions and 105 deletions

26
resources/js/flatpickr.js Normal file
View File

@@ -0,0 +1,26 @@
// npm package: flatpickr
// github link: https://github.com/flatpickr/flatpickr
$(function() {
'use strict';
// date picker
if($('#flatpickr-date').length) {
flatpickr("#flatpickr-date", {
wrap: true,
dateFormat: "Y-m-d",
});
}
// time picker
if($('#flatpickr-time').length) {
flatpickr("#flatpickr-time", {
wrap: true,
enableTime: true,
noCalendar: true,
dateFormat: "H:i",
});
}
});