A booking widget for a static website. Pick a service, a date and a time: the module only offers times that are really free, then sends the request to you. Try it. The business and every name here are fictional.
<script src="dist/edf-booking.bundle.js"></script> <edf-booking src="booking.config.json"></edf-booking>
This page keeps its config inline (config-from="#cfg"), so it works when opened from disk. Normal sites use src="booking.config.json".
Or, with ES modules: <script type="module" src="src/edf-booking.js"> (see modules.html).
One config file holds your services, opening hours, notice rules, days off and busy times. Requests go to your own form endpoint (JSON POST) or open the visitor's email app. Nothing is stored by this module and nothing is sent anywhere else.
In this demo the submit mode is mailto, so a real send would open an email draft. Use the Send button to see the confirmation screen and the calendar file.