Default bootstrap styling for form is overridden and extended.
Searches provided schedules of apointments for spare time gaps.
Checks whether found time gaps fullfill a provided duration requirement.
Possible time for appointment is 09:00 - 19:00 excluding ending time.
Next appointment can be scheduled at 11:30 if previous apointment ends at 11:30 accorging to provided schedule.
Returns earliest possible time for an appointment in format hh:mm or null
if nothing was found.
Input schedule example |Person | Meetings |
Fixes case for letters according to punctuation and word positioning in the sentence. Censores all words longer that 2 characters by replacing all letters with asterisks except the fitst and the last by default. Function can be passed and array of allowed words, these will not be censored with asterisks.
A script by V.